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

Issue 1637743002: Identify context menus being opened via the long press gesture (Closed)

Created:
4 years, 11 months ago by ananta
Modified:
4 years, 11 months ago
Reviewers:
jam, tdresser, sky
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, yusukes+watch_chromium.org, shuchen+watch_chromium.org, jam, sievers+watch_chromium.org, jbauman+watch_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, kalyank, mkwst+moarreviews-renderer_chromium.org, piman+watch_chromium.org, danakj+watch_chromium.org, James Su
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add a new source type MENU_SOURCE_LONG_PRESS to identify context menu's being opened via the long press gesture. For context, please refer to this patch https://codereview.chromium.org/1602903003/, where we display the context menu on Windows when the long press gesture is released. This patch used the MENU_SOURCE_TOUCH source type in the context menu params to determine whether a menu is being opened via the long press gesture. Turns out that the MENU_SOURCE_TOUCH is used in places like devtools to open the context menu, which does not work due to the above patch. Fix is to add a new menu source type MENU_SOURCE_LONG_PRESS We use this in RenderWidgetHostViewAura to identify context menus opening via the long press gesture. Added another menu source type MENU_SOURCE_LONG_TAP which indicates menus opening via the long tap gesture. This should fix this regression. BUG=581005 TEST=RenderWidgetHostViewAuraWithViewHarnessTest.ContextMenuTest. Updated this test to test for the MENU_SOURCE_LONG_PRESS gesture type. Committed: https://crrev.com/126116ae6dc4769c6864463753cd960d741f1bbe Cr-Commit-Position: refs/heads/master@{#371672}

Patch Set 1 #

Patch Set 2 : Fix comment #

Total comments: 2

Patch Set 3 : Add the MENU_SOURCE_LONG_TAP context menu source type and ensure that it gets sent from blink in th… #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -10 lines) Patch
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 2 chunks +5 lines, -5 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura_unittest.cc View 1 2 2 chunks +23 lines, -3 lines 0 comments Download
M content/renderer/input/render_widget_input_handler.cc View 1 2 1 chunk +7 lines, -1 line 1 comment Download
M ui/base/ui_base_types.h View 1 2 1 chunk +3 lines, -1 line 0 comments Download

Depends on Patchset:

Messages

Total messages: 19 (6 generated)
ananta
tdresser : please review everything. jam :- For content owners.
4 years, 11 months ago (2016-01-26 02:10:37 UTC) #2
tdresser
https://codereview.chromium.org/1637743002/diff/20001/ui/base/ui_base_types.h File ui/base/ui_base_types.h (right): https://codereview.chromium.org/1637743002/diff/20001/ui/base/ui_base_types.h#newcode48 ui/base/ui_base_types.h:48: MENU_SOURCE_TOUCH = 3, Would it be clearer to have ...
4 years, 11 months ago (2016-01-26 13:36:59 UTC) #3
ananta
https://codereview.chromium.org/1637743002/diff/20001/ui/base/ui_base_types.h File ui/base/ui_base_types.h (right): https://codereview.chromium.org/1637743002/diff/20001/ui/base/ui_base_types.h#newcode48 ui/base/ui_base_types.h:48: MENU_SOURCE_TOUCH = 3, On 2016/01/26 13:36:59, tdresser wrote: > ...
4 years, 11 months ago (2016-01-26 20:20:23 UTC) #4
tdresser
https://codereview.chromium.org/1637743002/diff/40001/content/renderer/input/render_widget_input_handler.cc File content/renderer/input/render_widget_input_handler.cc (right): https://codereview.chromium.org/1637743002/diff/40001/content/renderer/input/render_widget_input_handler.cc#newcode302 content/renderer/input/render_widget_input_handler.cc:302: context_menu_source_type_ = ui::MENU_SOURCE_TOUCH; Do we ever use ui::MENU_SOURCE_TOUCH now? ...
4 years, 11 months ago (2016-01-26 20:26:30 UTC) #5
ananta
On 2016/01/26 20:26:30, tdresser wrote: > https://codereview.chromium.org/1637743002/diff/40001/content/renderer/input/render_widget_input_handler.cc > File content/renderer/input/render_widget_input_handler.cc (right): > > https://codereview.chromium.org/1637743002/diff/40001/content/renderer/input/render_widget_input_handler.cc#newcode302 > ...
4 years, 11 months ago (2016-01-26 20:30:49 UTC) #6
tdresser
LGTM, thanks for clarifying.
4 years, 11 months ago (2016-01-26 20:36:35 UTC) #7
tdresser
Please shorten the CL title, and update the description.
4 years, 11 months ago (2016-01-26 20:37:01 UTC) #8
ananta
+sky for ui owners
4 years, 11 months ago (2016-01-26 22:53:28 UTC) #11
jam
lgtm
4 years, 11 months ago (2016-01-26 23:43:39 UTC) #12
sky
ui/base LGTM
4 years, 11 months ago (2016-01-27 01:02:09 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1637743002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1637743002/40001
4 years, 11 months ago (2016-01-27 01:13:25 UTC) #15
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 11 months ago (2016-01-27 01:22:36 UTC) #17
commit-bot: I haz the power
4 years, 11 months ago (2016-01-27 01:24:50 UTC) #19
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/126116ae6dc4769c6864463753cd960d741f1bbe
Cr-Commit-Position: refs/heads/master@{#371672}

Powered by Google App Engine
This is Rietveld 408576698