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

Unified Diff: ui/views/examples/multiline_example.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/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 47640199753256a5d7810cd0d7b9a74cf0863de4..8b2b2bac0acbb73c2b586041d770bf9e5bc534d1 100644
--- a/ui/views/examples/multiline_example.cc
+++ b/ui/views/examples/multiline_example.cc
@@ -55,7 +55,7 @@ class MultilineExample::RenderTextView : public View {
render_text_->SetHorizontalAlignment(gfx::ALIGN_TO_HEAD);
render_text_->SetColor(SK_ColorBLACK);
render_text_->SetMultiline(true);
- SetBorder(Border::CreateSolidBorder(2, SK_ColorGRAY));
+ SetBorder(CreateSolidBorder(2, SK_ColorGRAY));
}
void OnPaint(gfx::Canvas* canvas) override {
@@ -145,7 +145,7 @@ void MultilineExample::CreateExampleView(View* container) {
label_ = new PreferredSizeLabel();
label_->SetText(kTestString);
label_->SetMultiLine(true);
- label_->SetBorder(Border::CreateSolidBorder(2, SK_ColorCYAN));
+ label_->SetBorder(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