| OLD | NEW |
| 1 // Copyright (c) 2009 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_GTK_H_ | 5 #ifndef VIEWS_CONTROLS_SCROLLBAR_NATIVE_SCROLL_BAR_GTK_H_ |
| 6 #define VIEWS_CONTROLS_SCROLLBAR_NATIVE_SCROLL_BAR_GTK_H_ | 6 #define VIEWS_CONTROLS_SCROLLBAR_NATIVE_SCROLL_BAR_GTK_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "views/controls/native_control_gtk.h" | 9 #include "views/controls/native_control_gtk.h" |
| 10 #include "views/controls/scrollbar/native_scroll_bar_wrapper.h" | 10 #include "views/controls/scrollbar/native_scroll_bar_wrapper.h" |
| 11 | 11 |
| 12 namespace views { | 12 namespace views { |
| 13 | 13 |
| 14 class ScrollBarContainer; | |
| 15 | |
| 16 ///////////////////////////////////////////////////////////////////////////// | 14 ///////////////////////////////////////////////////////////////////////////// |
| 17 // | 15 // |
| 18 // NativeScrollBarGtk | 16 // NativeScrollBarGtk |
| 19 // | 17 // |
| 20 // A View subclass that wraps a Native gtk scrollbar control. | 18 // A View subclass that wraps a Native gtk scrollbar control. |
| 21 // | 19 // |
| 22 // A scrollbar is either horizontal or vertical. | 20 // A scrollbar is either horizontal or vertical. |
| 23 // | 21 // |
| 24 ///////////////////////////////////////////////////////////////////////////// | 22 ///////////////////////////////////////////////////////////////////////////// |
| 25 class NativeScrollBarGtk : public NativeControlGtk, | 23 class NativeScrollBarGtk : public NativeControlGtk, |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 | 67 |
| 70 // The NativeScrollBar we are bound to. | 68 // The NativeScrollBar we are bound to. |
| 71 NativeScrollBar* native_scroll_bar_; | 69 NativeScrollBar* native_scroll_bar_; |
| 72 | 70 |
| 73 private: | 71 private: |
| 74 DISALLOW_COPY_AND_ASSIGN(NativeScrollBarGtk); | 72 DISALLOW_COPY_AND_ASSIGN(NativeScrollBarGtk); |
| 75 }; | 73 }; |
| 76 | 74 |
| 77 } // namespace views | 75 } // namespace views |
| 78 | 76 |
| 79 #endif // #ifndef VIEWS_CONTROLS_SCROLLBAR_NATIVE_SCROLL_BAR_GTK_H_ | 77 #endif // VIEWS_CONTROLS_SCROLLBAR_NATIVE_SCROLL_BAR_GTK_H_ |
| 80 | |
| OLD | NEW |