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

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: fix RTL button 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 "base/compiler_specific.h"
9 #include "ui/views/controls/button/menu_button.h"
10 #include "ui/views/controls/button/text_button.h"
11
12 class BrowserView;
13
14 namespace ui {
15 class MouseEvent;
16 class ThemeProvider;
17 }
18
19 // Avatar button that displays the active profile's name in the caption area.
20 class NewAvatarButton : public views::MenuButton {
21 public:
22 NewAvatarButton(BrowserView* browser_view, const string16& profile_name);
23 virtual ~NewAvatarButton();
24
25 // views::TextButton:
26 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE;
27
28 // views::View:
29 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
30
31 void ShowAvatarBubble();
sky 2013/09/26 20:21:39 Description?
noms (inactive) 2013/10/01 17:42:21 Done.
32
33 private:
34 BrowserView* browser_view_;
35
36 DISALLOW_COPY_AND_ASSIGN(NewAvatarButton);
37 };
38
39 #endif // CHROME_BROWSER_UI_VIEWS_NEW_AVATAR_BUTTON_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698