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 UI_NATIVE_THEME_NATIVE_THEME_ANDROID_H_ | 5 #ifndef UI_NATIVE_THEME_NATIVE_THEME_ANDROID_H_ |
6 #define UI_NATIVE_THEME_NATIVE_THEME_ANDROID_H_ | 6 #define UI_NATIVE_THEME_NATIVE_THEME_ANDROID_H_ |
7 | 7 |
| 8 #include "base/macros.h" |
8 #include "ui/native_theme/native_theme_base.h" | 9 #include "ui/native_theme/native_theme_base.h" |
9 | 10 |
10 namespace ui { | 11 namespace ui { |
11 | 12 |
12 // Android implementation of native theme support. | 13 // Android implementation of native theme support. |
13 class NativeThemeAndroid : public NativeThemeBase { | 14 class NativeThemeAndroid : public NativeThemeBase { |
14 public: | 15 public: |
15 static NativeThemeAndroid* instance(); | 16 static NativeThemeAndroid* instance(); |
16 | 17 |
17 // NativeThemeBase: | 18 // NativeThemeBase: |
18 gfx::Size GetPartSize(Part part, | 19 gfx::Size GetPartSize(Part part, |
19 State state, | 20 State state, |
20 const ExtraParams& extra) const override; | 21 const ExtraParams& extra) const override; |
21 SkColor GetSystemColor(ColorId color_id) const override; | 22 SkColor GetSystemColor(ColorId color_id) const override; |
22 | 23 |
23 protected: | 24 protected: |
24 // NativeThemeBase: | 25 // NativeThemeBase: |
25 void AdjustCheckboxRadioRectForPadding(SkRect* rect) const override; | 26 void AdjustCheckboxRadioRectForPadding(SkRect* rect) const override; |
26 | 27 |
27 private: | 28 private: |
28 NativeThemeAndroid(); | 29 NativeThemeAndroid(); |
29 ~NativeThemeAndroid() override; | 30 ~NativeThemeAndroid() override; |
30 | 31 |
31 DISALLOW_COPY_AND_ASSIGN(NativeThemeAndroid); | 32 DISALLOW_COPY_AND_ASSIGN(NativeThemeAndroid); |
32 }; | 33 }; |
33 | 34 |
34 } // namespace ui | 35 } // namespace ui |
35 | 36 |
36 #endif // UI_NATIVE_THEME_NATIVE_THEME_ANDROID_H_ | 37 #endif // UI_NATIVE_THEME_NATIVE_THEME_ANDROID_H_ |
OLD | NEW |