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

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

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/style/platform_style.h ('k') | ui/views/style/platform_style_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/style/platform_style.cc
diff --git a/ui/views/style/platform_style.cc b/ui/views/style/platform_style.cc
index 6d636b6332c6f9021ade06ec06ee727db6d097ae..cef44cdcc4825ce61875b1620dc2bbf6371b8b6a 100644
--- a/ui/views/style/platform_style.cc
+++ b/ui/views/style/platform_style.cc
@@ -8,6 +8,7 @@
#include "ui/base/material_design/material_design_controller.h"
#include "ui/views/controls/button/label_button.h"
#include "ui/views/controls/button/label_button_border.h"
+#include "ui/views/controls/scrollbar/native_scroll_bar.h"
namespace views {
@@ -25,6 +26,12 @@ scoped_ptr<LabelButtonBorder> PlatformStyle::CreateLabelButtonBorder(
Button::STYLE_TEXTBUTTON));
return border;
}
+
+// static
+scoped_ptr<ScrollBar> PlatformStyle::CreateScrollBar(bool is_horizontal) {
+ return make_scoped_ptr(new NativeScrollBar(is_horizontal));
+}
+
#endif
#if !defined(OS_LINUX) || defined(OS_CHROMEOS)
« no previous file with comments | « ui/views/style/platform_style.h ('k') | ui/views/style/platform_style_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698