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

Side by Side 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 nits. 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/ui/views/avatar_label.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_VIEWS_AVATAR_LABEL_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_AVATAR_LABEL_H_
6 #define CHROME_BROWSER_UI_VIEWS_AVATAR_LABEL_H_ 6 #define CHROME_BROWSER_UI_VIEWS_AVATAR_LABEL_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "ui/views/controls/button/text_button.h" 9 #include "ui/views/controls/button/text_button.h"
10 10
(...skipping 12 matching lines...) Expand all
23 public: 23 public:
24 explicit AvatarLabel(BrowserView* browser_view); 24 explicit AvatarLabel(BrowserView* browser_view);
25 virtual ~AvatarLabel(); 25 virtual ~AvatarLabel();
26 26
27 // views::TextButton: 27 // views::TextButton:
28 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; 28 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE;
29 29
30 // Update the style of the label according to the provided theme. 30 // Update the style of the label according to the provided theme.
31 void UpdateLabelStyle(); 31 void UpdateLabelStyle();
32 32
33 // Sets whether the label should be displayed on the right or on the left. A
34 // new button border is created which has the right insets for the positioning
35 // of the button.
36 void SetLabelOnRight(bool label_on_right);
37
33 private: 38 private:
34 BrowserView* browser_view_; 39 BrowserView* browser_view_;
35 40
36 DISALLOW_COPY_AND_ASSIGN(AvatarLabel); 41 DISALLOW_COPY_AND_ASSIGN(AvatarLabel);
37 }; 42 };
38 43
39 #endif // CHROME_BROWSER_UI_VIEWS_AVATAR_LABEL_H_ 44 #endif // CHROME_BROWSER_UI_VIEWS_AVATAR_LABEL_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/avatar_label.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698