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

Unified Diff: ui/views/focus/focus_traversal_unittest.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/vector_example.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/focus/focus_traversal_unittest.cc
diff --git a/ui/views/focus/focus_traversal_unittest.cc b/ui/views/focus/focus_traversal_unittest.cc
index 1bf6ebccd3aa234598892b4d3ca8a172515acc18..529e96d34d821e2528803e6d6205ae9dda727652 100644
--- a/ui/views/focus/focus_traversal_unittest.cc
+++ b/ui/views/focus/focus_traversal_unittest.cc
@@ -310,7 +310,7 @@ void FocusTraversalTest::InitContentView() {
cb->set_id(TOP_CHECKBOX_ID);
left_container_ = new PaneView();
- left_container_->SetBorder(Border::CreateSolidBorder(1, SK_ColorBLACK));
+ left_container_->SetBorder(CreateSolidBorder(1, SK_ColorBLACK));
left_container_->set_background(
Background::CreateSolidBackground(240, 240, 240));
left_container_->set_id(LEFT_CONTAINER_ID);
@@ -394,7 +394,7 @@ void FocusTraversalTest::InitContentView() {
left_container_->AddChildView(combobox);
right_container_ = new PaneView();
- right_container_->SetBorder(Border::CreateSolidBorder(1, SK_ColorBLACK));
+ right_container_->SetBorder(CreateSolidBorder(1, SK_ColorBLACK));
right_container_->set_background(
Background::CreateSolidBackground(240, 240, 240));
right_container_->set_id(RIGHT_CONTAINER_ID);
@@ -425,7 +425,7 @@ void FocusTraversalTest::InitContentView() {
y += radio_button_height + gap_between_radio_buttons;
View* inner_container = new View();
- inner_container->SetBorder(Border::CreateSolidBorder(1, SK_ColorBLACK));
+ inner_container->SetBorder(CreateSolidBorder(1, SK_ColorBLACK));
inner_container->set_background(
Background::CreateSolidBackground(230, 230, 230));
inner_container->set_id(INNER_CONTAINER_ID);
« no previous file with comments | « ui/views/examples/vector_example.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698