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

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

Issue 24647003: Redesign of the avatar menu button. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: better fix for app/popup browser crash Created 7 years, 2 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_VIEWS_NEW_AVATAR_BUTTON_H_
6 #define CHROME_BROWSER_UI_VIEWS_NEW_AVATAR_BUTTON_H_
7
8 #include "ui/views/controls/button/menu_button.h"
9
10 // Avatar button that displays the active profile's name in the caption area.
11 class NewAvatarButton : public views::MenuButton {
12 public:
13 // Different button styles that can be applied.
14 enum AvatarButtonStyle {
15 THEMED_BUTTON, // Used in a themed browser window.
16 GLASS_BUTTON, // Used in a native aero window.
17 METRO_BUTTON // Used in a metro window.
18 };
19
20 NewAvatarButton(views::ButtonListener* listener,
21 const string16& profile_name,
22 AvatarButtonStyle button_style);
23 virtual ~NewAvatarButton();
24
25 // views::View:
26 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
27
28 private:
29 friend class NewAvatarMenuButtonTest;
30 FRIEND_TEST_ALL_PREFIXES(NewAvatarMenuButtonTest, SignOut);
31
32 DISALLOW_COPY_AND_ASSIGN(NewAvatarButton);
33 };
34
35 #endif // CHROME_BROWSER_UI_VIEWS_NEW_AVATAR_BUTTON_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698