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

Unified Diff: ui/views/style/platform_style.h

Issue 1671313002: MacViews: Overlay Scrollbars with Show/Hide Animations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/controls/scrollbar/cocoa_scroll_bar.mm ('k') | ui/views/style/platform_style.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/style/platform_style.h
diff --git a/ui/views/style/platform_style.h b/ui/views/style/platform_style.h
index e56fe0e30ba41263550095c37f381c195b0cf850..1f7b9a253ca2ec997f6983d554b81acd9294f93d 100644
--- a/ui/views/style/platform_style.h
+++ b/ui/views/style/platform_style.h
@@ -14,6 +14,7 @@ namespace views {
class Border;
class LabelButton;
class LabelButtonBorder;
+class ScrollBar;
// Cross-platform API for providing platform-specific styling for toolkit-views.
class PlatformStyle {
@@ -26,6 +27,9 @@ class PlatformStyle {
// Applies the current system theme to the default border created by |button|.
static scoped_ptr<Border> CreateThemedLabelButtonBorder(LabelButton* button);
+ // Creates the default scrollbar for the given orientation.
+ static scoped_ptr<ScrollBar> CreateScrollBar(bool is_horizontal);
+
private:
DISALLOW_IMPLICIT_CONSTRUCTORS(PlatformStyle);
};
« no previous file with comments | « ui/views/controls/scrollbar/cocoa_scroll_bar.mm ('k') | ui/views/style/platform_style.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698