Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(101)

Side by Side Diff: ui/views/controls/slider.h

Issue 2477463003: Replace ui::AXViewState with AXNodeData and AXActionData (Closed)
Patch Set: Fix test Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/views/controls/separator.cc ('k') | ui/views/controls/slider.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « ui/views/controls/separator.cc ('k') | ui/views/controls/slider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698