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_BASE_H_ | 5 #ifndef UI_NATIVE_THEME_NATIVE_THEME_BASE_H_ |
6 #define UI_NATIVE_THEME_NATIVE_THEME_BASE_H_ | 6 #define UI_NATIVE_THEME_NATIVE_THEME_BASE_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 // NativeTheme implementation: | 26 // NativeTheme implementation: |
27 gfx::Size GetPartSize(Part part, | 27 gfx::Size GetPartSize(Part part, |
28 State state, | 28 State state, |
29 const ExtraParams& extra) const override; | 29 const ExtraParams& extra) const override; |
30 void Paint(SkCanvas* canvas, | 30 void Paint(SkCanvas* canvas, |
31 Part part, | 31 Part part, |
32 State state, | 32 State state, |
33 const gfx::Rect& rect, | 33 const gfx::Rect& rect, |
34 const ExtraParams& extra) const override; | 34 const ExtraParams& extra) const override; |
35 | 35 |
| 36 bool SupportsNinePatch(Part part) const override; |
| 37 gfx::Size GetNinePatchCanvasSize(Part part) const override; |
| 38 gfx::Rect GetNinePatchAperture(Part part) const override; |
| 39 |
36 protected: | 40 protected: |
37 NativeThemeBase(); | 41 NativeThemeBase(); |
38 ~NativeThemeBase() override; | 42 ~NativeThemeBase() override; |
39 | 43 |
40 // Draw the arrow. Used by scrollbar and inner spin button. | 44 // Draw the arrow. Used by scrollbar and inner spin button. |
41 virtual void PaintArrowButton( | 45 virtual void PaintArrowButton( |
42 SkCanvas* gc, | 46 SkCanvas* gc, |
43 const gfx::Rect& rect, | 47 const gfx::Rect& rect, |
44 Part direction, | 48 Part direction, |
45 State state) const; | 49 State state) const; |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 | 193 |
190 // The length of the arrow buttons, 0 means no buttons are drawn. | 194 // The length of the arrow buttons, 0 means no buttons are drawn. |
191 int scrollbar_button_length_; | 195 int scrollbar_button_length_; |
192 | 196 |
193 DISALLOW_COPY_AND_ASSIGN(NativeThemeBase); | 197 DISALLOW_COPY_AND_ASSIGN(NativeThemeBase); |
194 }; | 198 }; |
195 | 199 |
196 } // namespace ui | 200 } // namespace ui |
197 | 201 |
198 #endif // UI_NATIVE_THEME_NATIVE_THEME_BASE_H_ | 202 #endif // UI_NATIVE_THEME_NATIVE_THEME_BASE_H_ |
OLD | NEW |