summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk/menu_gtk.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/gtk/menu_gtk.h')
-rw-r--r--chrome/browser/gtk/menu_gtk.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/chrome/browser/gtk/menu_gtk.h b/chrome/browser/gtk/menu_gtk.h
index bef318f..6dd1d05 100644
--- a/chrome/browser/gtk/menu_gtk.h
+++ b/chrome/browser/gtk/menu_gtk.h
@@ -38,7 +38,8 @@ class MenuGtk {
// Builds a MenuGtk that uses |delegate| to perform actions and |menu_data|
// to create the menu.
- MenuGtk(MenuGtk::Delegate* delegate, const MenuCreateMaterial* menu_data);
+ MenuGtk(MenuGtk::Delegate* delegate, const MenuCreateMaterial* menu_data,
+ GtkAccelGroup* accel_group);
// Builds a MenuGtk that uses |delegate| to create the menu as well as perform
// actions.
explicit MenuGtk(MenuGtk::Delegate* delegate);
@@ -84,6 +85,12 @@ class MenuGtk {
// Queries this object about the menu state.
MenuGtk::Delegate* delegate_;
+ // Accelerator group to add keyboard accelerators to.
+ GtkAccelGroup* accel_group_;
+
+ // The window this menu is attached to.
+ GtkWindow* window_;
+
// gtk_menu_popup() does not appear to take ownership of popup menus, so
// MenuGtk explicitly manages the lifetime of the menu.
GtkWidget* menu_;