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_BASE_NATIVE_THEME_NATIVE_THEME_BASE_H_ | 5 #ifndef UI_BASE_NATIVE_THEME_NATIVE_THEME_BASE_H_ |
6 #define UI_BASE_NATIVE_THEME_NATIVE_THEME_BASE_H_ | 6 #define UI_BASE_NATIVE_THEME_NATIVE_THEME_BASE_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 "skia/ext/platform_canvas.h" | 10 #include "skia/ext/platform_canvas.h" |
11 #include "ui/base/native_theme/native_theme.h" | 11 #include "ui/base/native_theme/native_theme.h" |
12 | 12 |
13 namespace gfx { | 13 namespace gfx { |
14 class ImageSkia; | 14 class ImageSkia; |
15 class Rect; | 15 class Rect; |
16 class Size; | 16 class Size; |
17 } | 17 } |
18 | 18 |
19 namespace ui { | 19 namespace ui { |
20 | 20 |
21 // Theme support for non-Windows toolkits. | 21 // Theme support for non-Windows toolkits. |
22 class NativeThemeBase : public NativeTheme { | 22 class UI_EXPORT NativeThemeBase : public NativeTheme { |
23 public: | 23 public: |
24 // NativeTheme implementation: | 24 // NativeTheme implementation: |
25 virtual gfx::Size GetPartSize(Part part, | 25 virtual gfx::Size GetPartSize(Part part, |
26 State state, | 26 State state, |
27 const ExtraParams& extra) const OVERRIDE; | 27 const ExtraParams& extra) const OVERRIDE; |
28 virtual void Paint(SkCanvas* canvas, | 28 virtual void Paint(SkCanvas* canvas, |
29 Part part, | 29 Part part, |
30 State state, | 30 State state, |
31 const gfx::Rect& rect, | 31 const gfx::Rect& rect, |
32 const ExtraParams& extra) const OVERRIDE; | 32 const ExtraParams& extra) const OVERRIDE; |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 | 190 |
191 unsigned int scrollbar_width_; | 191 unsigned int scrollbar_width_; |
192 unsigned int scrollbar_button_length_; | 192 unsigned int scrollbar_button_length_; |
193 | 193 |
194 DISALLOW_COPY_AND_ASSIGN(NativeThemeBase); | 194 DISALLOW_COPY_AND_ASSIGN(NativeThemeBase); |
195 }; | 195 }; |
196 | 196 |
197 } // namespace ui | 197 } // namespace ui |
198 | 198 |
199 #endif // UI_BASE_NATIVE_THEME_NATIVE_THEME_BASE_H_ | 199 #endif // UI_BASE_NATIVE_THEME_NATIVE_THEME_BASE_H_ |
OLD | NEW |