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

Side by Side Diff: chrome/browser/ui/views/avatar_label.h

Issue 17176015: Improve the look of the avatar label button (views). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments. Created 7 years, 6 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
11 class BrowserView; 11 class BrowserView;
12 12
13 namespace ui { 13 namespace ui {
14 class MouseEvent; 14 class MouseEvent;
15 class ThemeProvider; 15 class ThemeProvider;
16 class NativeTheme;
17 } 16 }
18 17
19 // AvatarLabel 18 // AvatarLabel
20 // 19 //
21 // A label used to display a string indicating that the current profile belongs 20 // A label used to display a string indicating that the current profile belongs
22 // to a managed user. 21 // to a managed user.
23 class AvatarLabel : public views::TextButton { 22 class AvatarLabel : public views::TextButton {
24 public: 23 public:
25 AvatarLabel(BrowserView* browser_view, ui::ThemeProvider* theme_provider); 24 AvatarLabel(BrowserView* browser_view, ui::ThemeProvider* theme_provider);
26 virtual ~AvatarLabel(); 25 virtual ~AvatarLabel();
27 26
28 // views::TextButton: 27 // views::TextButton:
29 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; 28 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE;
30 virtual void GetExtraParams(
31 ui::NativeTheme::ExtraParams* params) const OVERRIDE;
32 29
33 // Update the style of the label according to the provided theme. 30 // Update the style of the label according to the provided theme.
34 void UpdateLabelStyle(); 31 void UpdateLabelStyle();
35 32
36 private: 33 private:
37 BrowserView* browser_view_; 34 BrowserView* browser_view_;
38 ui::ThemeProvider* theme_provider_; 35 ui::ThemeProvider* theme_provider_;
39 36
40 DISALLOW_COPY_AND_ASSIGN(AvatarLabel); 37 DISALLOW_COPY_AND_ASSIGN(AvatarLabel);
41 }; 38 };
42 39
43 #endif // CHROME_BROWSER_UI_VIEWS_AVATAR_LABEL_H_ 40 #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