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

Unified Diff: ash/common/system/toast/toast_overlay.cc

Issue 2480203002: ui: Cleanup class/struct forward declarations (Closed)
Patch Set: Sync CL to position 430550 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 | « ash/common/system/status_area_widget_delegate.cc ('k') | ash/common/system/tray/actionable_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/toast/toast_overlay.cc
diff --git a/ash/common/system/toast/toast_overlay.cc b/ash/common/system/toast/toast_overlay.cc
index a99d60df0475d6929459d40af3090e58393a0aee..7a969c4d020944d41100529fa25e5ba8b078015e 100644
--- a/ash/common/system/toast/toast_overlay.cc
+++ b/ash/common/system/toast/toast_overlay.cc
@@ -86,9 +86,8 @@ ToastOverlayLabel::ToastOverlayLabel(const base::string16& label) {
int verticalSpacing =
kToastVerticalSpacing - (GetPreferredSize().height() - GetBaseline());
- SetBorder(views::Border::CreateEmptyBorder(
- verticalSpacing, kToastHorizontalSpacing, verticalSpacing,
- kToastHorizontalSpacing));
+ SetBorder(views::CreateEmptyBorder(verticalSpacing, kToastHorizontalSpacing,
+ verticalSpacing, kToastHorizontalSpacing));
}
ToastOverlayLabel::~ToastOverlayLabel() {}
@@ -122,9 +121,8 @@ ToastOverlayButton::ToastOverlayButton(views::ButtonListener* listener,
// Treat the space below the baseline as a margin.
int verticalSpacing = kToastVerticalSpacing -
(GetPreferredSize().height() - label()->GetBaseline());
- SetBorder(views::Border::CreateEmptyBorder(
- verticalSpacing, kToastHorizontalSpacing, verticalSpacing,
- kToastHorizontalSpacing));
+ SetBorder(views::CreateEmptyBorder(verticalSpacing, kToastHorizontalSpacing,
+ verticalSpacing, kToastHorizontalSpacing));
}
///////////////////////////////////////////////////////////////////////////////
« no previous file with comments | « ash/common/system/status_area_widget_delegate.cc ('k') | ash/common/system/tray/actionable_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698