OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 VIEWS_CONTROLS_SLIDER_NATIVE_SLIDER_WRAPPER_H_ | 5 #ifndef VIEWS_CONTROLS_SLIDER_NATIVE_SLIDER_WRAPPER_H_ |
6 #define VIEWS_CONTROLS_SLIDER_NATIVE_SLIDER_WRAPPER_H_ | 6 #define VIEWS_CONTROLS_SLIDER_NATIVE_SLIDER_WRAPPER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "gfx/native_widget_types.h" | 9 #include "ui/gfx/native_widget_types.h" |
10 | 10 |
11 namespace views { | 11 namespace views { |
12 | 12 |
13 class Slider; | 13 class Slider; |
14 class View; | 14 class View; |
15 | 15 |
16 // An interface implemented by an object that provides a platform-native slider. | 16 // An interface implemented by an object that provides a platform-native slider. |
17 class NativeSliderWrapper { | 17 class NativeSliderWrapper { |
18 public: | 18 public: |
19 // The Slider calls this when it is destroyed to clean up the wrapper object. | 19 // The Slider calls this when it is destroyed to clean up the wrapper object. |
(...skipping 20 matching lines...) Expand all Loading... |
40 // Returns a handle to the underlying native view for testing. | 40 // Returns a handle to the underlying native view for testing. |
41 virtual gfx::NativeView GetTestingHandle() const = 0; | 41 virtual gfx::NativeView GetTestingHandle() const = 0; |
42 | 42 |
43 // Creates an appropriate NativeSliderWrapper for the platform. | 43 // Creates an appropriate NativeSliderWrapper for the platform. |
44 static NativeSliderWrapper* CreateWrapper(Slider* slider); | 44 static NativeSliderWrapper* CreateWrapper(Slider* slider); |
45 }; | 45 }; |
46 | 46 |
47 } // namespace views | 47 } // namespace views |
48 | 48 |
49 #endif // VIEWS_CONTROLS_SLIDER_NATIVE_SLIDER_WRAPPER_H_ | 49 #endif // VIEWS_CONTROLS_SLIDER_NATIVE_SLIDER_WRAPPER_H_ |
OLD | NEW |