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

Unified Diff: ui/views/examples/multiline_example.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 | « ui/views/examples/label_example.cc ('k') | ui/views/examples/text_example.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/examples/multiline_example.cc
diff --git a/ui/views/examples/multiline_example.cc b/ui/views/examples/multiline_example.cc
index 30dcd6a0ba3bab82aa3491e94c9ea90e180621fc..86685a423ec73baf0426e57b5f9cccbfdd23684a 100644
--- a/ui/views/examples/multiline_example.cc
+++ b/ui/views/examples/multiline_example.cc
@@ -27,7 +27,7 @@ class MultilineExample::RenderTextView : public View {
render_text_->SetHorizontalAlignment(gfx::ALIGN_CENTER);
render_text_->SetColor(SK_ColorBLACK);
render_text_->SetMultiline(true);
- set_border(Border::CreateSolidBorder(2, SK_ColorGRAY));
+ SetBorder(Border::CreateSolidBorder(2, SK_ColorGRAY));
}
virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE {
@@ -108,7 +108,7 @@ void MultilineExample::CreateExampleView(View* container) {
label_ = new Label();
label_->SetText(ASCIIToUTF16(kTestString));
label_->SetMultiLine(true);
- label_->set_border(Border::CreateSolidBorder(2, SK_ColorCYAN));
+ label_->SetBorder(Border::CreateSolidBorder(2, SK_ColorCYAN));
label_checkbox_ = new Checkbox(ASCIIToUTF16("views::Label:"));
label_checkbox_->SetChecked(true);
« no previous file with comments | « ui/views/examples/label_example.cc ('k') | ui/views/examples/text_example.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698