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

Unified Diff: ui/views/controls/menu/menu_controller.cc

Issue 8508024: Support touch scroll gestures in menus. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix win_aura Created 8 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
« no previous file with comments | « ui/views/controls/menu/menu_controller.h ('k') | ui/views/controls/menu/menu_host_root_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/menu/menu_controller.cc
diff --git a/ui/views/controls/menu/menu_controller.cc b/ui/views/controls/menu/menu_controller.cc
index 3408d2f263d050caa71023446eed683ca2020561..2e26a6e4b20d7df59d11d0410f9bf14a9eec29c7 100644
--- a/ui/views/controls/menu/menu_controller.cc
+++ b/ui/views/controls/menu/menu_controller.cc
@@ -623,6 +623,14 @@ bool MenuController::OnMouseWheel(SubmenuView* source,
}
#endif
+ui::GestureStatus MenuController::OnGestureEvent(SubmenuView* source,
+ const GestureEvent& event) {
+ MenuPart part = GetMenuPart(source, event.location());
+ if (!part.submenu)
+ return ui::GESTURE_STATUS_UNKNOWN;
+ return part.submenu->OnGestureEvent(event);
+}
+
bool MenuController::GetDropFormats(
SubmenuView* source,
int* formats,
« no previous file with comments | « ui/views/controls/menu/menu_controller.h ('k') | ui/views/controls/menu/menu_host_root_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698