OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_SCROLLBAR_NATIVE_SCROLL_BAR_WRAPPER_H_ | 5 #ifndef UI_VIEWS_CONTROLS_SCROLLBAR_NATIVE_SCROLL_BAR_WRAPPER_H_ |
6 #define UI_VIEWS_CONTROLS_SCROLLBAR_NATIVE_SCROLL_BAR_WRAPPER_H_ | 6 #define UI_VIEWS_CONTROLS_SCROLLBAR_NATIVE_SCROLL_BAR_WRAPPER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "views/views_export.h" | 9 #include "ui/views/views_export.h" |
10 | 10 |
11 namespace views { | 11 namespace views { |
12 | 12 |
13 class NativeScrollBar; | 13 class NativeScrollBar; |
14 class View; | 14 class View; |
15 | 15 |
16 // A specialization of NativeControlWrapper that hosts a platform-native | 16 // A specialization of NativeControlWrapper that hosts a platform-native |
17 // scroll bar. | 17 // scroll bar. |
18 class VIEWS_EXPORT NativeScrollBarWrapper { | 18 class VIEWS_EXPORT NativeScrollBarWrapper { |
19 public: | 19 public: |
(...skipping 13 matching lines...) Expand all Loading... |
33 static NativeScrollBarWrapper* CreateWrapper(NativeScrollBar* button); | 33 static NativeScrollBarWrapper* CreateWrapper(NativeScrollBar* button); |
34 | 34 |
35 // Returns the system sizes of vertical/horizontal scroll bars. | 35 // Returns the system sizes of vertical/horizontal scroll bars. |
36 static int GetVerticalScrollBarWidth(); | 36 static int GetVerticalScrollBarWidth(); |
37 static int GetHorizontalScrollBarHeight(); | 37 static int GetHorizontalScrollBarHeight(); |
38 }; | 38 }; |
39 | 39 |
40 } // namespace views | 40 } // namespace views |
41 | 41 |
42 #endif // UI_VIEWS_CONTROLS_SCROLLBAR_NATIVE_SCROLL_BAR_WRAPPER_H_ | 42 #endif // UI_VIEWS_CONTROLS_SCROLLBAR_NATIVE_SCROLL_BAR_WRAPPER_H_ |
OLD | NEW |