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

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

Issue 809773006: MacViews: Intercept events for Menus (after AppKit has interpreted keystrokes) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@20141205-MacViews-AcceleratedWidget-PLUS-AddingLayers-fromcl-PLUS-bringup
Patch Set: rollback card unmask Created 6 years 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.h
diff --git a/ui/views/controls/menu/menu_controller.h b/ui/views/controls/menu/menu_controller.h
index c3ab9bfd2d5e4c9c121b117ee86998315e398fdb..33c149d41d24abd0976a49e22c414569d02640a4 100644
--- a/ui/views/controls/menu/menu_controller.h
+++ b/ui/views/controls/menu/menu_controller.h
@@ -160,6 +160,10 @@ class VIEWS_EXPORT MenuController : public WidgetObserver {
// corresponds to whether or not the menu should close.
void OnDragComplete(bool should_close);
+ // Called while dispatching messages inside a menu run loop to intercept key
+ // events.
+ ui::PostDispatchAction OnWillDispatchEvent(const ui::Event& event);
+
// Update the submenu's selection based on the current mouse location
void UpdateSubmenuSelection(SubmenuView* source);

Powered by Google App Engine
This is Rietveld 408576698