| 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_VIEWS_CONTROLS_SLIDER_H_ | 5 #ifndef UI_VIEWS_CONTROLS_SLIDER_H_ |
| 6 #define UI_VIEWS_CONTROLS_SLIDER_H_ | 6 #define UI_VIEWS_CONTROLS_SLIDER_H_ |
| 7 | 7 |
| 8 #include "ui/base/animation/animation_delegate.h" | 8 #include "ui/base/animation/animation_delegate.h" |
| 9 #include "ui/views/view.h" | 9 #include "ui/views/view.h" |
| 10 #include "ui/views/views_export.h" | 10 #include "ui/views/views_export.h" |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 virtual gfx::Size GetPreferredSize() OVERRIDE; | 87 virtual gfx::Size GetPreferredSize() OVERRIDE; |
| 88 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | 88 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
| 89 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; | 89 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; |
| 90 virtual bool OnMouseDragged(const ui::MouseEvent& event) OVERRIDE; | 90 virtual bool OnMouseDragged(const ui::MouseEvent& event) OVERRIDE; |
| 91 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE; | 91 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE; |
| 92 virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE; | 92 virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE; |
| 93 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; | 93 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; |
| 94 virtual void OnPaintFocusBorder(gfx::Canvas* canvas) OVERRIDE; | 94 virtual void OnPaintFocusBorder(gfx::Canvas* canvas) OVERRIDE; |
| 95 | 95 |
| 96 // ui::EventHandler overrides: | 96 // ui::EventHandler overrides: |
| 97 virtual ui::EventResult OnGestureEvent(ui::GestureEvent* event) OVERRIDE; | 97 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE; |
| 98 | 98 |
| 99 // ui::AnimationDelegate overrides: | 99 // ui::AnimationDelegate overrides: |
| 100 virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE; | 100 virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE; |
| 101 | 101 |
| 102 SliderListener* listener_; | 102 SliderListener* listener_; |
| 103 Orientation orientation_; | 103 Orientation orientation_; |
| 104 | 104 |
| 105 scoped_ptr<ui::SlideAnimation> move_animation_; | 105 scoped_ptr<ui::SlideAnimation> move_animation_; |
| 106 | 106 |
| 107 float value_; | 107 float value_; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 121 const gfx::ImageSkia* thumb_; | 121 const gfx::ImageSkia* thumb_; |
| 122 const gfx::ImageSkia* images_[4]; | 122 const gfx::ImageSkia* images_[4]; |
| 123 int bar_height_; | 123 int bar_height_; |
| 124 | 124 |
| 125 DISALLOW_COPY_AND_ASSIGN(Slider); | 125 DISALLOW_COPY_AND_ASSIGN(Slider); |
| 126 }; | 126 }; |
| 127 | 127 |
| 128 } // namespace views | 128 } // namespace views |
| 129 | 129 |
| 130 #endif // UI_VIEWS_CONTROLS_SLIDER_H_ | 130 #endif // UI_VIEWS_CONTROLS_SLIDER_H_ |
| OLD | NEW |