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

Issue 407993003: Fix gesture handling for Views textfields (Closed)

Created:
6 years, 5 months ago by mohsen
Modified:
6 years, 5 months ago
Reviewers:
sky
CC:
chromium-reviews, yusukes+watch_chromium.org, yukishiino+watch_chromium.org, tfarina, penghuang+watch_chromium.org, nona+watch_chromium.org, James Su
Project:
chromium
Visibility:
Public.

Description

Fix gesture handling for Views textfields Changing gesture handling in Views textfields to be more consistent with blink's textfields. The main changes are: - Dragging text scrolls the text in textfield; - Tap on selection activates touch editing; - Double-tap selects a word; - Triple-tap selects the entire text; - Long-press off selection selects a word; - Long-press on selection starts drag-drop (if drag-drop is enabled) or shows context menu (if drag-drop is disabled); - Long-tap shows context menu, if drag-drop started on the corresponding long-press was not exercised. BUG=388862 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=284875

Patch Set 1 #

Patch Set 2 : nits #

Total comments: 4

Patch Set 3 : nits #

Patch Set 4 : Fixed "select all on first tap" in omnibox #

Patch Set 5 : Fixed tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -100 lines) Patch
M chrome/browser/ui/views/omnibox/omnibox_view_views.cc View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M ui/views/controls/textfield/textfield.h View 1 2 chunks +12 lines, -0 lines 0 comments Download
M ui/views/controls/textfield/textfield.cc View 1 2 4 chunks +58 lines, -47 lines 0 comments Download
M ui/views/controls/textfield/textfield_unittest.cc View 1 2 3 4 1 chunk +11 lines, -50 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
mohsen
Please take a look...
6 years, 5 months ago (2014-07-21 20:26:30 UTC) #1
sky
https://codereview.chromium.org/407993003/diff/40001/ui/gfx/render_text.cc File ui/gfx/render_text.cc (right): https://codereview.chromium.org/407993003/diff/40001/ui/gfx/render_text.cc#newcode895 ui/gfx/render_text.cc:895: min_offset = -(extra_content + 1) / 2; Why do ...
6 years, 5 months ago (2014-07-21 22:37:44 UTC) #2
mohsen
https://codereview.chromium.org/407993003/diff/40001/ui/gfx/render_text.cc File ui/gfx/render_text.cc (right): https://codereview.chromium.org/407993003/diff/40001/ui/gfx/render_text.cc#newcode895 ui/gfx/render_text.cc:895: min_offset = -(extra_content + 1) / 2; On 2014/07/21 ...
6 years, 5 months ago (2014-07-21 23:07:57 UTC) #3
sky
LGTM
6 years, 5 months ago (2014-07-21 23:33:54 UTC) #4
mohsen
I have made a small change in OmniboxViewViews::OnGestureEVent(). Can you take a quick look, please?
6 years, 5 months ago (2014-07-22 18:01:00 UTC) #5
sky
SLGTM
6 years, 5 months ago (2014-07-22 18:22:02 UTC) #6
mohsen
The CQ bit was checked by mohsen@chromium.org
6 years, 5 months ago (2014-07-23 02:40:25 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mohsen@chromium.org/407993003/140001
6 years, 5 months ago (2014-07-23 02:41:30 UTC) #8
commit-bot: I haz the power
6 years, 5 months ago (2014-07-23 06:57:42 UTC) #9
Message was sent while issue was closed.
Change committed as 284875

Powered by Google App Engine
This is Rietveld 408576698