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

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: Rebase to ToT 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
« no previous file with comments | « ash/system/tray/hover_highlight_view.cc ('k') | ash/system/tray/system_tray_bubble.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..f8887c3feef2860fa766393547951a6193c809c1 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,8 +68,8 @@ void SpecialPopupRow::SetTextLabel(int string_id, ViewClickListener* listener) {
rb.GetLocalizedString(string_id),
gfx::Font::BOLD);
- container->set_border(views::Border::CreateEmptyBorder(0,
- kTrayPopupPaddingHorizontal, 0, 0));
+ container->SetBorder(
+ views::Border::CreateEmptyBorder(0, kTrayPopupPaddingHorizontal, 0, 0));
container->SetAccessibleName(
rb.GetLocalizedString(IDS_ASH_STATUS_TRAY_PREVIOUS_MENU));
« no previous file with comments | « ash/system/tray/hover_highlight_view.cc ('k') | ash/system/tray/system_tray_bubble.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698