| 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 VIEWS_CONTROLS_SCROLLBAR_NATIVE_SCROLL_BAR_H_ | 5 #ifndef VIEWS_CONTROLS_SCROLLBAR_NATIVE_SCROLL_BAR_H_ |
| 6 #define VIEWS_CONTROLS_SCROLLBAR_NATIVE_SCROLL_BAR_H_ | 6 #define VIEWS_CONTROLS_SCROLLBAR_NATIVE_SCROLL_BAR_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "views/controls/scrollbar/scroll_bar.h" | 11 #include "views/controls/scrollbar/scroll_bar.h" |
| 12 #include "views/view.h" | 12 #include "views/view.h" |
| 13 | 13 |
| 14 namespace views { | 14 namespace views { |
| 15 | 15 |
| 16 class NativeScrollBarWrapper; | 16 class NativeScrollBarWrapper; |
| 17 | 17 |
| 18 // The NativeScrollBar class is a scrollbar that uses platform's | 18 // The NativeScrollBar class is a scrollbar that uses platform's |
| 19 // native control. | 19 // native control. |
| 20 class VIEWS_API NativeScrollBar : public ScrollBar { | 20 class VIEWS_EXPORT NativeScrollBar : public ScrollBar { |
| 21 public: | 21 public: |
| 22 // The scroll-bar's class name. | 22 // The scroll-bar's class name. |
| 23 static const char kViewClassName[]; | 23 static const char kViewClassName[]; |
| 24 | 24 |
| 25 // Create new scrollbar, either horizontal or vertical. | 25 // Create new scrollbar, either horizontal or vertical. |
| 26 explicit NativeScrollBar(bool is_horiz); | 26 explicit NativeScrollBar(bool is_horiz); |
| 27 virtual ~NativeScrollBar(); | 27 virtual ~NativeScrollBar(); |
| 28 | 28 |
| 29 // Return the system sizes. | 29 // Return the system sizes. |
| 30 static int GetHorizontalScrollBarHeight(); | 30 static int GetHorizontalScrollBarHeight(); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 49 // init border | 49 // init border |
| 50 NativeScrollBarWrapper* native_wrapper_; | 50 NativeScrollBarWrapper* native_wrapper_; |
| 51 | 51 |
| 52 DISALLOW_COPY_AND_ASSIGN(NativeScrollBar); | 52 DISALLOW_COPY_AND_ASSIGN(NativeScrollBar); |
| 53 }; | 53 }; |
| 54 | 54 |
| 55 } // namespace views | 55 } // namespace views |
| 56 | 56 |
| 57 #endif // VIEWS_CONTROLS_SCROLLBAR_NATIVE_SCROLL_BAR_H_ | 57 #endif // VIEWS_CONTROLS_SCROLLBAR_NATIVE_SCROLL_BAR_H_ |
| 58 | 58 |
| OLD | NEW |