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

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

Issue 1586353004: Update reposting of events from menus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « no previous file | ui/views/controls/menu/menu_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 4325e64fe9a2b9fca5b6fb1a74ab34c1e5e202a5..12af0aa18746cde6c38d22e5239e00ee097dc491 100644
--- a/ui/views/controls/menu/menu_controller.h
+++ b/ui/views/controls/menu/menu_controller.h
@@ -503,7 +503,15 @@ class VIEWS_EXPORT MenuController : public WidgetObserver {
// On non-aura Windows, a new mouse event is generated and posted to
// the window (if there is one) at the location of the event. On
// aura, the event is reposted on the RootWindow.
- void RepostEvent(SubmenuView* source, const ui::LocatedEvent* event);
+ void RepostEvent(SubmenuView* source,
+ const ui::LocatedEvent* event,
+ const gfx::Point& screen_loc,
+ gfx::NativeView native_view,
+ gfx::NativeWindow window);
+
+ // For Windows and Aura we repost an event which dismisses the |source| menu.
+ // The menu is also canceled dependent on the target of the event.
+ void RepostEventAndCancel(SubmenuView* source, const ui::LocatedEvent* event);
// Sets the drop target to new_item.
void SetDropMenuItem(MenuItemView* new_item,
« no previous file with comments | « no previous file | ui/views/controls/menu/menu_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698