| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_GFX_NATIVE_THEME_ANDROID_H_ | 5 #ifndef UI_GFX_NATIVE_THEME_ANDROID_H_ |
| 6 #define UI_GFX_NATIVE_THEME_ANDROID_H_ | 6 #define UI_GFX_NATIVE_THEME_ANDROID_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "skia/ext/platform_canvas.h" | 9 #include "skia/ext/platform_canvas.h" |
| 10 | 10 |
| 11 namespace gfx { | 11 namespace gfx { |
| 12 class Rect; | 12 class Rect; |
| 13 class Size; | 13 class Size; |
| 14 | 14 |
| 15 // Android theming API. | 15 // Android theming API. |
| 16 class NativeThemeAndroid { | 16 class NativeThemeAndroid { |
| 17 public: | 17 public: |
| 18 // The part to be painted / sized. | 18 // The part to be painted / sized. |
| 19 enum Part { | 19 enum Part { |
| 20 SCROLLBAR_DOWN_ARROW, | 20 SCROLLBAR_DOWN_ARROW, |
| 21 SCROLLBAR_LEFT_ARROW, | 21 SCROLLBAR_LEFT_ARROW, |
| 22 SCROLLBAR_RIGHT_ARROW, | 22 SCROLLBAR_RIGHT_ARROW, |
| 23 SCROLLBAR_UP_ARROW, | 23 SCROLLBAR_UP_ARROW, |
| 24 CHECKBOX, | 24 CHECKBOX, |
| 25 RADIO, | 25 RADIO, |
| 26 PUSH_BUTTON, | 26 PUSH_BUTTON, |
| 27 TEXTFIELD, | 27 TEXTFIELD, |
| 28 MENU_LIST, | 28 MENU_LIST, |
| 29 SLIDER_TRACK, | 29 SLIDER_TRACK, |
| 30 SLIDER_TNUMB, | 30 SLIDER_THUMB, |
| 31 INNER_SPIN_BUTTON, | 31 INNER_SPIN_BUTTON, |
| 32 PROGRESS_BAR, | 32 PROGRESS_BAR, |
| 33 }; | 33 }; |
| 34 | 34 |
| 35 // The state of the part. | 35 // The state of the part. |
| 36 enum State { | 36 enum State { |
| 37 DISABLED, | 37 DISABLED, |
| 38 HOVERED, | 38 HOVERED, |
| 39 NORMAL, | 39 NORMAL, |
| 40 PRESSED, | 40 PRESSED, |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 // Used to return the color of scrollbar based on the color of thumb and | 231 // Used to return the color of scrollbar based on the color of thumb and |
| 232 // track. | 232 // track. |
| 233 SkColor OutlineColor(SkScalar* hsv1, SkScalar* hsv2) const; | 233 SkColor OutlineColor(SkScalar* hsv1, SkScalar* hsv2) const; |
| 234 | 234 |
| 235 DISALLOW_COPY_AND_ASSIGN(NativeThemeAndroid); | 235 DISALLOW_COPY_AND_ASSIGN(NativeThemeAndroid); |
| 236 }; | 236 }; |
| 237 | 237 |
| 238 } // namespace gfx | 238 } // namespace gfx |
| 239 | 239 |
| 240 #endif // UI_GFX_NATIVE_THEME_ANDROID_H_ | 240 #endif // UI_GFX_NATIVE_THEME_ANDROID_H_ |
| OLD | NEW |