Chromium Code Reviews| Index: ui/views/controls/slider.h |
| diff --git a/ui/views/controls/slider.h b/ui/views/controls/slider.h |
| index 4a69ef90af9d3b7a406600560945c56203e5087c..3844f51df48d386bc315978884b81e9513498c5f 100644 |
| --- a/ui/views/controls/slider.h |
| +++ b/ui/views/controls/slider.h |
| @@ -11,6 +11,10 @@ |
| typedef unsigned int SkColor; |
| +namespace gfx { |
| +class ImageSkia; |
| +} |
| + |
| namespace ui { |
| class SlideAnimation; |
| } |
| @@ -65,6 +69,9 @@ class VIEWS_EXPORT Slider : public View, |
| void set_focus_border_color(SkColor color) { focus_border_color_ = color; } |
| + // Update UI based on control on/off state. |
| + void UpdateState(bool control_on); |
| + |
| private: |
| void SetValueInternal(float value, SliderChangeReason reason); |
| @@ -99,6 +106,19 @@ class VIEWS_EXPORT Slider : public View, |
| bool accessibility_events_enabled_; |
| SkColor focus_border_color_; |
| + // The image chunks. |
| + enum BorderElements { |
|
sadrul
2012/07/26 18:10:40
Perhaps move the enum into the .cc file since it i
jennyz
2012/07/27 16:51:58
Done.
|
| + LEFT, |
| + CENTER_LEFT, |
| + CENTER_RIGHT, |
| + RIGHT, |
| + }; |
| + const int* bar_active_images_; |
| + const int* bar_disabled_images_; |
| + const gfx::ImageSkia* thumb_; |
| + const gfx::ImageSkia* images_[4]; |
| + int bar_height_; |
| + |
| DISALLOW_COPY_AND_ASSIGN(Slider); |
| }; |