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 "chrome/browser/prefs/pref_member.h" | 17 #include "chrome/browser/api/prefs/pref_member.h" |
18 #include "chrome/browser/ui/gtk/browser_titlebar_base.h" | 18 #include "chrome/browser/ui/gtk/browser_titlebar_base.h" |
19 #include "chrome/browser/ui/gtk/titlebar_throb_animation.h" | 19 #include "chrome/browser/ui/gtk/titlebar_throb_animation.h" |
20 #include "content/public/browser/notification_observer.h" | 20 #include "content/public/browser/notification_observer.h" |
21 #include "content/public/browser/notification_registrar.h" | 21 #include "content/public/browser/notification_registrar.h" |
22 #include "ui/base/gtk/gtk_signal.h" | 22 #include "ui/base/gtk/gtk_signal.h" |
23 #include "ui/base/models/simple_menu_model.h" | 23 #include "ui/base/models/simple_menu_model.h" |
24 #include "ui/base/x/active_window_watcher_x_observer.h" | 24 #include "ui/base/x/active_window_watcher_x_observer.h" |
25 | 25 |
26 class AvatarMenuButtonGtk; | 26 class AvatarMenuButtonGtk; |
27 class BrowserWindowGtk; | 27 class BrowserWindowGtk; |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 // The avatar button. | 231 // The avatar button. |
232 scoped_ptr<AvatarMenuButtonGtk> avatar_button_; | 232 scoped_ptr<AvatarMenuButtonGtk> avatar_button_; |
233 | 233 |
234 // Theme provider for building buttons. | 234 // Theme provider for building buttons. |
235 GtkThemeService* theme_service_; | 235 GtkThemeService* theme_service_; |
236 | 236 |
237 content::NotificationRegistrar registrar_; | 237 content::NotificationRegistrar registrar_; |
238 }; | 238 }; |
239 | 239 |
240 #endif // CHROME_BROWSER_UI_GTK_BROWSER_TITLEBAR_H_ | 240 #endif // CHROME_BROWSER_UI_GTK_BROWSER_TITLEBAR_H_ |
OLD | NEW |