| 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 #include "ui/views/test/test_slider.h" | |
| 6 | |
| 7 #include "ui/views/controls/slider.h" | |
| 8 | |
| 9 namespace views { | |
| 10 | |
| 11 // Arbitrary thumb size used for tests. | |
| 12 const int thumb_size_ = 10; | |
| 13 | |
| 14 TestSlider::TestSlider(SliderListener* listener) : Slider(listener) {} | |
| 15 | |
| 16 TestSlider::~TestSlider() {} | |
| 17 | |
| 18 void TestSlider::UpdateState(bool control_on) { | |
| 19 } | |
| 20 | |
| 21 const char* TestSlider::GetClassName() const { | |
| 22 return "TestSlider"; | |
| 23 } | |
| 24 | |
| 25 int TestSlider::GetThumbWidth() { | |
| 26 return thumb_size_; | |
| 27 } | |
| 28 | |
| 29 } // namespace views | |
| OLD | NEW |