OLD | NEW |
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 // A helper class that contains the gtk widgets that make up the titlebar. The | 5 // A helper class that contains the gtk widgets that make up the titlebar. The |
6 // titlebar consists of the tabstrip and if the custom chrome frame is turned | 6 // titlebar consists of the tabstrip and if the custom chrome frame is turned |
7 // on, it includes the taller titlebar and minimize, restore, maximize, and | 7 // on, it includes the taller titlebar and minimize, restore, maximize, and |
8 // close buttons. | 8 // close buttons. |
9 | 9 |
10 #ifndef CHROME_BROWSER_GTK_BROWSER_TITLEBAR_H_ | 10 #ifndef CHROME_BROWSER_GTK_BROWSER_TITLEBAR_H_ |
(...skipping 13 matching lines...) Expand all Loading... |
24 class CustomDrawButton; | 24 class CustomDrawButton; |
25 class GtkThemeProvider; | 25 class GtkThemeProvider; |
26 class MenuGtk; | 26 class MenuGtk; |
27 class PopupPageMenuModel; | 27 class PopupPageMenuModel; |
28 class TabContents; | 28 class TabContents; |
29 | 29 |
30 class BrowserTitlebar : public NotificationObserver, | 30 class BrowserTitlebar : public NotificationObserver, |
31 public ActiveWindowWatcherX::Observer, | 31 public ActiveWindowWatcherX::Observer, |
32 public menus::SimpleMenuModel::Delegate { | 32 public menus::SimpleMenuModel::Delegate { |
33 public: | 33 public: |
| 34 // A default button order string for when we aren't asking gconf for the |
| 35 // metacity configuration. |
| 36 static const char kDefaultButtonString[]; |
| 37 |
34 BrowserTitlebar(BrowserWindowGtk* browser_window, GtkWindow* window); | 38 BrowserTitlebar(BrowserWindowGtk* browser_window, GtkWindow* window); |
35 virtual ~BrowserTitlebar(); | 39 virtual ~BrowserTitlebar(); |
36 | 40 |
37 GtkWidget* widget() { | 41 GtkWidget* widget() { |
38 return container_; | 42 return container_; |
39 } | 43 } |
40 | 44 |
41 void set_window(GtkWindow* window) { window_ = window; } | 45 void set_window(GtkWindow* window) { window_ = window; } |
42 | 46 |
43 // Builds the buttons based on the metacity |button_string|. | 47 // Builds the buttons based on the metacity |button_string|. |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 // The throbber used when the window is in app mode or popup window mode. | 230 // The throbber used when the window is in app mode or popup window mode. |
227 Throbber throbber_; | 231 Throbber throbber_; |
228 | 232 |
229 // Theme provider for building buttons. | 233 // Theme provider for building buttons. |
230 GtkThemeProvider* theme_provider_; | 234 GtkThemeProvider* theme_provider_; |
231 | 235 |
232 NotificationRegistrar registrar_; | 236 NotificationRegistrar registrar_; |
233 }; | 237 }; |
234 | 238 |
235 #endif // CHROME_BROWSER_GTK_BROWSER_TITLEBAR_H_ | 239 #endif // CHROME_BROWSER_GTK_BROWSER_TITLEBAR_H_ |
OLD | NEW |