Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5887)

Unified Diff: chrome/browser/gtk/browser_toolbar_gtk.h

Issue 131071: Implement window open disposition for (some) navigation buttons.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: bool->int Created 11 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/gtk/back_forward_button_gtk.cc ('k') | chrome/browser/gtk/browser_toolbar_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/browser_toolbar_gtk.h
===================================================================
--- chrome/browser/gtk/browser_toolbar_gtk.h (revision 18718)
+++ chrome/browser/gtk/browser_toolbar_gtk.h (working copy)
@@ -109,6 +109,10 @@
// 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 @@
// 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);
};
« no previous file with comments | « chrome/browser/gtk/back_forward_button_gtk.cc ('k') | chrome/browser/gtk/browser_toolbar_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698