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

Side by Side Diff: chrome/browser/gtk/browser_toolbar_gtk.h

Issue 149681: GTK Themes: Make the omnibox area look more native. (Closed)
Patch Set: Change names for Dean Created 11 years, 5 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
« no previous file with comments | « chrome/browser/browser_theme_provider.cc ('k') | chrome/browser/gtk/browser_toolbar_gtk.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 // Connect signals for dragging a url onto the home button. 107 // Connect signals for dragging a url onto the home button.
108 void SetUpDragForHomeButton(); 108 void SetUpDragForHomeButton();
109 109
110 // Helper for the PageAppMenu event handlers. Pops down the currently active 110 // Helper for the PageAppMenu event handlers. Pops down the currently active
111 // meun and pops up the other menu. 111 // meun and pops up the other menu.
112 void ChangeActiveMenu(GtkWidget* active_menu, guint timestamp); 112 void ChangeActiveMenu(GtkWidget* active_menu, guint timestamp);
113 113
114 // Gtk callback for the "expose-event" signal. 114 // Gtk callback for the "expose-event" signal.
115 static gboolean OnToolbarExpose(GtkWidget* widget, GdkEventExpose* e, 115 static gboolean OnToolbarExpose(GtkWidget* widget, GdkEventExpose* e,
116 BrowserToolbarGtk* toolbar); 116 BrowserToolbarGtk* toolbar);
117 static gboolean OnLocationHboxExpose(GtkWidget* omnibox_hbox,
118 GdkEventExpose* e,
119 BrowserToolbarGtk* toolbar);
117 120
118 // Gtk callback for the "clicked" signal. 121 // Gtk callback for the "clicked" signal.
119 static void OnButtonClick(GtkWidget* button, BrowserToolbarGtk* toolbar); 122 static void OnButtonClick(GtkWidget* button, BrowserToolbarGtk* toolbar);
120 123
121 // Gtk callback for the "button-release-event" signal. 124 // Gtk callback for the "button-release-event" signal.
122 static gboolean OnButtonRelease(GtkWidget* button, GdkEventButton* event, 125 static gboolean OnButtonRelease(GtkWidget* button, GdkEventButton* event,
123 BrowserToolbarGtk* toolbar); 126 BrowserToolbarGtk* toolbar);
124 127
125 // Gtk callback to intercept mouse clicks to the menu buttons. 128 // Gtk callback to intercept mouse clicks to the menu buttons.
126 static gboolean OnMenuButtonPressEvent(GtkWidget* button, 129 static gboolean OnMenuButtonPressEvent(GtkWidget* button,
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 199
197 // The event state the last time we observed a button release event. 200 // The event state the last time we observed a button release event.
198 int last_release_event_flags_; 201 int last_release_event_flags_;
199 202
200 NotificationRegistrar registrar_; 203 NotificationRegistrar registrar_;
201 204
202 DISALLOW_COPY_AND_ASSIGN(BrowserToolbarGtk); 205 DISALLOW_COPY_AND_ASSIGN(BrowserToolbarGtk);
203 }; 206 };
204 207
205 #endif // CHROME_BROWSER_GTK_BROWSER_TOOLBAR_GTK_H_ 208 #endif // CHROME_BROWSER_GTK_BROWSER_TOOLBAR_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/browser_theme_provider.cc ('k') | chrome/browser/gtk/browser_toolbar_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698