| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #ifndef CHROME_BROWSER_UI_GTK_GTK_THEME_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_UI_GTK_GTK_THEME_SERVICE_H_ |
| 6 #define CHROME_BROWSER_UI_GTK_GTK_THEME_SERVICE_H_ | 6 #define CHROME_BROWSER_UI_GTK_GTK_THEME_SERVICE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 virtual SkBitmap* GetBitmapNamed(int id) const; | 53 virtual SkBitmap* GetBitmapNamed(int id) const; |
| 54 virtual SkColor GetColor(int id) const; | 54 virtual SkColor GetColor(int id) const; |
| 55 virtual bool HasCustomImage(int id) const; | 55 virtual bool HasCustomImage(int id) const; |
| 56 virtual void SetTheme(const Extension* extension); | 56 virtual void SetTheme(const Extension* extension); |
| 57 virtual void UseDefaultTheme(); | 57 virtual void UseDefaultTheme(); |
| 58 virtual void SetNativeTheme(); | 58 virtual void SetNativeTheme(); |
| 59 virtual bool UsingDefaultTheme() const; | 59 virtual bool UsingDefaultTheme() const; |
| 60 virtual bool UsingNativeTheme() const; | 60 virtual bool UsingNativeTheme() const; |
| 61 | 61 |
| 62 // Overridden from ThemeService, NotificationObserver: | 62 // Overridden from ThemeService, NotificationObserver: |
| 63 virtual void Observe(NotificationType type, | 63 virtual void Observe(int type, |
| 64 const NotificationSource& source, | 64 const NotificationSource& source, |
| 65 const NotificationDetails& details); | 65 const NotificationDetails& details); |
| 66 | 66 |
| 67 // Creates a GtkChromeButton instance, registered with this theme provider, | 67 // Creates a GtkChromeButton instance, registered with this theme provider, |
| 68 // with a "destroy" signal to remove it from our internal list when it goes | 68 // with a "destroy" signal to remove it from our internal list when it goes |
| 69 // away. | 69 // away. |
| 70 GtkWidget* BuildChromeButton(); | 70 GtkWidget* BuildChromeButton(); |
| 71 | 71 |
| 72 // Creates a GtkChromeLinkButton instance. We update its state as theme | 72 // Creates a GtkChromeLinkButton instance. We update its state as theme |
| 73 // changes, and listen for its destruction. | 73 // changes, and listen for its destruction. |
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 315 | 315 |
| 316 // The default folder icon and default bookmark icon for the GTK theme. | 316 // The default folder icon and default bookmark icon for the GTK theme. |
| 317 // These are static because the system can only have one theme at a time. | 317 // These are static because the system can only have one theme at a time. |
| 318 // They are cached when they are requested the first time, and cleared when | 318 // They are cached when they are requested the first time, and cleared when |
| 319 // the system theme changes. | 319 // the system theme changes. |
| 320 static GdkPixbuf* default_folder_icon_; | 320 static GdkPixbuf* default_folder_icon_; |
| 321 static GdkPixbuf* default_bookmark_icon_; | 321 static GdkPixbuf* default_bookmark_icon_; |
| 322 }; | 322 }; |
| 323 | 323 |
| 324 #endif // CHROME_BROWSER_UI_GTK_GTK_THEME_SERVICE_H_ | 324 #endif // CHROME_BROWSER_UI_GTK_GTK_THEME_SERVICE_H_ |
| OLD | NEW |