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

Unified Diff: ui/message_center/views/notification_view.cc

Issue 2480813003: Reduce views::Border creation verbosity by promoting factory functions (Closed)
Patch Set: fix bad merge Created 4 years, 1 month 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/message_center/views/notification_button.cc ('k') | ui/message_center/views/notifier_settings_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/message_center/views/notification_view.cc
diff --git a/ui/message_center/views/notification_view.cc b/ui/message_center/views/notification_view.cc
index f58889727ee6331d12e31fe4d3ba722440b67791..cee41f03326da583a2143968bf98a8107f1979d8 100644
--- a/ui/message_center/views/notification_view.cc
+++ b/ui/message_center/views/notification_view.cc
@@ -57,7 +57,7 @@ std::unique_ptr<views::Border> MakeEmptyBorder(int top,
int left,
int bottom,
int right) {
- return views::Border::CreateEmptyBorder(top, left, bottom, right);
+ return views::CreateEmptyBorder(top, left, bottom, right);
}
// static
@@ -83,7 +83,7 @@ std::unique_ptr<views::Border> MakeProgressBarBorder(int top, int bottom) {
std::unique_ptr<views::Border> MakeSeparatorBorder(int top,
int left,
SkColor color) {
- return views::Border::CreateSolidSidedBorder(top, left, 0, 0, color);
+ return views::CreateSolidSidedBorder(top, left, 0, 0, color);
}
// ItemView ////////////////////////////////////////////////////////////////////
@@ -577,7 +577,7 @@ void NotificationView::CreateOrUpdateImageView(
gfx::Size scaled_size = message_center::GetImageSizeForContainerSize(
ideal_size, notification.image().Size());
image_view_->SetBorder(ideal_size != scaled_size
- ? views::Border::CreateSolidBorder(
+ ? views::CreateSolidBorder(
message_center::kNotificationImageBorderSize,
SK_ColorTRANSPARENT)
: NULL);
« no previous file with comments | « ui/message_center/views/notification_button.cc ('k') | ui/message_center/views/notifier_settings_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698