| 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 "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "ui/gfx/animation/animation_delegate.h" | 9 #include "ui/gfx/animation/animation_delegate.h" |
| 10 #include "ui/views/view.h" | 10 #include "ui/views/view.h" |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 // Notify the listener_, if not NULL, that dragging ended. | 112 // Notify the listener_, if not NULL, that dragging ended. |
| 113 void OnSliderDragEnded(); | 113 void OnSliderDragEnded(); |
| 114 | 114 |
| 115 // views::View: | 115 // views::View: |
| 116 const char* GetClassName() const override; | 116 const char* GetClassName() const override; |
| 117 gfx::Size GetPreferredSize() const override; | 117 gfx::Size GetPreferredSize() const override; |
| 118 bool OnMousePressed(const ui::MouseEvent& event) override; | 118 bool OnMousePressed(const ui::MouseEvent& event) override; |
| 119 bool OnMouseDragged(const ui::MouseEvent& event) override; | 119 bool OnMouseDragged(const ui::MouseEvent& event) override; |
| 120 void OnMouseReleased(const ui::MouseEvent& event) override; | 120 void OnMouseReleased(const ui::MouseEvent& event) override; |
| 121 bool OnKeyPressed(const ui::KeyEvent& event) override; | 121 bool OnKeyPressed(const ui::KeyEvent& event) override; |
| 122 void GetAccessibleState(ui::AXViewState* state) override; | 122 void GetAccessibleNodeData(ui::AXNodeData* node_data) override; |
| 123 void OnFocus() override; | 123 void OnFocus() override; |
| 124 void OnBlur() override; | 124 void OnBlur() override; |
| 125 | 125 |
| 126 // ui::EventHandler: | 126 // ui::EventHandler: |
| 127 void OnGestureEvent(ui::GestureEvent* event) override; | 127 void OnGestureEvent(ui::GestureEvent* event) override; |
| 128 | 128 |
| 129 void set_listener(SliderListener* listener) { | 129 void set_listener(SliderListener* listener) { |
| 130 listener_ = listener; | 130 listener_ = listener; |
| 131 } | 131 } |
| 132 | 132 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 145 // Relative position of the mouse cursor (or the touch point) on the slider's | 145 // Relative position of the mouse cursor (or the touch point) on the slider's |
| 146 // button. | 146 // button. |
| 147 int initial_button_offset_; | 147 int initial_button_offset_; |
| 148 | 148 |
| 149 DISALLOW_COPY_AND_ASSIGN(Slider); | 149 DISALLOW_COPY_AND_ASSIGN(Slider); |
| 150 }; | 150 }; |
| 151 | 151 |
| 152 } // namespace views | 152 } // namespace views |
| 153 | 153 |
| 154 #endif // UI_VIEWS_CONTROLS_SLIDER_H_ | 154 #endif // UI_VIEWS_CONTROLS_SLIDER_H_ |
| OLD | NEW |