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

Unified Diff: ash/system/tray/special_popup_row.cc

Issue 145033006: views: Make View::set_border() take a scoped_ptr<>. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Further renaming Created 6 years, 11 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: ash/system/tray/special_popup_row.cc
diff --git a/ash/system/tray/special_popup_row.cc b/ash/system/tray/special_popup_row.cc
index fd10f4721bd9b2f6bd14999031079e6a07d4d6de..47d9b2ca87015055a99cd7dd5924f7102136796e 100644
--- a/ash/system/tray/special_popup_row.cc
+++ b/ash/system/tray/special_popup_row.cc
@@ -32,7 +32,7 @@ views::View* CreatePopupHeaderButtonsContainer() {
views::View* view = new views::View;
view->SetLayoutManager(new
views::BoxLayout(views::BoxLayout::kHorizontal, 0, 0, -1));
- view->set_border(views::Border::CreateEmptyBorder(0, 0, 0, 5));
+ view->SetBorder(views::Border::CreateEmptyBorder(0, 0, 0, 5));
return view;
}
@@ -43,7 +43,7 @@ SpecialPopupRow::SpecialPopupRow()
button_container_(NULL) {
set_background(views::Background::CreateSolidBackground(
kHeaderBackgroundColor));
- set_border(views::Border::CreateSolidSidedBorder(
+ SetBorder(views::Border::CreateSolidSidedBorder(
kBorderHeight, 0, 0, 0, kBorderColor));
SetLayoutManager(
new views::BoxLayout(views::BoxLayout::kHorizontal, 0, 0, 0));
@@ -68,7 +68,7 @@ void SpecialPopupRow::SetTextLabel(int string_id, ViewClickListener* listener) {
rb.GetLocalizedString(string_id),
gfx::Font::BOLD);
- container->set_border(views::Border::CreateEmptyBorder(0,
+ container->SetBorder(views::Border::CreateEmptyBorder(0,
kTrayPopupPaddingHorizontal, 0, 0));
container->SetAccessibleName(

Powered by Google App Engine
This is Rietveld 408576698