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

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

Issue 1671313002: MacViews: Overlay Scrollbars with Show/Hide Animations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added comments and fixed nits Created 4 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
OLDNEW
1 // Copyright (c) 2011 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 UI_VIEWS_CONTROLS_SCROLLBAR_NATIVE_SCROLL_BAR_WRAPPER_H_ 5 #ifndef UI_VIEWS_CONTROLS_SCROLLBAR_NATIVE_SCROLL_BAR_WRAPPER_H_
6 #define UI_VIEWS_CONTROLS_SCROLLBAR_NATIVE_SCROLL_BAR_WRAPPER_H_ 6 #define UI_VIEWS_CONTROLS_SCROLLBAR_NATIVE_SCROLL_BAR_WRAPPER_H_
7 7
8 #include "ui/views/views_export.h" 8 #include "ui/views/views_export.h"
9 9
10 namespace ui { 10 namespace ui {
(...skipping 20 matching lines...) Expand all
31 31
32 // Returns the position of the scrollbar. 32 // Returns the position of the scrollbar.
33 virtual int GetPosition() const = 0; 33 virtual int GetPosition() const = 0;
34 34
35 // Creates an appropriate NativeScrollBarWrapper for the platform. 35 // Creates an appropriate NativeScrollBarWrapper for the platform.
36 static NativeScrollBarWrapper* CreateWrapper(NativeScrollBar* button); 36 static NativeScrollBarWrapper* CreateWrapper(NativeScrollBar* button);
37 37
38 // Returns the system sizes of vertical/horizontal scroll bars. 38 // Returns the system sizes of vertical/horizontal scroll bars.
39 static int GetVerticalScrollBarWidth(const ui::NativeTheme* theme); 39 static int GetVerticalScrollBarWidth(const ui::NativeTheme* theme);
40 static int GetHorizontalScrollBarHeight(const ui::NativeTheme* theme); 40 static int GetHorizontalScrollBarHeight(const ui::NativeTheme* theme);
41
42 // Returns the overlay params for the scrollbar views.
43 virtual ui::NativeTheme::OverlayParams GetOverlayParams();
41 }; 44 };
42 45
43 } // namespace views 46 } // namespace views
44 47
45 #endif // UI_VIEWS_CONTROLS_SCROLLBAR_NATIVE_SCROLL_BAR_WRAPPER_H_ 48 #endif // UI_VIEWS_CONTROLS_SCROLLBAR_NATIVE_SCROLL_BAR_WRAPPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698