OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this |
2 // source code is governed by a BSD-style license that can be found in the | 2 // source code is governed by a BSD-style license that can be found in the |
3 // LICENSE file. | 3 // 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 | 7 |
8 #include "base/gfx/native_widget_types.h" | 8 #include "app/gfx/native_widget_types.h" |
9 | 9 |
10 namespace views { | 10 namespace views { |
11 | 11 |
12 class Slider; | 12 class Slider; |
13 class View; | 13 class View; |
14 | 14 |
15 // An interface implemented by an object that provides a platform-native slider. | 15 // An interface implemented by an object that provides a platform-native slider. |
16 class NativeSliderWrapper { | 16 class NativeSliderWrapper { |
17 public: | 17 public: |
18 // The Slider calls this when it is destroyed to clean up the wrapper object. | 18 // The Slider calls this when it is destroyed to clean up the wrapper object. |
(...skipping 20 matching lines...) Expand all Loading... |
39 // Returns a handle to the underlying native view for testing. | 39 // Returns a handle to the underlying native view for testing. |
40 virtual gfx::NativeView GetTestingHandle() const = 0; | 40 virtual gfx::NativeView GetTestingHandle() const = 0; |
41 | 41 |
42 // Creates an appropriate NativeSliderWrapper for the platform. | 42 // Creates an appropriate NativeSliderWrapper for the platform. |
43 static NativeSliderWrapper* CreateWrapper(Slider* slider); | 43 static NativeSliderWrapper* CreateWrapper(Slider* slider); |
44 }; | 44 }; |
45 | 45 |
46 } // namespace views | 46 } // namespace views |
47 | 47 |
48 #endif // VIEWS_CONTROLS_SLIDER_NATIVE_SLIDER_WRAPPER_H_ | 48 #endif // VIEWS_CONTROLS_SLIDER_NATIVE_SLIDER_WRAPPER_H_ |
OLD | NEW |