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

Side by Side Diff: chrome/views/native_scroll_bar.h

Issue 18757: Porting in chrome/views/ (Closed)
Patch Set: sync with trunk Created 11 years, 10 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
« no previous file with comments | « chrome/views/label.cc ('k') | chrome/views/scroll_view.h » ('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 CHROME_VIEWS_NATIVE_SCROLLBAR_H__ 5 #ifndef CHROME_VIEWS_NATIVE_SCROLLBAR_H__
6 #define CHROME_VIEWS_NATIVE_SCROLLBAR_H__ 6 #define CHROME_VIEWS_NATIVE_SCROLLBAR_H__
7 7
8 #include "build/build_config.h"
9
8 #include "chrome/views/scroll_bar.h" 10 #include "chrome/views/scroll_bar.h"
9 11
10 namespace views { 12 namespace views {
11 13
12 class HWNDView; 14 class HWNDView;
13 class ScrollBarContainer; 15 class ScrollBarContainer;
14 16
15 ///////////////////////////////////////////////////////////////////////////// 17 /////////////////////////////////////////////////////////////////////////////
16 // 18 //
17 // NativeScrollBar 19 // NativeScrollBar
(...skipping 23 matching lines...) Expand all
41 // Overridden from ScrollBar 43 // Overridden from ScrollBar
42 virtual void Update(int viewport_size, int content_size, int current_pos); 44 virtual void Update(int viewport_size, int content_size, int current_pos);
43 virtual int GetLayoutSize() const; 45 virtual int GetLayoutSize() const;
44 virtual int GetPosition() const; 46 virtual int GetPosition() const;
45 47
46 // Return the system sizes 48 // Return the system sizes
47 static int GetHorizontalScrollBarHeight(); 49 static int GetHorizontalScrollBarHeight();
48 static int GetVerticalScrollBarWidth(); 50 static int GetVerticalScrollBarWidth();
49 51
50 private: 52 private:
53 #if defined(OS_WIN)
51 // 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
52 // view hierarchy 55 // view hierarchy
53 HWNDView* sb_view_; 56 HWNDView* sb_view_;
57 #endif // defined(OS_WIN)
54 58
55 // 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
56 // 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
57 // without having to do anything special in the high level hwnd. 61 // without having to do anything special in the high level hwnd.
58 ScrollBarContainer* sb_container_; 62 ScrollBarContainer* sb_container_;
59 }; 63 };
60 64
61 } // namespace views 65 } // namespace views
62 66
63 #endif 67 #endif
64 68
OLDNEW
« no previous file with comments | « chrome/views/label.cc ('k') | chrome/views/scroll_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698