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

Unified Diff: ui/views/style/platform_style_mac.mm

Issue 1671313002: MacViews: Overlay Scrollbars with Show/Hide Animations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit 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
Index: ui/views/style/platform_style_mac.mm
diff --git a/ui/views/style/platform_style_mac.cc b/ui/views/style/platform_style_mac.mm
similarity index 75%
rename from ui/views/style/platform_style_mac.cc
rename to ui/views/style/platform_style_mac.mm
index f1038d87842aeeea13a344d82c013f46914ee84a..dac10975f248173357c158793c7412f888c4b4e1 100644
--- a/ui/views/style/platform_style_mac.cc
+++ b/ui/views/style/platform_style_mac.mm
@@ -6,6 +6,7 @@
#include "ui/views/controls/button/label_button.h"
#include "ui/views/controls/button/label_button_border.h"
+#import "ui/views/controls/scrollbar/native_cocoa_scroll_bar.h"
#include "ui/views/style/mac/dialog_button_border_mac.h"
namespace views {
@@ -19,4 +20,9 @@ scoped_ptr<LabelButtonBorder> PlatformStyle::CreateLabelButtonBorder(
return make_scoped_ptr(new LabelButtonAssetBorder(style));
}
+// static
+scoped_ptr<ScrollBar> PlatformStyle::CreateScrollBar(bool is_horizontal) {
tapted 2016/02/09 23:51:48 I think platform_style.cc will need an implementat
spqchan 2016/02/10 00:35:16 Done.
+ return make_scoped_ptr(new NativeCocoaScrollBar(is_horizontal));
+}
+
} // namespace views

Powered by Google App Engine
This is Rietveld 408576698