| 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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 private: | 162 private: |
| 163 friend class NativeThemeAuraTest; | 163 friend class NativeThemeAuraTest; |
| 164 | 164 |
| 165 SkPath PathForArrow(const gfx::Rect& rect, Part direction) const; | 165 SkPath PathForArrow(const gfx::Rect& rect, Part direction) const; |
| 166 gfx::Rect BoundingRectForArrow(const gfx::Rect& rect) const; | 166 gfx::Rect BoundingRectForArrow(const gfx::Rect& rect) const; |
| 167 | 167 |
| 168 void DrawVertLine(cc::PaintCanvas* canvas, | 168 void DrawVertLine(cc::PaintCanvas* canvas, |
| 169 int x, | 169 int x, |
| 170 int y1, | 170 int y1, |
| 171 int y2, | 171 int y2, |
| 172 const cc::PaintFlags& paint) const; | 172 const cc::PaintFlags& flags) const; |
| 173 void DrawHorizLine(cc::PaintCanvas* canvas, | 173 void DrawHorizLine(cc::PaintCanvas* canvas, |
| 174 int x1, | 174 int x1, |
| 175 int x2, | 175 int x2, |
| 176 int y, | 176 int y, |
| 177 const cc::PaintFlags& paint) const; | 177 const cc::PaintFlags& flags) const; |
| 178 void DrawBox(cc::PaintCanvas* canvas, | 178 void DrawBox(cc::PaintCanvas* canvas, |
| 179 const gfx::Rect& rect, | 179 const gfx::Rect& rect, |
| 180 const cc::PaintFlags& paint) const; | 180 const cc::PaintFlags& flags) const; |
| 181 SkScalar Clamp(SkScalar value, | 181 SkScalar Clamp(SkScalar value, |
| 182 SkScalar min, | 182 SkScalar min, |
| 183 SkScalar max) const; | 183 SkScalar max) const; |
| 184 SkColor OutlineColor(SkScalar* hsv1, SkScalar* hsv2) const; | 184 SkColor OutlineColor(SkScalar* hsv1, SkScalar* hsv2) const; |
| 185 | 185 |
| 186 // Paint the common parts of the checkboxes and radio buttons. | 186 // Paint the common parts of the checkboxes and radio buttons. |
| 187 // borderRadius specifies how rounded the corners should be. | 187 // borderRadius specifies how rounded the corners should be. |
| 188 SkRect PaintCheckboxRadioCommon(cc::PaintCanvas* canvas, | 188 SkRect PaintCheckboxRadioCommon(cc::PaintCanvas* canvas, |
| 189 State state, | 189 State state, |
| 190 const gfx::Rect& rect, | 190 const gfx::Rect& rect, |
| 191 const SkScalar borderRadius) const; | 191 const SkScalar borderRadius) const; |
| 192 | 192 |
| 193 // The length of the arrow buttons, 0 means no buttons are drawn. | 193 // The length of the arrow buttons, 0 means no buttons are drawn. |
| 194 int scrollbar_button_length_; | 194 int scrollbar_button_length_; |
| 195 | 195 |
| 196 DISALLOW_COPY_AND_ASSIGN(NativeThemeBase); | 196 DISALLOW_COPY_AND_ASSIGN(NativeThemeBase); |
| 197 }; | 197 }; |
| 198 | 198 |
| 199 } // namespace ui | 199 } // namespace ui |
| 200 | 200 |
| 201 #endif // UI_NATIVE_THEME_NATIVE_THEME_BASE_H_ | 201 #endif // UI_NATIVE_THEME_NATIVE_THEME_BASE_H_ |
| OLD | NEW |