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

Issue 2124913002: Fix long press touch selection on empty text fields (Closed)

Created:
4 years, 5 months ago by mohsen
Modified:
4 years, 5 months ago
Reviewers:
tdresser
CC:
chromium-reviews, darin-cc_chromium.org, dtapuska+chromiumwatch_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix long press touch selection on empty text fields Desired behavior when long press happens on an empty text field is to activate touch selection and show the quick menu if there is anything available to show in the quick menu. Otherwise, the regular context menu should be shown. This was regressed due to changes in context menu source type that added LONG_PRESS and LONG_TAP types. In addition to fixing this regression, this CL fixes the regression on the new tab page that shows an incorrectly placed quick menu instead of the context menu. BUG=594101 Committed: https://crrev.com/41355a89adc05a40f8d6eb1e60a600edb02f8de1 Cr-Commit-Position: refs/heads/master@{#407059}

Patch Set 1 #

Patch Set 2 : Added a test #

Total comments: 2

Patch Set 3 : EmptyTextfield -> ClearTextfield #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -5 lines) Patch
M content/browser/renderer_host/input/touch_selection_controller_client_aura.cc View 1 chunk +5 lines, -2 lines 0 comments Download
M content/browser/renderer_host/input/touch_selection_controller_client_aura_browsertest.cc View 1 2 3 chunks +39 lines, -2 lines 0 comments Download
M content/test/data/touch_selection.html View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ui/touch_selection/touch_selection_controller.h View 1 chunk +4 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 21 (12 generated)
mohsen
Can you take a look? I think a test is necessary here to prevent future ...
4 years, 5 months ago (2016-07-06 16:50:50 UTC) #2
tdresser
On 2016/07/06 16:50:50, mohsen wrote: > Can you take a look? > > I think ...
4 years, 5 months ago (2016-07-06 17:35:32 UTC) #3
mohsen
For tests, I ended up changing how content shell, and as a result, browser tests ...
4 years, 5 months ago (2016-07-14 01:43:29 UTC) #8
mohsen
For tests, I ended up changing how content shell, and as a result, browser tests ...
4 years, 5 months ago (2016-07-14 01:43:30 UTC) #9
tdresser
LGTM! https://codereview.chromium.org/2124913002/diff/20001/content/browser/renderer_host/input/touch_selection_controller_client_aura_browsertest.cc File content/browser/renderer_host/input/touch_selection_controller_client_aura_browsertest.cc (right): https://codereview.chromium.org/2124913002/diff/20001/content/browser/renderer_host/input/touch_selection_controller_client_aura_browsertest.cc#newcode323 content/browser/renderer_host/input/touch_selection_controller_client_aura_browsertest.cc:323: ASSERT_TRUE(EmptyTextfield()); It isn't immediately clear to me whether ...
4 years, 5 months ago (2016-07-14 12:13:40 UTC) #10
mohsen
Still waiting for https://crrev.com/2132983002 to land... https://codereview.chromium.org/2124913002/diff/20001/content/browser/renderer_host/input/touch_selection_controller_client_aura_browsertest.cc File content/browser/renderer_host/input/touch_selection_controller_client_aura_browsertest.cc (right): https://codereview.chromium.org/2124913002/diff/20001/content/browser/renderer_host/input/touch_selection_controller_client_aura_browsertest.cc#newcode323 content/browser/renderer_host/input/touch_selection_controller_client_aura_browsertest.cc:323: ASSERT_TRUE(EmptyTextfield()); On 2016/07/14 ...
4 years, 5 months ago (2016-07-22 01:22:47 UTC) #15
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/2124913002/40001
4 years, 5 months ago (2016-07-22 03:38:08 UTC) #18
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 5 months ago (2016-07-22 04:18:10 UTC) #19
commit-bot: I haz the power
4 years, 5 months ago (2016-07-22 04:20:02 UTC) #21
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/41355a89adc05a40f8d6eb1e60a600edb02f8de1
Cr-Commit-Position: refs/heads/master@{#407059}

Powered by Google App Engine
This is Rietveld 408576698