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

Unified Diff: chrome/browser/ui/views/avatar_menu_button.h

Issue 9693022: views: Rename MenuButtonDelegate::RunMenu to something more obvious. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: menu_button_listener.h Created 8 years, 9 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
« no previous file with comments | « chrome/browser/ui/views/app_menu_button_win.cc ('k') | chrome/browser/ui/views/avatar_menu_button.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/avatar_menu_button.h
diff --git a/chrome/browser/ui/views/avatar_menu_button.h b/chrome/browser/ui/views/avatar_menu_button.h
index 0e63f25c9631d493ef70ad44a5de9e62f13024b0..6edc79a607192b0c1ae861bd39f3c999359f19c4 100644
--- a/chrome/browser/ui/views/avatar_menu_button.h
+++ b/chrome/browser/ui/views/avatar_menu_button.h
@@ -11,7 +11,7 @@
#include "base/compiler_specific.h"
#include "ui/base/models/simple_menu_model.h"
#include "ui/views/controls/button/menu_button.h"
-#include "ui/views/controls/button/menu_button_delegate.h"
+#include "ui/views/controls/button/menu_button_listener.h"
namespace gfx {
class Canvas;
@@ -30,7 +30,7 @@ void DrawTaskBarDecoration(gfx::NativeWindow window, const gfx::Image* image);
// The button can optionally have a menu attached to it.
class AvatarMenuButton : public views::MenuButton,
- public views::MenuButtonDelegate {
+ public views::MenuButtonListener {
public:
// Creates a new button. If |has_menu| is true then clicking on the button
// will cause the profile menu to be displayed.
@@ -38,18 +38,19 @@ class AvatarMenuButton : public views::MenuButton,
virtual ~AvatarMenuButton();
- // views::MenuButton
+ // views::MenuButton:
virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
virtual bool HitTest(const gfx::Point& point) const OVERRIDE;
virtual void SetAvatarIcon(const gfx::Image& icon,
- bool is_gaia_picture);
+ bool is_gaia_picture);
void ShowAvatarBubble();
private:
- // views::MenuButtonDelegate
- virtual void RunMenu(views::View* source, const gfx::Point& pt) OVERRIDE;
+ // views::MenuButtonListener:
+ virtual void OnMenuButtonClicked(views::View* source,
+ const gfx::Point& point) OVERRIDE;
Browser* browser_;
bool has_menu_;
« no previous file with comments | « chrome/browser/ui/views/app_menu_button_win.cc ('k') | chrome/browser/ui/views/avatar_menu_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698