diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-21 01:18:18 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-21 01:18:18 +0000 |
commit | 2d8bfca747e386fd929c57e014e227b148ac2142 (patch) | |
tree | 16f10c8b5cd98f97555c34644665e9cbb217ccd3 /chrome/browser/gtk/menu_gtk.h | |
parent | 296bdc35c3dc39002707388f834e1f93c0242fe6 (diff) | |
download | chromium_src-2d8bfca747e386fd929c57e014e227b148ac2142.zip chromium_src-2d8bfca747e386fd929c57e014e227b148ac2142.tar.gz chromium_src-2d8bfca747e386fd929c57e014e227b148ac2142.tar.bz2 |
linux: implement encodings menu
BUG=11599
Review URL: http://codereview.chromium.org/155830
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21140 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/menu_gtk.h')
-rw-r--r-- | chrome/browser/gtk/menu_gtk.h | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/chrome/browser/gtk/menu_gtk.h b/chrome/browser/gtk/menu_gtk.h index 2249e3d..501d80f 100644 --- a/chrome/browser/gtk/menu_gtk.h +++ b/chrome/browser/gtk/menu_gtk.h @@ -62,6 +62,7 @@ class MenuGtk { const SkBitmap& icon); void AppendCheckMenuItemWithLabel(int command_id, const std::string& label); void AppendSeparator(); + void AppendMenuItem(int command_id, GtkWidget* menu_item); // Displays the menu. |timestamp| is the time of activation. The popup is // statically positioned at |widget|. @@ -109,18 +110,9 @@ class MenuGtk { // recursive and does not support sub-menus. void BuildMenuFromDelegate(); - // Helper method that sets properties on a GtkMenuItem and then adds it to - // our internal |menu_|. - void AddMenuItemWithId(GtkWidget* menu_item, int id); - - // Callback for when a menu item is clicked. Used when the menu is created - // via a MenuCreateMaterial. + // Callback for when a menu item is clicked. static void OnMenuItemActivated(GtkMenuItem* menuitem, MenuGtk* menu); - // Callback for when a menu item is clicked. Used when the menu is created - // via |delegate_|. - static void OnMenuItemActivatedById(GtkMenuItem* menuitem, MenuGtk* menu); - // Sets the check mark and enabled/disabled state on our menu items. static void SetMenuItemInfo(GtkWidget* widget, void* raw_menu); |