OLD | NEW |
(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_ |
OLD | NEW |