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

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

Issue 22865036: Add support for reposting the ET_GESTURE_TAP_DOWN gesture event to the RootWindow and in the (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 4 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/views/controls/menu/menu_controller.cc
===================================================================
--- ui/views/controls/menu/menu_controller.cc (revision 218517)
+++ ui/views/controls/menu/menu_controller.cc (working copy)
@@ -2124,6 +2124,15 @@
PostMessage(window, event_type, nc_hit_result,
MAKELPARAM(screen_loc.x(), screen_loc.y()));
}
+ } else if (event.type() == ui::ET_GESTURE_TAP_DOWN) {
+#if defined(USE_AURA)
+ // Gesture events need to be posted to the target root window. In
+ // desktop chrome there could be multiple root windows.
+ aura::RootWindow* target_root =
+ aura::RootWindow::GetForAcceleratedWidget(window);
+ if (target_root)
+ target_root->RepostEvent(event);
+#endif
}
}
}

Powered by Google App Engine
This is Rietveld 408576698