summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk/browser_toolbar_gtk.h
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-19 03:28:11 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-19 03:28:11 +0000
commiteda19d2232e18f89c69ddceedbfdefea3c0c722b (patch)
treeb9882e1c7c1cc0dca9752876b404680d82e75f0e /chrome/browser/gtk/browser_toolbar_gtk.h
parentc6f2baf134f965f280fa1e1b26c9e225cad58a8f (diff)
downloadchromium_src-eda19d2232e18f89c69ddceedbfdefea3c0c722b.zip
chromium_src-eda19d2232e18f89c69ddceedbfdefea3c0c722b.tar.gz
chromium_src-eda19d2232e18f89c69ddceedbfdefea3c0c722b.tar.bz2
Implement window open disposition for (some) navigation buttons.
still need to do similar for link buttons and such. BUG=14518 Review URL: http://codereview.chromium.org/131071 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18786 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/browser_toolbar_gtk.h')
-rw-r--r--chrome/browser/gtk/browser_toolbar_gtk.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/browser/gtk/browser_toolbar_gtk.h b/chrome/browser/gtk/browser_toolbar_gtk.h
index cbe288c..a636905 100644
--- a/chrome/browser/gtk/browser_toolbar_gtk.h
+++ b/chrome/browser/gtk/browser_toolbar_gtk.h
@@ -109,6 +109,10 @@ class BrowserToolbarGtk : public CommandUpdater::CommandObserver,
// Gtk callback for the "clicked" signal.
static void OnButtonClick(GtkWidget* button, BrowserToolbarGtk* toolbar);
+ // Gtk callback for the "button-release-event" signal.
+ static gboolean OnButtonRelease(GtkWidget* button, GdkEventButton* event,
+ BrowserToolbarGtk* toolbar);
+
// Gtk callback to intercept mouse clicks to the menu buttons.
static gboolean OnMenuButtonPressEvent(GtkWidget* button,
GdkEventButton* event,
@@ -151,6 +155,9 @@ class BrowserToolbarGtk : public CommandUpdater::CommandObserver,
// Controls whether or not a home button should be shown on the toolbar.
BooleanPrefMember show_home_button_;
+ // The event state the last time we observed a button release event.
+ int last_release_event_flags_;
+
DISALLOW_COPY_AND_ASSIGN(BrowserToolbarGtk);
};