| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_UI_GTK_BROWSER_TITLEBAR_H_ | 10 #ifndef CHROME_BROWSER_UI_GTK_BROWSER_TITLEBAR_H_ |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 | 199 |
| 200 bool IsTypePanel(); | 200 bool IsTypePanel(); |
| 201 | 201 |
| 202 // Whether to display the avatar image. | 202 // Whether to display the avatar image. |
| 203 bool ShouldDisplayAvatar(); | 203 bool ShouldDisplayAvatar(); |
| 204 | 204 |
| 205 // Returns true if the profile associated with this BrowserWindow is off the | 205 // Returns true if the profile associated with this BrowserWindow is off the |
| 206 // record. | 206 // record. |
| 207 bool IsOffTheRecord(); | 207 bool IsOffTheRecord(); |
| 208 | 208 |
| 209 // Pointers to the browser window that owns us and it's GtkWindow. | 209 // Pointers to the browser window that owns us and its GtkWindow. |
| 210 BrowserWindowGtk* browser_window_; | 210 BrowserWindowGtk* browser_window_; |
| 211 GtkWindow* window_; | 211 GtkWindow* window_; |
| 212 | 212 |
| 213 // The container widget the holds the hbox which contains the whole titlebar. | 213 // The container widget the holds the hbox which contains the whole titlebar. |
| 214 GtkWidget* container_; | 214 GtkWidget* container_; |
| 215 | 215 |
| 216 // The hbox that contains the whole titlebar. | 216 // The hbox that contains the whole titlebar. |
| 217 GtkWidget* container_hbox_; | 217 GtkWidget* container_hbox_; |
| 218 | 218 |
| 219 // VBoxes that holds the min/max/close buttons box and an optional padding | 219 // VBoxes that holds the min/max/close buttons box and an optional padding |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 // The avatar button. | 290 // The avatar button. |
| 291 scoped_ptr<AvatarMenuButtonGtk> avatar_button_; | 291 scoped_ptr<AvatarMenuButtonGtk> avatar_button_; |
| 292 | 292 |
| 293 // Theme provider for building buttons. | 293 // Theme provider for building buttons. |
| 294 ThemeServiceGtk* theme_service_; | 294 ThemeServiceGtk* theme_service_; |
| 295 | 295 |
| 296 content::NotificationRegistrar registrar_; | 296 content::NotificationRegistrar registrar_; |
| 297 }; | 297 }; |
| 298 | 298 |
| 299 #endif // CHROME_BROWSER_UI_GTK_BROWSER_TITLEBAR_H_ | 299 #endif // CHROME_BROWSER_UI_GTK_BROWSER_TITLEBAR_H_ |
| OLD | NEW |