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

Unified Diff: content/shell/browser/shell_views.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
Index: content/shell/browser/shell_views.cc
diff --git a/content/shell/browser/shell_views.cc b/content/shell/browser/shell_views.cc
index 5a569dc8f31c846c2d141a941ad9fcb5cab97317..94d0a044f177c8b8e78e758a5d00495ad617ec61 100644
--- a/content/shell/browser/shell_views.cc
+++ b/content/shell/browser/shell_views.cc
@@ -132,7 +132,7 @@ class ShellWindowDelegateView : public views::WidgetDelegateView,
toolbar_layout->AddColumnSet(0);
// Back button
back_button_ =
- views::MdTextButton::CreateMdButton(this, base::ASCIIToUTF16("Back"));
+ views::MdTextButton::Create(this, base::ASCIIToUTF16("Back"));
gfx::Size back_button_size = back_button_->GetPreferredSize();
toolbar_column_set->AddColumn(views::GridLayout::CENTER,
views::GridLayout::CENTER, 0,
@@ -140,8 +140,8 @@ class ShellWindowDelegateView : public views::WidgetDelegateView,
back_button_size.width(),
back_button_size.width() / 2);
// Forward button
- forward_button_ = views::MdTextButton::CreateMdButton(
- this, base::ASCIIToUTF16("Forward"));
+ forward_button_ =
+ views::MdTextButton::Create(this, base::ASCIIToUTF16("Forward"));
gfx::Size forward_button_size = forward_button_->GetPreferredSize();
toolbar_column_set->AddColumn(views::GridLayout::CENTER,
views::GridLayout::CENTER, 0,
@@ -149,8 +149,8 @@ class ShellWindowDelegateView : public views::WidgetDelegateView,
forward_button_size.width(),
forward_button_size.width() / 2);
// Refresh button
- refresh_button_ = views::MdTextButton::CreateMdButton(
- this, base::ASCIIToUTF16("Refresh"));
+ refresh_button_ =
+ views::MdTextButton::Create(this, base::ASCIIToUTF16("Refresh"));
gfx::Size refresh_button_size = refresh_button_->GetPreferredSize();
toolbar_column_set->AddColumn(views::GridLayout::CENTER,
views::GridLayout::CENTER, 0,
@@ -159,7 +159,7 @@ class ShellWindowDelegateView : public views::WidgetDelegateView,
refresh_button_size.width() / 2);
// Stop button
stop_button_ =
- views::MdTextButton::CreateMdButton(this, base::ASCIIToUTF16("Stop"));
+ views::MdTextButton::Create(this, base::ASCIIToUTF16("Stop"));
gfx::Size stop_button_size = stop_button_->GetPreferredSize();
toolbar_column_set->AddColumn(views::GridLayout::CENTER,
views::GridLayout::CENTER, 0,
« no previous file with comments | « chrome/browser/ui/views/infobars/confirm_infobar.cc ('k') | mash/example/window_type_launcher/window_type_launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698