From eda19d2232e18f89c69ddceedbfdefea3c0c722b Mon Sep 17 00:00:00 2001 From: "estade@chromium.org" Date: Fri, 19 Jun 2009 03:28:11 +0000 Subject: 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 --- chrome/browser/gtk/browser_toolbar_gtk.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'chrome/browser/gtk/browser_toolbar_gtk.h') 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); }; -- cgit v1.1