Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1356)

Unified Diff: chrome/browser/gtk/standard_menus.h

Issue 28105: Implement accelerators in the gtk port. (Closed)
Patch Set: Fixes for evanm Created 11 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/gtk/standard_menus.h
diff --git a/chrome/browser/gtk/standard_menus.h b/chrome/browser/gtk/standard_menus.h
index a26643e8e36f26bf22f5b68c5a7db60a3dcaf109..11a286036601a062d1ffff0fe3f1022b02bfd32f 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.

Powered by Google App Engine
This is Rietveld 408576698