diff options
Diffstat (limited to 'views/controls/menu/native_menu_gtk.h')
-rw-r--r-- | views/controls/menu/native_menu_gtk.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/views/controls/menu/native_menu_gtk.h b/views/controls/menu/native_menu_gtk.h index 79a6060..6145925 100644 --- a/views/controls/menu/native_menu_gtk.h +++ b/views/controls/menu/native_menu_gtk.h @@ -21,6 +21,8 @@ class MenuModel; namespace views { +class NestedDispatcherGtk; + // A Gtk implementation of MenuWrapper. // // NOTE: On windows the activate message is not sent immediately when an item @@ -136,6 +138,11 @@ class NativeMenuGtk : public MenuWrapper, // Vector of listeners to receive callbacks when the menu opens. std::vector<MenuListener*> listeners_; + // Nested dispatcher object that can outlive this object. + // This is to deal with the menu being deleted while the nested + // message loop is handled. see http://crosbug.com/7228 . + NestedDispatcherGtk* nested_dispatcher_; + DISALLOW_COPY_AND_ASSIGN(NativeMenuGtk); }; |