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

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

Issue 3017036: views: Fix bad license headers found in some files (Closed) Base URL: git://git.chromium.org/chromium.git
Patch Set: revert vertical whitespace Created 10 years, 4 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 | « views/controls/native_control_win.h ('k') | views/controls/slider/native_slider_wrapper.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) 2009 The Chromium Authors. All rights reserved. Use of this 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // source code is governed by a BSD-style license that can be found in the 2 // Use of this source code is governed by a BSD-style license that can be
3 // LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef VIEWS_CONTROLS_NATIVE_SCROLL_BAR_WRAPPER_H_ 5 #ifndef VIEWS_CONTROLS_NATIVE_SCROLL_BAR_WRAPPER_H_
6 #define VIEWS_CONTROLS_NATIVE_SCROLL_BAR_WRAPPER_H_ 6 #define VIEWS_CONTROLS_NATIVE_SCROLL_BAR_WRAPPER_H_
7 #pragma once 7 #pragma once
8 8
9 namespace views { 9 namespace views {
10 10
11 class NativeScrollBar; 11 class NativeScrollBar;
12 class View; 12 class View;
13 13
14 // A specialization of NativeControlWrapper that hosts a platform-native 14 // A specialization of NativeControlWrapper that hosts a platform-native
15 // scroll bar. 15 // scroll bar.
16 class NativeScrollBarWrapper { 16 class NativeScrollBarWrapper {
17 public: 17 public:
18 virtual ~NativeScrollBarWrapper() {} 18 virtual ~NativeScrollBarWrapper() {}
19 19
20 // Updates the scroll bar appearance given a viewport size, content size and 20 // Updates the scroll bar appearance given a viewport size, content size and
21 // current position. 21 // current position.
22 virtual void Update(int viewport_size, 22 virtual void Update(int viewport_size, int content_size, int current_pos) = 0;
23 int content_size,
24 int current_pos) = 0;
25 23
26 // Retrieves the views::View that hosts the native control. 24 // Retrieves the views::View that hosts the native control.
27 virtual View* GetView() = 0; 25 virtual View* GetView() = 0;
28 26
29 // Returns the position of the scrollbar. 27 // Returns the position of the scrollbar.
30 virtual int GetPosition() const = 0; 28 virtual int GetPosition() const = 0;
31 29
32 // Creates an appropriate NativeScrollBarWrapper for the platform. 30 // Creates an appropriate NativeScrollBarWrapper for the platform.
33 static NativeScrollBarWrapper* CreateWrapper(NativeScrollBar* button); 31 static NativeScrollBarWrapper* CreateWrapper(NativeScrollBar* button);
34 32
35 // Returns the system sizes of vertical/horizontal scroll bars. 33 // Returns the system sizes of vertical/horizontal scroll bars.
36 static int GetVerticalScrollBarWidth(); 34 static int GetVerticalScrollBarWidth();
37 static int GetHorizontalScrollBarHeight(); 35 static int GetHorizontalScrollBarHeight();
38 }; 36 };
39 37
40 } // namespace views 38 } // namespace views
41 39
42 #endif // VIEWS_CONTROLS_NATIVE_SCROLL_BAR_WRAPPER_H_ 40 #endif // VIEWS_CONTROLS_NATIVE_SCROLL_BAR_WRAPPER_H_
43
OLDNEW
« no previous file with comments | « views/controls/native_control_win.h ('k') | views/controls/slider/native_slider_wrapper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698