Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(730)

Issue 2903193003: MacViews: Tweak kDragToEndIfOutsideVerticalBounds for single line fields. (Closed)

Created:
3 years, 7 months ago by tapted
Modified:
3 years, 6 months ago
Reviewers:
msw
CC:
chromium-reviews, nona+watch_chromium.org, James Su, shuchen+watch_chromium.org, yusukes+watch_chromium.org, tfarina, chrome-apps-syd-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

MacViews: Tweak kDragToEndIfOutsideVerticalBounds for single line fields. Currently the direction to extend is based off the y-position. Dragging above extends to the logical start and dragging below extends to the logical end. This matches <textarea> and single-line <input> fields in webcontents, but does not match single line Cocoa text fields such as the current Chrome Mac omnibox. Instead, compare x positions of the selection start and the mouse cursor. For single line RenderText, extend to the end that is in the visual direction towards the mouse cursor. BUG=600166 Review-Url: https://codereview.chromium.org/2903193003 Cr-Commit-Position: refs/heads/master@{#475260} Committed: https://chromium.googlesource.com/chromium/src/+/4a1a83be8f109eb727dd9e8724cce49801279faf

Patch Set 1 #

Patch Set 2 : Fixed #

Patch Set 3 : such testing #

Total comments: 26

Patch Set 4 : respond to comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+173 lines, -58 lines) Patch
M ui/gfx/render_text_harfbuzz.cc View 1 2 3 1 chunk +11 lines, -6 lines 0 comments Download
M ui/views/controls/label_unittest.cc View 1 2 3 3 chunks +145 lines, -25 lines 0 comments Download
M ui/views/controls/textfield/textfield_unittest.cc View 1 2 3 1 chunk +17 lines, -27 lines 0 comments Download

Messages

Total messages: 33 (27 generated)
tapted
Hi Mike please take a look
3 years, 7 months ago (2017-05-25 11:13:27 UTC) #18
msw
nice; some minor comments and test refactoring ideas. https://codereview.chromium.org/2903193003/diff/60001/ui/gfx/render_text_harfbuzz.cc File ui/gfx/render_text_harfbuzz.cc (right): https://codereview.chromium.org/2903193003/diff/60001/ui/gfx/render_text_harfbuzz.cc#newcode911 ui/gfx/render_text_harfbuzz.cc:911: else ...
3 years, 7 months ago (2017-05-25 18:11:56 UTC) #19
tapted
Thanks mike! https://codereview.chromium.org/2903193003/diff/60001/ui/gfx/render_text_harfbuzz.cc File ui/gfx/render_text_harfbuzz.cc (right): https://codereview.chromium.org/2903193003/diff/60001/ui/gfx/render_text_harfbuzz.cc#newcode911 ui/gfx/render_text_harfbuzz.cc:911: else On 2017/05/25 18:11:55, msw wrote: > ...
3 years, 7 months ago (2017-05-26 06:53:40 UTC) #25
msw
lgtm
3 years, 7 months ago (2017-05-26 17:15:47 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2903193003/110001
3 years, 6 months ago (2017-05-28 06:46:06 UTC) #30
commit-bot: I haz the power
3 years, 6 months ago (2017-05-28 11:09:13 UTC) #33
Message was sent while issue was closed.
Committed patchset #4 (id:110001) as
https://chromium.googlesource.com/chromium/src/+/4a1a83be8f109eb727dd9e8724cc...

Powered by Google App Engine
This is Rietveld 408576698