| Index: views/controls/menu/native_menu_gtk.cc
|
| diff --git a/views/controls/menu/native_menu_gtk.cc b/views/controls/menu/native_menu_gtk.cc
|
| index 31a8c3f491c5bc0e327102515088b3497a0829ec..1afbe4b1d9c06d0310b4e49c6b243d996b8e2566 100644
|
| --- a/views/controls/menu/native_menu_gtk.cc
|
| +++ b/views/controls/menu/native_menu_gtk.cc
|
| @@ -23,6 +23,10 @@
|
| #include "views/controls/menu/menu_2.h"
|
| #include "views/controls/menu/nested_dispatcher_gtk.h"
|
|
|
| +#if defined(TOUCH_UI)
|
| +#include "views/focus/accelerator_handler.h"
|
| +#endif
|
| +
|
| namespace {
|
|
|
| const char kPositionString[] = "position";
|
| @@ -213,6 +217,12 @@ void NativeMenuGtk::SetMinimumWidth(int width) {
|
| gtk_widget_set_size_request(menu_, width, -1);
|
| }
|
|
|
| +#if defined(TOUCH_UI)
|
| +bool NativeMenuGtk::Dispatch(XEvent* xevent) {
|
| + return DispatchXEvent(xevent);
|
| +}
|
| +#endif
|
| +
|
| bool NativeMenuGtk::Dispatch(GdkEvent* event) {
|
| if (menu_hidden_) {
|
| // The menu has been closed but the message loop is still nested. Don't
|
|
|