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

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

Issue 219743002: x11: Move X event handling out of the message-pump. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tot-merge-r261267 Created 6 years, 9 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/events/platform/x11/x11_event_source.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 cab7baedaae315cefc04e977a0f61ad77a382ab3..0773060806981ce595327099da08585e9adc9d9d 100644
--- a/ui/views/controls/menu/menu_controller.h
+++ b/ui/views/controls/menu/menu_controller.h
@@ -15,6 +15,7 @@
#include "base/memory/scoped_ptr.h"
#include "base/timer/timer.h"
#include "ui/events/event_constants.h"
+#include "ui/events/platform/platform_event_dispatcher.h"
#include "ui/views/controls/menu/menu_delegate.h"
#include "ui/views/controls/menu/menu_item_view.h"
#include "ui/views/widget/widget_observer.h"
@@ -28,6 +29,7 @@ class Screen;
namespace ui {
class NativeTheme;
class OSExchangeData;
+class ScopedEventDispatcher;
}
namespace views {
@@ -39,6 +41,7 @@ class View;
namespace internal {
class MenuControllerDelegate;
+class MenuEventDispatcher;
class MenuMessagePumpDispatcher;
class MenuRunnerImpl;
}
@@ -142,6 +145,7 @@ class VIEWS_EXPORT MenuController : public WidgetObserver {
static void TurnOffMenuSelectionHoldForTest();
private:
+ friend class internal::MenuEventDispatcher;
friend class internal::MenuMessagePumpDispatcher;
friend class internal::MenuRunnerImpl;
friend class MenuHostRootView;
@@ -588,6 +592,8 @@ class VIEWS_EXPORT MenuController : public WidgetObserver {
// Set to true if the menu item was selected by touch.
bool item_selected_by_touch_;
+ scoped_ptr<ui::ScopedEventDispatcher> nested_dispatcher_;
+
DISALLOW_COPY_AND_ASSIGN(MenuController);
};
« no previous file with comments | « ui/events/platform/x11/x11_event_source.cc ('k') | ui/views/controls/menu/menu_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698