| 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_ |
| 11 #define CHROME_BROWSER_UI_GTK_BROWSER_TITLEBAR_H_ | 11 #define CHROME_BROWSER_UI_GTK_BROWSER_TITLEBAR_H_ |
| 12 #pragma once | 12 #pragma once |
| 13 | 13 |
| 14 #include <gtk/gtk.h> | 14 #include <gtk/gtk.h> |
| 15 | 15 |
| 16 #include "base/compiler_specific.h" | 16 #include "base/compiler_specific.h" |
| 17 #include "base/memory/scoped_ptr.h" | 17 #include "base/memory/scoped_ptr.h" |
| 18 #include "chrome/browser/prefs/pref_member.h" | 18 #include "chrome/browser/prefs/pref_member.h" |
| 19 #include "content/public/browser/notification_observer.h" | 19 #include "content/public/browser/notification_observer.h" |
| 20 #include "content/public/browser/notification_registrar.h" | 20 #include "content/public/browser/notification_registrar.h" |
| 21 #include "ui/base/gtk/gtk_signal.h" | 21 #include "ui/base/gtk/gtk_signal.h" |
| 22 #include "ui/base/models/simple_menu_model.h" | 22 #include "ui/base/models/simple_menu_model.h" |
| 23 #include "ui/base/x/active_window_watcher_x_observer.h" | 23 #include "ui/base/x/active_window_watcher_x_observer.h" |
| 24 | 24 |
| 25 class AvatarMenuButtonGtk; | 25 class AvatarMenuButtonGtk; |
| 26 class BrowserWindowGtk; | 26 class BrowserWindowGtk; |
| 27 class CustomDrawButton; | 27 class CustomDrawButton; |
| 28 class GtkThemeService; | 28 class ThemeServiceGtk; |
| 29 class MenuGtk; | 29 class MenuGtk; |
| 30 class PopupPageMenuModel; | 30 class PopupPageMenuModel; |
| 31 class TabContents; | 31 class TabContents; |
| 32 | 32 |
| 33 namespace content { | 33 namespace content { |
| 34 class WebContents; | 34 class WebContents; |
| 35 } | 35 } |
| 36 | 36 |
| 37 class BrowserTitlebar : public content::NotificationObserver, | 37 class BrowserTitlebar : public content::NotificationObserver, |
| 38 public ui::ActiveWindowWatcherXObserver, | 38 public ui::ActiveWindowWatcherXObserver, |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 scoped_ptr<MenuGtk> favicon_menu_; | 284 scoped_ptr<MenuGtk> favicon_menu_; |
| 285 scoped_ptr<PopupPageMenuModel> favicon_menu_model_; | 285 scoped_ptr<PopupPageMenuModel> favicon_menu_model_; |
| 286 | 286 |
| 287 // The throbber used when the window is in app mode or popup window mode. | 287 // The throbber used when the window is in app mode or popup window mode. |
| 288 Throbber throbber_; | 288 Throbber throbber_; |
| 289 | 289 |
| 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 GtkThemeService* 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 |