OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_THEMES_THEME_SERVICE_AURAX11_H_ |
| 6 #define CHROME_BROWSER_THEMES_THEME_SERVICE_AURAX11_H_ |
| 7 |
| 8 #include "base/prefs/pref_change_registrar.h" |
| 9 #include "chrome/browser/themes/theme_service.h" |
| 10 |
| 11 // A subclass of ThemeService that queries the current ui::LinuxUI instance for |
| 12 // theme data. |
| 13 class ThemeServiceAuraX11 : public ThemeService { |
| 14 public: |
| 15 ThemeServiceAuraX11(); |
| 16 virtual ~ThemeServiceAuraX11(); |
| 17 |
| 18 // Overridden from ui::ThemeProvider: |
| 19 virtual SkColor GetColor(int id) const OVERRIDE; |
| 20 virtual bool HasCustomImage(int id) const OVERRIDE; |
| 21 |
| 22 // Overridden from ThemeService: |
| 23 virtual void Init(Profile* profile) OVERRIDE; |
| 24 virtual gfx::Image GetImageNamed(int id) const OVERRIDE; |
| 25 virtual void SetTheme(const extensions::Extension* extension) OVERRIDE; |
| 26 virtual void UseDefaultTheme() OVERRIDE; |
| 27 virtual void SetNativeTheme() OVERRIDE; |
| 28 virtual bool UsingDefaultTheme() const OVERRIDE; |
| 29 virtual bool UsingNativeTheme() const OVERRIDE; |
| 30 |
| 31 private: |
| 32 void OnUsesSystemThemeChanged(); |
| 33 |
| 34 // Whether we'll give the ui::LinuxUI object first shot at providing theme |
| 35 // resources. |
| 36 bool use_system_theme_; |
| 37 |
| 38 PrefChangeRegistrar registrar_; |
| 39 |
| 40 DISALLOW_COPY_AND_ASSIGN(ThemeServiceAuraX11); |
| 41 }; |
| 42 |
| 43 #endif // CHROME_BROWSER_THEMES_THEME_SERVICE_AURAX11_H_ |
OLD | NEW |