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

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

Issue 10143001: Work in progress: Adds MessagePumpDispatcher::ShouldExit(). This is used to handle the (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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/aura/root_window_host_linux.cc ('k') | 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 4376b7581a5dadd6eb09dfd07dea1ba7f155279e..9a3b277d0cf6ec10df1376eff3e406fdadc36138 100644
--- a/ui/views/controls/menu/menu_controller.h
+++ b/ui/views/controls/menu/menu_controller.h
@@ -238,11 +238,10 @@ class VIEWS_EXPORT MenuController : public MessageLoop::Dispatcher {
const LocatedEvent& event);
void StartDrag(SubmenuView* source, const gfx::Point& location);
-#if defined(OS_WIN) || defined(USE_AURA)
// Dispatcher method. This returns true if the menu was canceled, or
// if the message is such that the menu should be closed.
virtual bool Dispatch(const base::NativeEvent& event) OVERRIDE;
-#endif
+ virtual bool ShouldExit() OVERRIDE;
// Key processing. The return value of this is returned from Dispatch.
// In other words, if this returns false (which happens if escape was
« no previous file with comments | « ui/aura/root_window_host_linux.cc ('k') | ui/views/controls/menu/menu_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698