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

Unified Diff: ui/views/controls/button/md_text_button.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.h ('k') | ui/views/examples/button_example.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/button/md_text_button.cc
diff --git a/ui/views/controls/button/md_text_button.cc b/ui/views/controls/button/md_text_button.cc
index 44d111c80dff5219baba969b59ba615dc8a2cbe5..b67f9ba128e27c973152e9fd47c6bb763c95de98 100644
--- a/ui/views/controls/button/md_text_button.cc
+++ b/ui/views/controls/button/md_text_button.cc
@@ -35,7 +35,7 @@ LabelButton* CreateButton(ButtonListener* listener,
const base::string16& text,
bool md) {
if (md)
- return MdTextButton::CreateMdButton(listener, text);
+ return MdTextButton::Create(listener, text);
LabelButton* button = new LabelButton(listener, text);
button->SetStyle(CustomButton::STYLE_BUTTON);
@@ -105,7 +105,7 @@ LabelButton* MdTextButton::CreateSecondaryUiBlueButton(
ButtonListener* listener,
const base::string16& text) {
if (ui::MaterialDesignController::IsSecondaryUiMaterial()) {
- MdTextButton* md_button = MdTextButton::CreateMdButton(listener, text);
+ MdTextButton* md_button = MdTextButton::Create(listener, text);
md_button->SetCallToAction(true);
return md_button;
}
@@ -114,8 +114,8 @@ LabelButton* MdTextButton::CreateSecondaryUiBlueButton(
}
// static
-MdTextButton* MdTextButton::CreateMdButton(ButtonListener* listener,
- const base::string16& text) {
+MdTextButton* MdTextButton::Create(ButtonListener* listener,
+ const base::string16& text) {
MdTextButton* button = new MdTextButton(listener);
button->SetText(text);
button->SetFocusForPlatform();
« no previous file with comments | « ui/views/controls/button/md_text_button.h ('k') | ui/views/examples/button_example.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698