Chromium Code Reviews| Index: chrome/browser/ui/views/new_avatar_button.h |
| diff --git a/chrome/browser/ui/views/new_avatar_button.h b/chrome/browser/ui/views/new_avatar_button.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..07ffcb11ad308ea4b29a39bdc6110a9c4a828c22 |
| --- /dev/null |
| +++ b/chrome/browser/ui/views/new_avatar_button.h |
| @@ -0,0 +1,39 @@ |
| +// Copyright 2013 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROME_BROWSER_UI_VIEWS_NEW_AVATAR_BUTTON_H_ |
| +#define CHROME_BROWSER_UI_VIEWS_NEW_AVATAR_BUTTON_H_ |
| + |
| +#include "base/compiler_specific.h" |
| +#include "ui/views/controls/button/menu_button.h" |
| +#include "ui/views/controls/button/text_button.h" |
| + |
| +class BrowserView; |
| + |
| +namespace ui { |
| +class MouseEvent; |
| +class ThemeProvider; |
| +} |
| + |
| +// Avatar button that displays the active profile's name in the caption area. |
| +class NewAvatarButton : public views::MenuButton { |
| + public: |
| + NewAvatarButton(BrowserView* browser_view, const string16& profile_name); |
| + virtual ~NewAvatarButton(); |
| + |
| + // views::TextButton: |
| + virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; |
| + |
| + // views::View: |
| + virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
| + |
| + void ShowAvatarBubble(); |
|
sky
2013/09/26 20:21:39
Description?
noms (inactive)
2013/10/01 17:42:21
Done.
|
| + |
| + private: |
| + BrowserView* browser_view_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(NewAvatarButton); |
| +}; |
| + |
| +#endif // CHROME_BROWSER_UI_VIEWS_NEW_AVATAR_BUTTON_H_ |