Chromium Code Reviews| Index: chrome/browser/ui/views/avatar_label.h |
| diff --git a/chrome/browser/ui/views/avatar_label.h b/chrome/browser/ui/views/avatar_label.h |
| index d22c179f8e45fe05dd0e22f83384efaf91f2b283..1e79baf073c584a2f0c98d9724b11c1a59552164 100644 |
| --- a/chrome/browser/ui/views/avatar_label.h |
| +++ b/chrome/browser/ui/views/avatar_label.h |
| @@ -21,17 +21,27 @@ class ThemeProvider; |
| // to a managed user. |
| class AvatarLabel : public views::TextButton { |
| public: |
| + // Internal class name. |
| + static const char kViewClassName[]; |
|
Peter Kasting
2014/01/15 02:06:26
This, and GetClassName(), are only used for a DCHE
Adrian Kuegel
2014/01/15 16:24:51
Done. And filed crbug/334666.
|
| + |
| explicit AvatarLabel(BrowserView* browser_view); |
| virtual ~AvatarLabel(); |
| // views::TextButton: |
| + virtual const char* GetClassName() const OVERRIDE; |
| virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; |
| // Update the style of the label according to the provided theme. |
| void UpdateLabelStyle(); |
| + // Sets whether the label should be displayed on the right or on the left. If |
| + // |label_on_right| differs from the current setting, a new button border is |
| + // created which has the right insets for the positioning of the button. |
| + void SetLabelOnRight(bool label_on_right); |
| + |
| private: |
| BrowserView* browser_view_; |
| + bool label_on_right_; |
| DISALLOW_COPY_AND_ASSIGN(AvatarLabel); |
| }; |