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

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

Issue 159303: Implement location only display mode (used by popup windows). (Closed)
Patch Set: fix crash 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
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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 140
141 // These event handlers are used to fake menu-bar behavior in the page and 141 // These event handlers are used to fake menu-bar behavior in the page and
142 // app menus. 142 // app menus.
143 static gboolean OnPageAppMenuMouseMotion(GtkWidget* widget, 143 static gboolean OnPageAppMenuMouseMotion(GtkWidget* widget,
144 GdkEventMotion* event, 144 GdkEventMotion* event,
145 BrowserToolbarGtk* toolbar); 145 BrowserToolbarGtk* toolbar);
146 static void OnPageAppMenuMoveCurrent(GtkWidget* widget, 146 static void OnPageAppMenuMoveCurrent(GtkWidget* widget,
147 GtkMenuDirectionType dir, 147 GtkMenuDirectionType dir,
148 BrowserToolbarGtk* toolbar); 148 BrowserToolbarGtk* toolbar);
149 149
150 // Sometimes we only want to show the location w/o the toolbar buttons (e.g.,
151 // in a popup window).
152 bool ShouldOnlyShowLocation() const;
153
150 // Ninebox for the toolbar background 154 // Ninebox for the toolbar background
151 scoped_ptr<NineBox> background_ninebox_; 155 scoped_ptr<NineBox> background_ninebox_;
152 156
153 // An event box that holds |toolbar_|. We need the toolbar to have its own 157 // An event box that holds |toolbar_|. We need the toolbar to have its own
154 // GdkWindow when we use the GTK drawing because otherwise the color from our 158 // GdkWindow when we use the GTK drawing because otherwise the color from our
155 // parent GdkWindow will leak through with some theme engines (such as 159 // parent GdkWindow will leak through with some theme engines (such as
156 // Clearlooks). 160 // Clearlooks).
157 GtkWidget* event_box_; 161 GtkWidget* event_box_;
158 162
159 // Gtk widgets. The toolbar is an hbox with each of the other pieces of the 163 // Gtk widgets. The toolbar is an hbox with each of the other pieces of the
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 201
198 // The event state the last time we observed a button release event. 202 // The event state the last time we observed a button release event.
199 int last_release_event_flags_; 203 int last_release_event_flags_;
200 204
201 NotificationRegistrar registrar_; 205 NotificationRegistrar registrar_;
202 206
203 DISALLOW_COPY_AND_ASSIGN(BrowserToolbarGtk); 207 DISALLOW_COPY_AND_ASSIGN(BrowserToolbarGtk);
204 }; 208 };
205 209
206 #endif // CHROME_BROWSER_GTK_BROWSER_TOOLBAR_GTK_H_ 210 #endif // CHROME_BROWSER_GTK_BROWSER_TOOLBAR_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/autocomplete_edit_view_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