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

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: 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_mac.cc ('k') | ui/views/views.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 77%
rename from ui/views/style/platform_style_mac.cc
rename to ui/views/style/platform_style_mac.mm
index f1038d87842aeeea13a344d82c013f46914ee84a..44254ea9a7d3f6e45e2caad7296d88ffa49ec52c 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/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) {
+ return make_scoped_ptr(new CocoaScrollBar(is_horizontal));
+}
+
} // namespace views
« no previous file with comments | « ui/views/style/platform_style_mac.cc ('k') | ui/views/views.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698