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 | 12 |
13 #include <gtk/gtk.h> | 13 #include <gtk/gtk.h> |
14 | 14 |
15 #include "base/compiler_specific.h" | 15 #include "base/compiler_specific.h" |
16 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
17 #include "base/prefs/public/pref_member.h" | 17 #include "base/prefs/pref_member.h" |
18 #include "chrome/browser/ui/gtk/titlebar_throb_animation.h" | 18 #include "chrome/browser/ui/gtk/titlebar_throb_animation.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; |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 // The avatar button. | 250 // The avatar button. |
251 scoped_ptr<AvatarMenuButtonGtk> avatar_button_; | 251 scoped_ptr<AvatarMenuButtonGtk> avatar_button_; |
252 | 252 |
253 // Theme provider for building buttons. | 253 // Theme provider for building buttons. |
254 GtkThemeService* theme_service_; | 254 GtkThemeService* theme_service_; |
255 | 255 |
256 content::NotificationRegistrar registrar_; | 256 content::NotificationRegistrar registrar_; |
257 }; | 257 }; |
258 | 258 |
259 #endif // CHROME_BROWSER_UI_GTK_BROWSER_TITLEBAR_H_ | 259 #endif // CHROME_BROWSER_UI_GTK_BROWSER_TITLEBAR_H_ |
OLD | NEW |