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

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: Address review comments. 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
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..ed036325bbbcdde9fc9686e0647514b20a1eb9aa 100644
--- a/chrome/browser/ui/views/avatar_label.h
+++ b/chrome/browser/ui/views/avatar_label.h
@@ -24,12 +24,16 @@ class AvatarLabel : public views::TextButton {
explicit AvatarLabel(BrowserView* browser_view);
virtual ~AvatarLabel();
- // views::TextButton:
Peter Kasting 2014/01/16 21:46:17 Nit: Don't remove this.
Adrian Kuegel 2014/01/17 09:42:17 Thanks for catching this. I removed this accidenta
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. 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_;

Powered by Google App Engine
This is Rietveld 408576698