diff options
author | atwilson@chromium.org <atwilson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-24 05:12:51 +0000 |
---|---|---|
committer | atwilson@chromium.org <atwilson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-24 05:12:51 +0000 |
commit | d75d871e362c774d1f221f9e878ac508989789cf (patch) | |
tree | 86c3f3283f8cc0fc3fef6a1bf266b26c36d73bf0 /chrome/browser/gtk/menu_gtk.h | |
parent | c5419ba7b78b4ff4c00658586b240e076496a3d2 (diff) | |
download | chromium_src-d75d871e362c774d1f221f9e878ac508989789cf.zip chromium_src-d75d871e362c774d1f221f9e878ac508989789cf.tar.gz chromium_src-d75d871e362c774d1f221f9e878ac508989789cf.tar.bz2 |
Add support for status icon context menus for gtk.
Rename ResetContextIcon()->UpdatePlatformContextIcon().
BUG=37375
TEST=CreateIcon updated
Review URL: http://codereview.chromium.org/3127028
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57142 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/menu_gtk.h')
-rw-r--r-- | chrome/browser/gtk/menu_gtk.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/gtk/menu_gtk.h b/chrome/browser/gtk/menu_gtk.h index ee0114e..7f8e7ec 100644 --- a/chrome/browser/gtk/menu_gtk.h +++ b/chrome/browser/gtk/menu_gtk.h @@ -83,6 +83,10 @@ class MenuGtk { // Displays the menu at the given coords. |point| is intentionally not const. void PopupAsContextAt(guint32 event_time, gfx::Point point); + // Displays the menu as a context menu for the passed status icon. + void PopupAsContextForStatusIcon(guint32 event_time, guint32 button, + GtkStatusIcon* icon); + // Displays the menu following a keyboard event (such as selecting |widget| // and pressing "enter"). void PopupAsFromKeyEvent(GtkWidget* widget); |