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

Unified Diff: ui/views/controls/button/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/toolbar_view.cc ('k') | ui/views/controls/button/menu_button.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/button/menu_button.h
diff --git a/ui/views/controls/button/menu_button.h b/ui/views/controls/button/menu_button.h
index 35702fe18f57e621ac9d75c7fb69e33a3188d03a..d37044bdbb062d59b4cfa2eff3161ab1cc9c6505 100644
--- a/ui/views/controls/button/menu_button.h
+++ b/ui/views/controls/button/menu_button.h
@@ -17,7 +17,7 @@
namespace views {
class MouseEvent;
-class MenuButtonDelegate;
+class MenuButtonListener;
////////////////////////////////////////////////////////////////////////////////
@@ -34,7 +34,7 @@ class VIEWS_EXPORT MenuButton : public TextButton {
// Create a Button.
MenuButton(ButtonListener* listener,
const string16& text,
- MenuButtonDelegate* menu_delegate,
+ MenuButtonListener* menu_button_listener,
bool show_menu_marker);
virtual ~MenuButton();
@@ -83,8 +83,8 @@ class VIEWS_EXPORT MenuButton : public TextButton {
// the button is not part of the displayed menu.
base::Time menu_closed_time_;
- // The associated menu's resource identifier.
- MenuButtonDelegate* menu_delegate_;
+ // Our listener. Not owned.
+ MenuButtonListener* listener_;
// Whether or not we're showing a drop marker.
bool show_menu_marker_;
« no previous file with comments | « chrome/browser/ui/views/toolbar_view.cc ('k') | ui/views/controls/button/menu_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698