summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk/menu_gtk.h
diff options
context:
space:
mode:
authorerg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-16 18:19:17 +0000
committererg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-16 18:19:17 +0000
commit2b2d1697cd3cd6303b372949565bb8ac87741589 (patch)
tree2c4ca63f7e4854c1be423d74896ec71d4c80a858 /chrome/browser/gtk/menu_gtk.h
parent54e1d52455272e0af32b4c6080f1914f6f2c4f95 (diff)
downloadchromium_src-2b2d1697cd3cd6303b372949565bb8ac87741589.zip
chromium_src-2b2d1697cd3cd6303b372949565bb8ac87741589.tar.gz
chromium_src-2b2d1697cd3cd6303b372949565bb8ac87741589.tar.bz2
Recommit previous change with GYP files fixed.
Implement BookmarkContextMenuGtk and hook it up to most bookmark bar elements. Also: - Fixes window dispositions (shift-click works on bookmark bar items). - Reorganizes gtk_utils Original Review URL: http://codereview.chromium.org/76002 Review URL: http://codereview.chromium.org/67223 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13857 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/menu_gtk.h')
-rw-r--r--chrome/browser/gtk/menu_gtk.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/gtk/menu_gtk.h b/chrome/browser/gtk/menu_gtk.h
index 9b9a724..371ed58 100644
--- a/chrome/browser/gtk/menu_gtk.h
+++ b/chrome/browser/gtk/menu_gtk.h
@@ -67,6 +67,11 @@ class MenuGtk {
// Closes the menu.
void Cancel();
+ // Change windows accelerator style to GTK style. (GTK uses _ for
+ // accelerators. Windows uses & with && as an escape for &.)
+ static std::string ConvertAcceleratorsFromWindowsStyle(
+ const std::string& label);
+
private:
// A recursive function that transforms a MenuCreateMaterial tree into a set
// of GtkMenuItems.