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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_GTK_BROWSER_TOOLBAR_GTK_H_ 5 #ifndef CHROME_BROWSER_GTK_BROWSER_TOOLBAR_GTK_H_
6 #define CHROME_BROWSER_GTK_BROWSER_TOOLBAR_GTK_H_ 6 #define CHROME_BROWSER_GTK_BROWSER_TOOLBAR_GTK_H_
7 7
8 #include <gtk/gtk.h> 8 #include <gtk/gtk.h>
9 #include <string> 9 #include <string>
10 10
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 void AddAcceleratorToButton( 102 void AddAcceleratorToButton(
103 GtkWidget*, unsigned int accelerator, unsigned int accelerator_mod); 103 GtkWidget*, unsigned int accelerator, unsigned int accelerator_mod);
104 104
105 // Gtk callback for the "expose-event" signal. 105 // Gtk callback for the "expose-event" signal.
106 static gboolean OnToolbarExpose(GtkWidget* widget, GdkEventExpose* e, 106 static gboolean OnToolbarExpose(GtkWidget* widget, GdkEventExpose* e,
107 BrowserToolbarGtk* toolbar); 107 BrowserToolbarGtk* toolbar);
108 108
109 // Gtk callback for the "clicked" signal. 109 // Gtk callback for the "clicked" signal.
110 static void OnButtonClick(GtkWidget* button, BrowserToolbarGtk* toolbar); 110 static void OnButtonClick(GtkWidget* button, BrowserToolbarGtk* toolbar);
111 111
112 // Gtk callback for the "button-release-event" signal.
113 static gboolean OnButtonRelease(GtkWidget* button, GdkEventButton* event,
114 BrowserToolbarGtk* toolbar);
115
112 // Gtk callback to intercept mouse clicks to the menu buttons. 116 // Gtk callback to intercept mouse clicks to the menu buttons.
113 static gboolean OnMenuButtonPressEvent(GtkWidget* button, 117 static gboolean OnMenuButtonPressEvent(GtkWidget* button,
114 GdkEventButton* event, 118 GdkEventButton* event,
115 BrowserToolbarGtk* toolbar); 119 BrowserToolbarGtk* toolbar);
116 120
117 // Initialize the background NineBox. 121 // Initialize the background NineBox.
118 void InitNineBox(); 122 void InitNineBox();
119 123
120 // Ninebox for the toolbar background 124 // Ninebox for the toolbar background
121 scoped_ptr<NineBox> background_ninebox_; 125 scoped_ptr<NineBox> background_ninebox_;
(...skipping 22 matching lines...) Expand all
144 scoped_ptr<MenuGtk> page_menu_; 148 scoped_ptr<MenuGtk> page_menu_;
145 scoped_ptr<MenuGtk> app_menu_; 149 scoped_ptr<MenuGtk> app_menu_;
146 150
147 Browser* browser_; 151 Browser* browser_;
148 BrowserWindowGtk* window_; 152 BrowserWindowGtk* window_;
149 Profile* profile_; 153 Profile* profile_;
150 154
151 // Controls whether or not a home button should be shown on the toolbar. 155 // Controls whether or not a home button should be shown on the toolbar.
152 BooleanPrefMember show_home_button_; 156 BooleanPrefMember show_home_button_;
153 157
158 // The event state the last time we observed a button release event.
159 int last_release_event_flags_;
160
154 DISALLOW_COPY_AND_ASSIGN(BrowserToolbarGtk); 161 DISALLOW_COPY_AND_ASSIGN(BrowserToolbarGtk);
155 }; 162 };
156 163
157 #endif // CHROME_BROWSER_GTK_BROWSER_TOOLBAR_GTK_H_ 164 #endif // CHROME_BROWSER_GTK_BROWSER_TOOLBAR_GTK_H_
OLDNEW
« 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