OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_BROWSER_THEME_PROVIDER_H_ | 5 #ifndef CHROME_BROWSER_BROWSER_THEME_PROVIDER_H_ |
6 #define CHROME_BROWSER_BROWSER_THEME_PROVIDER_H_ | 6 #define CHROME_BROWSER_BROWSER_THEME_PROVIDER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 // Get the specified tint - |id| is one of the TINT_* enum values. | 197 // Get the specified tint - |id| is one of the TINT_* enum values. |
198 color_utils::HSL GetTint(int id) const; | 198 color_utils::HSL GetTint(int id) const; |
199 | 199 |
200 // Clears all the override fields and saves the dictionary. | 200 // Clears all the override fields and saves the dictionary. |
201 virtual void ClearAllThemeData(); | 201 virtual void ClearAllThemeData(); |
202 | 202 |
203 // Load theme data from preferences. | 203 // Load theme data from preferences. |
204 virtual void LoadThemePrefs(); | 204 virtual void LoadThemePrefs(); |
205 | 205 |
206 // Let all the browser views know that themes have changed. | 206 // Let all the browser views know that themes have changed. |
207 virtual void NotifyThemeChanged(); | 207 // extension is NULL iff the theme is being set to the |
| 208 // default/system theme. |
| 209 virtual void NotifyThemeChanged(Extension* extension); |
208 | 210 |
209 #if defined(OS_MACOSX) | 211 #if defined(OS_MACOSX) |
210 // Let all the browser views know that themes have changed in a platform way. | 212 // Let all the browser views know that themes have changed in a platform way. |
211 virtual void NotifyPlatformThemeChanged(); | 213 virtual void NotifyPlatformThemeChanged(); |
212 #endif // OS_MACOSX | 214 #endif // OS_MACOSX |
213 | 215 |
214 // Clears the platform-specific caches. Do not call directly; it's called | 216 // Clears the platform-specific caches. Do not call directly; it's called |
215 // from ClearCaches(). | 217 // from ClearCaches(). |
216 virtual void FreePlatformCaches(); | 218 virtual void FreePlatformCaches(); |
217 | 219 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
258 | 260 |
259 scoped_refptr<BrowserThemePack> theme_pack_; | 261 scoped_refptr<BrowserThemePack> theme_pack_; |
260 | 262 |
261 // The number of infobars currently displayed. | 263 // The number of infobars currently displayed. |
262 int number_of_infobars_; | 264 int number_of_infobars_; |
263 | 265 |
264 DISALLOW_COPY_AND_ASSIGN(BrowserThemeProvider); | 266 DISALLOW_COPY_AND_ASSIGN(BrowserThemeProvider); |
265 }; | 267 }; |
266 | 268 |
267 #endif // CHROME_BROWSER_BROWSER_THEME_PROVIDER_H_ | 269 #endif // CHROME_BROWSER_BROWSER_THEME_PROVIDER_H_ |
OLD | NEW |