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

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

Issue 2358913006: views: remove PlatformStyle::CreateLabelButtonBorder (Closed)
Patch Set: remove DialogButtonBorderMac too Created 4 years, 3 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.mm » ('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 d35f52d6892ac941001b826ee5af89782256f70e..39dc249c2d147d05bf3f1228724a60c5b32cda2e 100644
--- a/ui/views/style/platform_style.cc
+++ b/ui/views/style/platform_style.cc
@@ -64,20 +64,6 @@ std::unique_ptr<Background> PlatformStyle::CreateComboboxBackground(
}
// static
-std::unique_ptr<LabelButtonBorder> PlatformStyle::CreateLabelButtonBorder(
- Button::ButtonStyle style) {
- if (!ui::MaterialDesignController::IsModeMaterial() ||
- style != Button::STYLE_TEXTBUTTON) {
- return base::MakeUnique<LabelButtonAssetBorder>(style);
- }
-
- std::unique_ptr<LabelButtonBorder> border(new views::LabelButtonBorder());
- border->set_insets(views::LabelButtonAssetBorder::GetDefaultInsetsForStyle(
- Button::STYLE_TEXTBUTTON));
- return border;
-}
-
-// static
std::unique_ptr<ScrollBar> PlatformStyle::CreateScrollBar(bool is_horizontal) {
return base::MakeUnique<NativeScrollBar>(is_horizontal);
}
« no previous file with comments | « ui/views/style/platform_style.h ('k') | ui/views/style/platform_style_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698