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

Unified Diff: chrome/browser/ui/views/avatar_label.h

Issue 127253004: Support displaying the avatar label on the right side. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix test. Created 6 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 | « no previous file | chrome/browser/ui/views/avatar_label.cc » ('j') | chrome/browser/ui/views/avatar_label.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
};
« no previous file with comments | « no previous file | chrome/browser/ui/views/avatar_label.cc » ('j') | chrome/browser/ui/views/avatar_label.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698