Index: views/controls/menu/nested_dispatcher_gtk.h |
diff --git a/views/controls/menu/nested_dispatcher_gtk.h b/views/controls/menu/nested_dispatcher_gtk.h |
index 06f54facb07f8186b1e753394f32dd618ae8152a..f17e9a442ed2a2927fe4469a46d9596ef64e7f12 100644 |
--- a/views/controls/menu/nested_dispatcher_gtk.h |
+++ b/views/controls/menu/nested_dispatcher_gtk.h |
@@ -3,11 +3,15 @@ |
// found in the LICENSE file. |
#ifndef VIEWS_CONTROLS_MENU_NESTED_DISPATCHER_GTK_H_ |
-#define VIEWS_CONTROLS_MENU_NATIVE_DISPATCHER_GTK_H_ |
+#define VIEWS_CONTROLS_MENU_NESTED_DISPATCHER_GTK_H_ |
#pragma once |
#include "base/message_loop.h" |
+#if defined(TOUCH_UI) |
+typedef union _XEvent XEvent; |
+#endif |
+ |
namespace views { |
// A nested dispatcher that can out-live the creator of this |
@@ -36,6 +40,10 @@ class NestedDispatcherGtk : public MessageLoopForUI::Dispatcher { |
// Overriden from MessageLoopForUI::Dispatcher: |
virtual bool Dispatch(GdkEvent* event); |
+#if defined(TOUCH_UI) |
+ virtual bool Dispatch(XEvent* xevent); |
+#endif |
+ |
// Creator of the nested loop. |
MessageLoopForUI::Dispatcher* creator_; |