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

Unified Diff: ui/views/examples/button_example.cc

Issue 2313253003: Rename views::MdTextButton::CreateMdButton to just Create (Closed)
Patch Set: more renames Created 4 years, 3 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/controls/button/md_text_button.cc ('k') | ui/views/examples/button_sticker_sheet.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/examples/button_example.cc
diff --git a/ui/views/examples/button_example.cc b/ui/views/examples/button_example.cc
index b3a2f13a4fc9bbf0313e5709db5d9dc00650e7e2..79c4fc705f78cb1507a9bd8584b022eb47cc7a9a 100644
--- a/ui/views/examples/button_example.cc
+++ b/ui/views/examples/button_example.cc
@@ -59,14 +59,14 @@ void ButtonExample::CreateExampleView(View* container) {
container->AddChildView(new BlueButton(this, ASCIIToUTF16("Blue Button")));
- container->AddChildView(MdTextButton::CreateMdButton(
- nullptr, base::ASCIIToUTF16("Material design")));
- MdTextButton* md_button = MdTextButton::CreateMdButton(
- nullptr, base::ASCIIToUTF16("Default"));
+ container->AddChildView(
+ MdTextButton::Create(nullptr, base::ASCIIToUTF16("Material design")));
+ MdTextButton* md_button =
+ MdTextButton::Create(nullptr, base::ASCIIToUTF16("Default"));
md_button->SetIsDefault(true);
container->AddChildView(md_button);
- md_button = MdTextButton::CreateMdButton(
- nullptr, base::ASCIIToUTF16("Call to action"));
+ md_button =
+ MdTextButton::Create(nullptr, base::ASCIIToUTF16("Call to action"));
md_button->SetCallToAction(true);
container->AddChildView(md_button);
« no previous file with comments | « ui/views/controls/button/md_text_button.cc ('k') | ui/views/examples/button_sticker_sheet.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698