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 #ifndef CHROME_BROWSER_THEMES_THEME_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_THEMES_THEME_SERVICE_H_ |
6 #define CHROME_BROWSER_THEMES_THEME_SERVICE_H_ | 6 #define CHROME_BROWSER_THEMES_THEME_SERVICE_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 // ExtensionService. | 103 // ExtensionService. |
104 virtual void SetTheme(const extensions::Extension* extension); | 104 virtual void SetTheme(const extensions::Extension* extension); |
105 | 105 |
106 // Reset the theme to default. | 106 // Reset the theme to default. |
107 virtual void UseDefaultTheme(); | 107 virtual void UseDefaultTheme(); |
108 | 108 |
109 // Set the current theme to the system theme. On some platforms, the system | 109 // Set the current theme to the system theme. On some platforms, the system |
110 // theme is the default theme. | 110 // theme is the default theme. |
111 virtual void UseSystemTheme(); | 111 virtual void UseSystemTheme(); |
112 | 112 |
| 113 // Returns true if the default theme and system theme are not the same on |
| 114 // this platform. |
| 115 virtual bool IsSystemThemeDistinctFromDefaultTheme() const; |
| 116 |
113 // Whether we're using the chrome default theme. Virtual so linux can check | 117 // Whether we're using the chrome default theme. Virtual so linux can check |
114 // if we're using the GTK theme. | 118 // if we're using the GTK theme. |
115 virtual bool UsingDefaultTheme() const; | 119 virtual bool UsingDefaultTheme() const; |
116 | 120 |
117 // Gets the id of the last installed theme. (The theme may have been further | 121 // Gets the id of the last installed theme. (The theme may have been further |
118 // locally customized.) | 122 // locally customized.) |
119 virtual std::string GetThemeID() const; | 123 virtual std::string GetThemeID() const; |
120 | 124 |
121 // This class needs to keep track of the number of theme infobars so that we | 125 // This class needs to keep track of the number of theme infobars so that we |
122 // clean up unused themes. | 126 // clean up unused themes. |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 content::NotificationRegistrar registrar_; | 246 content::NotificationRegistrar registrar_; |
243 | 247 |
244 scoped_ptr<ThemeSyncableService> theme_syncable_service_; | 248 scoped_ptr<ThemeSyncableService> theme_syncable_service_; |
245 | 249 |
246 base::WeakPtrFactory<ThemeService> weak_ptr_factory_; | 250 base::WeakPtrFactory<ThemeService> weak_ptr_factory_; |
247 | 251 |
248 DISALLOW_COPY_AND_ASSIGN(ThemeService); | 252 DISALLOW_COPY_AND_ASSIGN(ThemeService); |
249 }; | 253 }; |
250 | 254 |
251 #endif // CHROME_BROWSER_THEMES_THEME_SERVICE_H_ | 255 #endif // CHROME_BROWSER_THEMES_THEME_SERVICE_H_ |
OLD | NEW |