OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_AURAX11_H_ | 5 #ifndef CHROME_BROWSER_THEMES_THEME_SERVICE_AURAX11_H_ |
6 #define CHROME_BROWSER_THEMES_THEME_SERVICE_AURAX11_H_ | 6 #define CHROME_BROWSER_THEMES_THEME_SERVICE_AURAX11_H_ |
7 | 7 |
8 #include "chrome/browser/themes/theme_service.h" | 8 #include "chrome/browser/themes/theme_service.h" |
9 #include "ui/views/linux_ui/native_theme_change_observer.h" | |
10 | 9 |
11 // A subclass of ThemeService that manages the CustomThemeSupplier which | 10 // A subclass of ThemeService that manages the CustomThemeSupplier which |
12 // provides the native X11 theme. | 11 // provides the native X11 theme. |
13 class ThemeServiceAuraX11 : public ThemeService, | 12 class ThemeServiceAuraX11 : public ThemeService { |
14 public views::NativeThemeChangeObserver { | |
15 public: | 13 public: |
16 ThemeServiceAuraX11(); | 14 ThemeServiceAuraX11(); |
17 virtual ~ThemeServiceAuraX11(); | 15 virtual ~ThemeServiceAuraX11(); |
18 | 16 |
19 // Overridden from ThemeService: | 17 // Overridden from ThemeService: |
20 virtual bool ShouldInitWithNativeTheme() const OVERRIDE; | 18 virtual bool ShouldInitWithNativeTheme() const OVERRIDE; |
21 virtual void SetNativeTheme() OVERRIDE; | 19 virtual void SetNativeTheme() OVERRIDE; |
22 virtual bool UsingDefaultTheme() const OVERRIDE; | 20 virtual bool UsingDefaultTheme() const OVERRIDE; |
23 virtual bool UsingNativeTheme() const OVERRIDE; | 21 virtual bool UsingNativeTheme() const OVERRIDE; |
24 | 22 |
25 // Overridden from views::NativeThemeChangeObserver: | |
26 virtual void OnNativeThemeChanged() OVERRIDE; | |
27 | |
28 private: | 23 private: |
29 DISALLOW_COPY_AND_ASSIGN(ThemeServiceAuraX11); | 24 DISALLOW_COPY_AND_ASSIGN(ThemeServiceAuraX11); |
30 }; | 25 }; |
31 | 26 |
32 #endif // CHROME_BROWSER_THEMES_THEME_SERVICE_AURAX11_H_ | 27 #endif // CHROME_BROWSER_THEMES_THEME_SERVICE_AURAX11_H_ |
OLD | NEW |