summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk/menu_gtk.h
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-03 23:19:02 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-03 23:19:02 +0000
commit2c0a3347e89dab58e3528c3a2bca61db4ef32d6c (patch)
treeee24fe7cbc671a71c15ba9591b954a42eaa10b96 /chrome/browser/gtk/menu_gtk.h
parenta1bb3d1d459517caa85a0c534994d5efe8b4b3b0 (diff)
downloadchromium_src-2c0a3347e89dab58e3528c3a2bca61db4ef32d6c.zip
chromium_src-2c0a3347e89dab58e3528c3a2bca61db4ef32d6c.tar.gz
chromium_src-2c0a3347e89dab58e3528c3a2bca61db4ef32d6c.tar.bz2
Gtk: pass the correct event time when we show right click context menus in the render view.
Review URL: http://codereview.chromium.org/62024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13127 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, 4 insertions, 1 deletions
diff --git a/chrome/browser/gtk/menu_gtk.h b/chrome/browser/gtk/menu_gtk.h
index f9060e1..0506ff3 100644
--- a/chrome/browser/gtk/menu_gtk.h
+++ b/chrome/browser/gtk/menu_gtk.h
@@ -55,7 +55,10 @@ class MenuGtk {
void Popup(GtkWidget* widget, GdkEvent* event);
// Displays the menu as a context menu, i.e. at the current cursor location.
- void PopupAsContext();
+ // |event_time| is the time of the event that triggered the menu's display.
+ // In the future we may need to modify this to act differently based on the
+ // triggering event (e.g. right mouse click, context menu key, etc.).
+ void PopupAsContext(guint32 event_time);
private:
// A recursive function that transforms a MenuCreateMaterial tree into a set