| OLD | NEW | 
|---|
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_SCROLLBAR_H_ | 5 #ifndef VIEWS_CONTROLS_SCROLLBAR_NATIVE_SCROLLBAR_H_ | 
| 6 #define VIEWS_CONTROLS_SCROLLBAR_NATIVE_SCROLLBAR_H_ | 6 #define VIEWS_CONTROLS_SCROLLBAR_NATIVE_SCROLLBAR_H_ | 
| 7 | 7 | 
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" | 
| 9 | 9 | 
| 10 #include "views/controls/scrollbar/scroll_bar.h" | 10 #include "views/controls/scrollbar/scroll_bar.h" | 
| 11 | 11 | 
| 12 namespace views { | 12 namespace views { | 
| 13 | 13 | 
| 14 class HWNDView; | 14 class NativeViewHost; | 
| 15 class ScrollBarContainer; | 15 class ScrollBarContainer; | 
| 16 | 16 | 
| 17 ///////////////////////////////////////////////////////////////////////////// | 17 ///////////////////////////////////////////////////////////////////////////// | 
| 18 // | 18 // | 
| 19 // NativeScrollBar | 19 // NativeScrollBar | 
| 20 // | 20 // | 
| 21 // A View subclass that wraps a Native Windows scrollbar control. | 21 // A View subclass that wraps a Native Windows scrollbar control. | 
| 22 // | 22 // | 
| 23 // A scrollbar is either horizontal or vertical. | 23 // A scrollbar is either horizontal or vertical. | 
| 24 // | 24 // | 
| (...skipping 21 matching lines...) Expand all  Loading... | 
| 46   virtual int GetPosition() const; | 46   virtual int GetPosition() const; | 
| 47 | 47 | 
| 48   // Return the system sizes | 48   // Return the system sizes | 
| 49   static int GetHorizontalScrollBarHeight(); | 49   static int GetHorizontalScrollBarHeight(); | 
| 50   static int GetVerticalScrollBarWidth(); | 50   static int GetVerticalScrollBarWidth(); | 
| 51 | 51 | 
| 52  private: | 52  private: | 
| 53 #if defined(OS_WIN) | 53 #if defined(OS_WIN) | 
| 54   // The sb_view_ takes care of keeping sb_container in sync with the | 54   // The sb_view_ takes care of keeping sb_container in sync with the | 
| 55   // view hierarchy | 55   // view hierarchy | 
| 56   HWNDView* sb_view_; | 56   NativeViewHost* sb_view_; | 
| 57 #endif  // defined(OS_WIN) | 57 #endif  // defined(OS_WIN) | 
| 58 | 58 | 
| 59   // sb_container_ is a custom hwnd that we use to wrap the real | 59   // sb_container_ is a custom hwnd that we use to wrap the real | 
| 60   // windows scrollbar. We need to do this to get the scroll events | 60   // windows scrollbar. We need to do this to get the scroll events | 
| 61   // without having to do anything special in the high level hwnd. | 61   // without having to do anything special in the high level hwnd. | 
| 62   ScrollBarContainer* sb_container_; | 62   ScrollBarContainer* sb_container_; | 
| 63 }; | 63 }; | 
| 64 | 64 | 
| 65 }  // namespace views | 65 }  // namespace views | 
| 66 | 66 | 
| 67 #endif  // #ifndef VIEWS_CONTROLS_SCROLLBAR_NATIVE_SCROLLBAR_H_ | 67 #endif  // #ifndef VIEWS_CONTROLS_SCROLLBAR_NATIVE_SCROLLBAR_H_ | 
| OLD | NEW | 
|---|