OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 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 | 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_MAC_H_ | 5 #ifndef UI_NATIVE_THEME_NATIVE_THEME_MAC_H_ |
6 #define UI_NATIVE_THEME_NATIVE_THEME_MAC_H_ | 6 #define UI_NATIVE_THEME_NATIVE_THEME_MAC_H_ |
7 | 7 |
8 #include "ui/native_theme/native_theme_base.h" | 8 #include "ui/native_theme/native_theme_base.h" |
9 #include "ui/native_theme/native_theme_export.h" | 9 #include "ui/native_theme/native_theme_export.h" |
10 | 10 |
11 namespace ui { | 11 namespace ui { |
12 | 12 |
13 // Mac implementation of native theme support. | 13 // Mac implementation of native theme support. |
14 class NativeThemeMac : public NativeThemeBase { | 14 class NATIVE_THEME_EXPORT NativeThemeMac : public NativeThemeBase { |
15 public: | 15 public: |
16 static NativeThemeMac* instance(); | 16 static NativeThemeMac* instance(); |
17 | 17 |
18 // Overridden from NativeTheme: | 18 // Overridden from NativeTheme: |
19 SkColor GetSystemColor(ColorId color_id) const override; | 19 SkColor GetSystemColor(ColorId color_id) const override; |
20 | 20 |
21 // Overridden from NativeThemeBase: | 21 // Overridden from NativeThemeBase: |
22 void PaintScrollbarTrack(SkCanvas* canvas, | 22 void PaintScrollbarTrack(SkCanvas* canvas, |
23 Part part, | 23 Part part, |
24 State state, | 24 State state, |
(...skipping 19 matching lines...) Expand all Loading... |
44 private: | 44 private: |
45 NativeThemeMac(); | 45 NativeThemeMac(); |
46 ~NativeThemeMac() override; | 46 ~NativeThemeMac() override; |
47 | 47 |
48 DISALLOW_COPY_AND_ASSIGN(NativeThemeMac); | 48 DISALLOW_COPY_AND_ASSIGN(NativeThemeMac); |
49 }; | 49 }; |
50 | 50 |
51 } // namespace ui | 51 } // namespace ui |
52 | 52 |
53 #endif // UI_NATIVE_THEME_NATIVE_THEME_MAC_H_ | 53 #endif // UI_NATIVE_THEME_NATIVE_THEME_MAC_H_ |
OLD | NEW |