| 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 base::RefCountedMemory* GetRawData(int id, ui::ScaleFactor scale_factor) | 85 base::RefCountedMemory* GetRawData(int id, ui::ScaleFactor scale_factor) |
| 86 const override; | 86 const override; |
| 87 #if defined(OS_MACOSX) | 87 #if defined(OS_MACOSX) |
| 88 NSImage* GetNSImageNamed(int id) const override; | 88 NSImage* GetNSImageNamed(int id) const override; |
| 89 NSColor* GetNSImageColorNamed(int id) const override; | 89 NSColor* GetNSImageColorNamed(int id) const override; |
| 90 NSColor* GetNSColor(int id) const override; | 90 NSColor* GetNSColor(int id) const override; |
| 91 NSColor* GetNSColorTint(int id) const override; | 91 NSColor* GetNSColorTint(int id) const override; |
| 92 NSGradient* GetNSGradient(int id) const override; | 92 NSGradient* GetNSGradient(int id) const override; |
| 93 #endif | 93 #endif |
| 94 | 94 |
| 95 // KeyedService: |
| 96 void Shutdown() override; |
| 97 |
| 95 // Overridden from content::NotificationObserver: | 98 // Overridden from content::NotificationObserver: |
| 96 void Observe(int type, | 99 void Observe(int type, |
| 97 const content::NotificationSource& source, | 100 const content::NotificationSource& source, |
| 98 const content::NotificationDetails& details) override; | 101 const content::NotificationDetails& details) override; |
| 99 | 102 |
| 100 // Set the current theme to the theme defined in |extension|. | 103 // Set the current theme to the theme defined in |extension|. |
| 101 // |extension| must already be added to this profile's | 104 // |extension| must already be added to this profile's |
| 102 // ExtensionService. | 105 // ExtensionService. |
| 103 virtual void SetTheme(const extensions::Extension* extension); | 106 virtual void SetTheme(const extensions::Extension* extension); |
| 104 | 107 |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 // recently installed theme extensions | 244 // recently installed theme extensions |
| 242 std::string installed_pending_load_id_; | 245 std::string installed_pending_load_id_; |
| 243 | 246 |
| 244 // The number of infobars currently displayed. | 247 // The number of infobars currently displayed. |
| 245 int number_of_infobars_; | 248 int number_of_infobars_; |
| 246 | 249 |
| 247 content::NotificationRegistrar registrar_; | 250 content::NotificationRegistrar registrar_; |
| 248 | 251 |
| 249 scoped_ptr<ThemeSyncableService> theme_syncable_service_; | 252 scoped_ptr<ThemeSyncableService> theme_syncable_service_; |
| 250 | 253 |
| 254 #if defined(ENABLE_EXTENSIONS) |
| 255 class ThemeObserver; |
| 256 scoped_ptr<ThemeObserver> theme_observer_; |
| 257 #endif |
| 258 |
| 251 base::WeakPtrFactory<ThemeService> weak_ptr_factory_; | 259 base::WeakPtrFactory<ThemeService> weak_ptr_factory_; |
| 252 | 260 |
| 253 DISALLOW_COPY_AND_ASSIGN(ThemeService); | 261 DISALLOW_COPY_AND_ASSIGN(ThemeService); |
| 254 }; | 262 }; |
| 255 | 263 |
| 256 #endif // CHROME_BROWSER_THEMES_THEME_SERVICE_H_ | 264 #endif // CHROME_BROWSER_THEMES_THEME_SERVICE_H_ |
| OLD | NEW |