OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_AURAWIN_H_ | 5 #ifndef UI_NATIVE_THEME_NATIVE_THEME_AURAWIN_H_ |
6 #define UI_NATIVE_THEME_NATIVE_THEME_AURAWIN_H_ | 6 #define UI_NATIVE_THEME_NATIVE_THEME_AURAWIN_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "ui/native_theme/native_theme_aura.h" | 10 #include "ui/native_theme/native_theme_aura.h" |
11 | 11 |
12 namespace ui { | 12 namespace ui { |
13 | 13 |
14 // Aura implementation of native theme support. | 14 // Aura implementation of native theme support. |
15 class NATIVE_THEME_EXPORT NativeThemeAuraWin : public NativeThemeAura { | 15 class NATIVE_THEME_EXPORT NativeThemeAuraWin : public NativeThemeAura { |
16 public: | 16 public: |
17 static NativeThemeAuraWin* instance(); | 17 static NativeThemeAuraWin* instance(); |
18 | 18 |
19 private: | 19 private: |
20 NativeThemeAuraWin(); | 20 NativeThemeAuraWin(); |
21 virtual ~NativeThemeAuraWin(); | 21 virtual ~NativeThemeAuraWin(); |
22 | 22 |
23 // Overridden from NativeThemeBase: | 23 // Overridden from NativeThemeBase: |
24 virtual gfx::Size GetPartSize(Part part, | 24 virtual gfx::Size GetPartSize(Part part, |
25 State state, | 25 State state, |
26 const ExtraParams& extra) const OVERRIDE; | 26 const ExtraParams& extra) const override; |
27 virtual void Paint(SkCanvas* canvas, | 27 virtual void Paint(SkCanvas* canvas, |
28 Part part, | 28 Part part, |
29 State state, | 29 State state, |
30 const gfx::Rect& rect, | 30 const gfx::Rect& rect, |
31 const ExtraParams& extra) const OVERRIDE; | 31 const ExtraParams& extra) const override; |
32 DISALLOW_COPY_AND_ASSIGN(NativeThemeAuraWin); | 32 DISALLOW_COPY_AND_ASSIGN(NativeThemeAuraWin); |
33 }; | 33 }; |
34 | 34 |
35 } // namespace ui | 35 } // namespace ui |
36 | 36 |
37 #endif // UI_NATIVE_THEME_NATIVE_THEME_AURAWIN_H_ | 37 #endif // UI_NATIVE_THEME_NATIVE_THEME_AURAWIN_H_ |
OLD | NEW |