summaryrefslogtreecommitdiffstats
path: root/content/shell/shell_aura.cc
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-17 00:37:05 +0000
committertfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-17 00:37:05 +0000
commit0de8640f356c57ba73d06fe4c51f6e6324523cde (patch)
treef286182f62ec7d4ad4d8b23bdd1e8557cada1ace /content/shell/shell_aura.cc
parent566d3293e489bb20ce1b3365892d62a6b53d4b21 (diff)
downloadchromium_src-0de8640f356c57ba73d06fe4c51f6e6324523cde.zip
chromium_src-0de8640f356c57ba73d06fe4c51f6e6324523cde.tar.gz
chromium_src-0de8640f356c57ba73d06fe4c51f6e6324523cde.tar.bz2
content: Migrate content_shell to LabelButton.
BUG=155363 R=msw@chromium.org,jam@chromium.org Review URL: https://chromiumcodereview.appspot.com/12434006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@188615 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/shell/shell_aura.cc')
-rw-r--r--content/shell/shell_aura.cc22
1 files changed, 13 insertions, 9 deletions
diff --git a/content/shell/shell_aura.cc b/content/shell/shell_aura.cc
index f78c9e1..1607fbb 100644
--- a/content/shell/shell_aura.cc
+++ b/content/shell/shell_aura.cc
@@ -16,7 +16,7 @@
#include "ui/base/events/event.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/gfx/screen.h"
-#include "ui/views/controls/button/text_button.h"
+#include "ui/views/controls/button/label_button.h"
#include "ui/views/controls/textfield/textfield.h"
#include "ui/views/controls/textfield/textfield_controller.h"
#include "ui/views/controls/webview/webview.h"
@@ -131,7 +131,8 @@ class ShellWindowDelegateView : public WidgetDelegateView,
ColumnSet* toolbar_column_set =
toolbar_layout->AddColumnSet(0);
// Back button
- back_button_ = new NativeTextButton(this, ASCIIToUTF16("Back"));
+ back_button_ = new LabelButton(this, ASCIIToUTF16("Back"));
+ back_button_->SetStyle(views::Button::STYLE_NATIVE_TEXTBUTTON);
gfx::Size back_button_size = back_button_->GetPreferredSize();
toolbar_column_set->AddColumn(GridLayout::CENTER,
GridLayout::CENTER, 0,
@@ -139,7 +140,8 @@ class ShellWindowDelegateView : public WidgetDelegateView,
back_button_size.width(),
back_button_size.width() / 2);
// Forward button
- forward_button_ = new NativeTextButton(this, ASCIIToUTF16("Forward"));
+ forward_button_ = new LabelButton(this, ASCIIToUTF16("Forward"));
+ forward_button_->SetStyle(views::Button::STYLE_NATIVE_TEXTBUTTON);
gfx::Size forward_button_size = forward_button_->GetPreferredSize();
toolbar_column_set->AddColumn(GridLayout::CENTER,
GridLayout::CENTER, 0,
@@ -147,7 +149,8 @@ class ShellWindowDelegateView : public WidgetDelegateView,
forward_button_size.width(),
forward_button_size.width() / 2);
// Refresh button
- refresh_button_ = new NativeTextButton(this, ASCIIToUTF16("Refresh"));
+ refresh_button_ = new LabelButton(this, ASCIIToUTF16("Refresh"));
+ refresh_button_->SetStyle(views::Button::STYLE_NATIVE_TEXTBUTTON);
gfx::Size refresh_button_size = refresh_button_->GetPreferredSize();
toolbar_column_set->AddColumn(GridLayout::CENTER,
GridLayout::CENTER, 0,
@@ -155,7 +158,8 @@ class ShellWindowDelegateView : public WidgetDelegateView,
refresh_button_size.width(),
refresh_button_size.width() / 2);
// Stop button
- stop_button_ = new NativeTextButton(this, ASCIIToUTF16("Stop"));
+ stop_button_ = new LabelButton(this, ASCIIToUTF16("Stop"));
+ stop_button_->SetStyle(views::Button::STYLE_NATIVE_TEXTBUTTON);
gfx::Size stop_button_size = stop_button_->GetPreferredSize();
toolbar_column_set->AddColumn(GridLayout::CENTER,
GridLayout::CENTER, 0,
@@ -254,10 +258,10 @@ class ShellWindowDelegateView : public WidgetDelegateView,
// Toolbar view contains forward/backward/reload button and URL entry
View* toolbar_view_;
- NativeTextButton* back_button_;
- NativeTextButton* forward_button_;
- NativeTextButton* refresh_button_;
- NativeTextButton* stop_button_;
+ LabelButton* back_button_;
+ LabelButton* forward_button_;
+ LabelButton* refresh_button_;
+ LabelButton* stop_button_;
Textfield* url_entry_;
// Contents view contains the web contents view