summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk/standard_menus.h
diff options
context:
space:
mode:
authorerg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-25 22:16:51 +0000
committererg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-25 22:16:51 +0000
commit89fe216da236a9930cfab994a67e3110575e6e87 (patch)
treea7bbb77a7a9d8033cb4bf26798f043c34f2a590b /chrome/browser/gtk/standard_menus.h
parent841dfe96f45b4f7b369738f03d881893468bd032 (diff)
downloadchromium_src-89fe216da236a9930cfab994a67e3110575e6e87.zip
chromium_src-89fe216da236a9930cfab994a67e3110575e6e87.tar.gz
chromium_src-89fe216da236a9930cfab994a67e3110575e6e87.tar.bz2
Implement accelerators in the gtk port.
- Adds accelerators to all the menu items that had them on windows. - Adds accelerators to back (Alt+left), forward (Alt+right), reload (Ctr+R) and focus the URL box (Ctr+L). Review URL: http://codereview.chromium.org/28105 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10387 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/standard_menus.h')
-rw-r--r--chrome/browser/gtk/standard_menus.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/gtk/standard_menus.h b/chrome/browser/gtk/standard_menus.h
index a26643e..11a2860 100644
--- a/chrome/browser/gtk/standard_menus.h
+++ b/chrome/browser/gtk/standard_menus.h
@@ -33,6 +33,12 @@ struct MenuCreateMaterial {
// If non-NULL, a pointer to the struct we're supposed to use
MenuCreateMaterial* submenu;
+
+ // A gdk keysym that is used to activate this item from outside the menu.
+ unsigned int accel_key;
+
+ // GDK modifiers for the menu items (i.e., shift, ctrl, etc).
+ unsigned int accel_modifiers;
};
// Returns the menu construction data structure for the page menu.