| 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(cc::PaintCanvas* canvas, | 30 void Paint(cc::PaintCanvas* 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(cc::PaintCanvas* gc, | 45 virtual void PaintArrowButton(cc::PaintCanvas* gc, |
| 42 const gfx::Rect& rect, | 46 const gfx::Rect& rect, |
| 43 Part direction, | 47 Part direction, |
| 44 State state) const; | 48 State state) const; |
| 45 // Paint the scrollbar track. Done before the thumb so that it can contain | 49 // Paint the scrollbar track. Done before the thumb so that it can contain |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 | 196 |
| 193 // The length of the arrow buttons, 0 means no buttons are drawn. | 197 // The length of the arrow buttons, 0 means no buttons are drawn. |
| 194 int scrollbar_button_length_; | 198 int scrollbar_button_length_; |
| 195 | 199 |
| 196 DISALLOW_COPY_AND_ASSIGN(NativeThemeBase); | 200 DISALLOW_COPY_AND_ASSIGN(NativeThemeBase); |
| 197 }; | 201 }; |
| 198 | 202 |
| 199 } // namespace ui | 203 } // namespace ui |
| 200 | 204 |
| 201 #endif // UI_NATIVE_THEME_NATIVE_THEME_BASE_H_ | 205 #endif // UI_NATIVE_THEME_NATIVE_THEME_BASE_H_ |
| OLD | NEW |