OLD | NEW |
| (Empty) |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef UI_VIEWS_TEST_TEST_SLIDER_H_ | |
6 #define UI_VIEWS_TEST_TEST_SLIDER_H_ | |
7 | |
8 #include "base/macros.h" | |
9 #include "ui/views/controls/slider.h" | |
10 #include "ui/views/view.h" | |
11 #include "ui/views/views_export.h" | |
12 | |
13 namespace views { | |
14 class Slider; | |
15 | |
16 // It is a dummy implementation of slider used for testing functionalities in | |
17 // slider. | |
18 class TestSlider : public Slider { | |
19 public: | |
20 explicit TestSlider(SliderListener* listener); | |
21 ~TestSlider() override; | |
22 | |
23 // ui::Slider: | |
24 void UpdateState(bool control_on) override; | |
25 | |
26 // views::View: | |
27 const char* GetClassName() const override; | |
28 | |
29 protected: | |
30 // ui::Slider: | |
31 int GetThumbWidth() override; | |
32 | |
33 private: | |
34 DISALLOW_COPY_AND_ASSIGN(TestSlider); | |
35 }; | |
36 | |
37 } // namespace views | |
38 | |
39 #endif // UI_VIEWS_TEST_TEST_SLIDER_H_ | |
OLD | NEW |