| Index: chrome/browser/ui/views/toolbar/back_button.cc
|
| diff --git a/chrome/browser/ui/views/toolbar/back_button.cc b/chrome/browser/ui/views/toolbar/back_button.cc
|
| index 1bfc743190a31294571ece5b25b68e64cf90221a..54c6f2f988420906f69c52044461e5474815a742 100644
|
| --- a/chrome/browser/ui/views/toolbar/back_button.cc
|
| +++ b/chrome/browser/ui/views/toolbar/back_button.cc
|
| @@ -15,12 +15,6 @@ BackButton::BackButton(views::ButtonListener* listener,
|
|
|
| BackButton::~BackButton() {}
|
|
|
| -gfx::Rect BackButton::GetThemePaintRect() const {
|
| - gfx::Rect rect(LabelButton::GetThemePaintRect());
|
| - rect.Inset(margin_leading_, 0, 0, 0);
|
| - return rect;
|
| -}
|
| -
|
| void BackButton::SetLeadingMargin(int margin) {
|
| margin_leading_ = margin;
|
|
|
| @@ -37,6 +31,10 @@ void BackButton::SetLeadingMargin(int margin) {
|
| InvalidateLayout();
|
| }
|
|
|
| +const char* BackButton::GetClassName() const {
|
| + return "BackButton";
|
| +}
|
| +
|
| scoped_ptr<views::LabelButtonBorder> BackButton::CreateDefaultBorder() const {
|
| scoped_ptr<views::LabelButtonBorder> border =
|
| ToolbarButton::CreateDefaultBorder();
|
| @@ -50,3 +48,10 @@ scoped_ptr<views::LabelButtonBorder> BackButton::CreateDefaultBorder() const {
|
|
|
| return border.Pass();
|
| }
|
| +
|
| +gfx::Rect BackButton::GetThemePaintRect() const {
|
| + gfx::Rect rect(LabelButton::GetThemePaintRect());
|
| + rect.Inset(margin_leading_, 0, 0, 0);
|
| + return rect;
|
| +}
|
| +
|
|
|