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

Issue 1986783002: Text selected with double-tap should not cause vibration (Closed)

Created:
4 years, 7 months ago by amaralp
Modified:
4 years, 7 months ago
CC:
blink-reviews, chromium-reviews, darin-cc_chromium.org, gavinp+loader_chromium.org, jam, Nate Chapin, loading-reviews_chromium.org, tyoshino+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Text selected with double-tap should not cause vibration Previously a haptic feedback (vibration) was performed whenever selection handles were shown. This was problematic since double tapping on text would also cause the selection handles to be shown. Now haptic feedback only occurs when a long press gesture is handled. This required changing some context menu logic to return whether or not a context menu was actually shown. BUG=606175 Committed: https://crrev.com/6de57089abaea05decce400f1bae7889b34e839b Cr-Commit-Position: refs/heads/master@{#395490}

Patch Set 1 #

Patch Set 2 : Make sure we are in Android before saying context menu was not handled #

Total comments: 10

Patch Set 3 : Removed the platform macros #

Total comments: 6

Patch Set 4 : Address aelias comments #

Patch Set 5 : Added tests #

Total comments: 5

Patch Set 6 : Fixed nit picks #

Patch Set 7 : added description of return value of showContextMenu #

Unified diffs Side-by-side diffs Delta from patch set Stats (+117 lines, -42 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java View 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ContextMenuHelper.java View 5 chunks +1 line, -10 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ContextMenuPopulator.java View 1 2 3 4 5 1 chunk +0 lines, -8 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/tab/TabContextMenuPopulator.java View 1 2 3 4 5 1 chunk +0 lines, -5 lines 0 comments Download
M content/browser/android/content_view_core_impl.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java View 3 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/loader/EmptyClients.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/page/ContextMenuClient.h View 1 2 3 4 5 6 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/page/ContextMenuController.cpp View 1 2 3 1 chunk +7 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/ContextMenuClientImpl.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/ContextMenuClientImpl.cpp View 1 2 3 4 chunks +14 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebViewTest.cpp View 1 2 3 4 1 chunk +76 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/web/tests/data/long_press_empty_div.html View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/web/tests/data/long_press_image.html View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
A third_party/WebKit/Source/web/tests/data/long_press_link.html View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
A + third_party/WebKit/Source/web/tests/data/long_press_video.html View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 23 (9 generated)
amaralp
On 2016/05/17 17:18:46, amaralp wrote: > mailto:amaralp@chromium.org changed reviewers: > + mailto:aelias@chromium.org PTAL
4 years, 7 months ago (2016-05-17 23:57:59 UTC) #3
aelias_OOO_until_Jul13
https://codereview.chromium.org/1986783002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java File chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java (left): https://codereview.chromium.org/1986783002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java#oldcode168 chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java:168: public boolean shouldShowContextMenu(ContextMenuParams params) { Can you add more ...
4 years, 7 months ago (2016-05-18 01:22:33 UTC) #4
amaralp
PTAL, will add tests shortly https://codereview.chromium.org/1986783002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java File chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java (left): https://codereview.chromium.org/1986783002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java#oldcode168 chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java:168: public boolean shouldShowContextMenu(ContextMenuParams params) ...
4 years, 7 months ago (2016-05-18 22:16:18 UTC) #6
aelias_OOO_until_Jul13
https://codereview.chromium.org/1986783002/diff/40001/third_party/WebKit/Source/core/page/ContextMenuController.cpp File third_party/WebKit/Source/core/page/ContextMenuController.cpp (right): https://codereview.chromium.org/1986783002/diff/40001/third_party/WebKit/Source/core/page/ContextMenuController.cpp#newcode182 third_party/WebKit/Source/core/page/ContextMenuController.cpp:182: if (m_client->showContextMenu(m_contextMenu.get(), fromTouch) && event) This "&& event" is ...
4 years, 7 months ago (2016-05-19 02:25:21 UTC) #7
amaralp
https://codereview.chromium.org/1986783002/diff/40001/third_party/WebKit/Source/core/page/ContextMenuController.cpp File third_party/WebKit/Source/core/page/ContextMenuController.cpp (right): https://codereview.chromium.org/1986783002/diff/40001/third_party/WebKit/Source/core/page/ContextMenuController.cpp#newcode182 third_party/WebKit/Source/core/page/ContextMenuController.cpp:182: if (m_client->showContextMenu(m_contextMenu.get(), fromTouch) && event) On 2016/05/19 02:25:21, aelias ...
4 years, 7 months ago (2016-05-19 18:21:10 UTC) #8
amaralp
Added tests. PTAL
4 years, 7 months ago (2016-05-20 02:17:51 UTC) #9
aelias_OOO_until_Jul13
Source/web lgtm, thanks. Adding additional OWNERS: - tedchoc@ for browser-side changes - rbyers@ for Source/core ...
4 years, 7 months ago (2016-05-20 03:33:00 UTC) #13
Rick Byers
Source/core LGTM with nit https://codereview.chromium.org/1986783002/diff/80001/third_party/WebKit/Source/core/page/ContextMenuClient.h File third_party/WebKit/Source/core/page/ContextMenuClient.h (right): https://codereview.chromium.org/1986783002/diff/80001/third_party/WebKit/Source/core/page/ContextMenuClient.h#newcode36 third_party/WebKit/Source/core/page/ContextMenuClient.h:36: virtual bool showContextMenu(const ContextMenu*, bool) ...
4 years, 7 months ago (2016-05-20 14:01:58 UTC) #14
amaralp
https://codereview.chromium.org/1986783002/diff/80001/chrome/android/java/src/org/chromium/chrome/browser/tab/TabContextMenuPopulator.java File chrome/android/java/src/org/chromium/chrome/browser/tab/TabContextMenuPopulator.java (right): https://codereview.chromium.org/1986783002/diff/80001/chrome/android/java/src/org/chromium/chrome/browser/tab/TabContextMenuPopulator.java#newcode46 chrome/android/java/src/org/chromium/chrome/browser/tab/TabContextMenuPopulator.java:46: } On 2016/05/20 03:33:00, aelias wrote: > nit: you ...
4 years, 7 months ago (2016-05-20 16:57:08 UTC) #15
Rick Byers
https://codereview.chromium.org/1986783002/diff/80001/third_party/WebKit/Source/core/page/ContextMenuClient.h File third_party/WebKit/Source/core/page/ContextMenuClient.h (right): https://codereview.chromium.org/1986783002/diff/80001/third_party/WebKit/Source/core/page/ContextMenuClient.h#newcode36 third_party/WebKit/Source/core/page/ContextMenuClient.h:36: virtual bool showContextMenu(const ContextMenu*, bool) = 0; On 2016/05/20 ...
4 years, 7 months ago (2016-05-20 19:42:17 UTC) #16
Ted C
On 2016/05/20 19:42:17, Rick Byers (out until May 24) wrote: > https://codereview.chromium.org/1986783002/diff/80001/third_party/WebKit/Source/core/page/ContextMenuClient.h > File third_party/WebKit/Source/core/page/ContextMenuClient.h ...
4 years, 7 months ago (2016-05-23 22:58:50 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1986783002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1986783002/120001
4 years, 7 months ago (2016-05-23 23:07:33 UTC) #20
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 7 months ago (2016-05-24 00:45:52 UTC) #21
commit-bot: I haz the power
4 years, 7 months ago (2016-05-24 00:48:08 UTC) #23
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/6de57089abaea05decce400f1bae7889b34e839b
Cr-Commit-Position: refs/heads/master@{#395490}

Powered by Google App Engine
This is Rietveld 408576698