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

Unified 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, 3 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 side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698