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

Unified Diff: chrome/browser/ui/views/toolbar/back_button.cc

Issue 869453002: Define class names for views class in c/b/ui/views (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Created 5 years, 11 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 | « chrome/browser/ui/views/toolbar/back_button.h ('k') | chrome/browser/ui/views/toolbar/home_button.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
+}
+
« no previous file with comments | « chrome/browser/ui/views/toolbar/back_button.h ('k') | chrome/browser/ui/views/toolbar/home_button.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698