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

Unified Diff: ui/base/ui_base_types.h

Issue 1637743002: Identify context menus being opened via the long press gesture (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add the MENU_SOURCE_LONG_TAP context menu source type and ensure that it gets sent from blink in th… Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/base/ui_base_types.h
diff --git a/ui/base/ui_base_types.h b/ui/base/ui_base_types.h
index 4ed9f25cfd53b807ac46a839b175754977b7e9f2..4d29bb30d8c6f84dc424b273d6f025307140ec8b 100644
--- a/ui/base/ui_base_types.h
+++ b/ui/base/ui_base_types.h
@@ -47,7 +47,9 @@ enum MenuSourceType {
MENU_SOURCE_KEYBOARD = 2,
MENU_SOURCE_TOUCH = 3,
MENU_SOURCE_TOUCH_EDIT_MENU = 4,
- MENU_SOURCE_TYPE_LAST = MENU_SOURCE_TOUCH_EDIT_MENU
+ MENU_SOURCE_LONG_PRESS = 5,
+ MENU_SOURCE_LONG_TAP = 6,
+ MENU_SOURCE_TYPE_LAST = MENU_SOURCE_LONG_TAP
};
UI_BASE_EXPORT MenuSourceType GetMenuSourceTypeForEvent(const ui::Event& event);

Powered by Google App Engine
This is Rietveld 408576698