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" |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 int y, | 152 int y, |
153 const SkPaint& paint) const; | 153 const SkPaint& paint) const; |
154 void DrawBox(SkCanvas* canvas, | 154 void DrawBox(SkCanvas* canvas, |
155 const gfx::Rect& rect, | 155 const gfx::Rect& rect, |
156 const SkPaint& paint) const; | 156 const SkPaint& paint) const; |
157 SkScalar Clamp(SkScalar value, | 157 SkScalar Clamp(SkScalar value, |
158 SkScalar min, | 158 SkScalar min, |
159 SkScalar max) const; | 159 SkScalar max) const; |
160 SkColor OutlineColor(SkScalar* hsv1, SkScalar* hsv2) const; | 160 SkColor OutlineColor(SkScalar* hsv1, SkScalar* hsv2) const; |
161 | 161 |
162 // Returns whether the new experimental vector-graphics based checkbox and | 162 // Returns whether the new vector-graphics based checkbox and radio button |
163 // radiobutton style is enabled. | 163 // style is enabled. |
164 bool IsNewCheckboxStyleEnabled(SkCanvas* canvas) const; | 164 bool IsNewCheckboxStyleEnabled(SkCanvas* canvas) const; |
165 | 165 |
166 // Paint the common parts of the new (experimental) checkboxes and radio | 166 // Paint the common parts of the new (experimental) checkboxes and radio |
167 // buttons. | 167 // buttons. |
168 // borderRadius specifies how rounded the corners should be. | 168 // borderRadius specifies how rounded the corners should be. |
169 SkRect PaintCheckboxRadioNewCommon( | 169 SkRect PaintCheckboxRadioNewCommon( |
170 SkCanvas* canvas, | 170 SkCanvas* canvas, |
171 State state, | 171 State state, |
172 const gfx::Rect& rect, | 172 const gfx::Rect& rect, |
173 const SkScalar borderRadius) const; | 173 const SkScalar borderRadius) const; |
(...skipping 16 matching lines...) Expand all 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 |