Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(221)

Side by Side Diff: views/controls/scrollbar/native_scroll_bar.h

Issue 114059: Refactors HWNDView, NativeViewHostGtk and NativeViewHost so that they match t... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « views/controls/native_view_host_gtk.cc ('k') | views/controls/scrollbar/native_scroll_bar.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « views/controls/native_view_host_gtk.cc ('k') | views/controls/scrollbar/native_scroll_bar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698