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

Unified Diff: chrome/browser/ui/views/notifications/balloon_view.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
Index: chrome/browser/ui/views/notifications/balloon_view.h
diff --git a/chrome/browser/ui/views/notifications/balloon_view.h b/chrome/browser/ui/views/notifications/balloon_view.h
index 58f5629ce7eca8b0842932decfd22809652d0948..781d69c4f8ffcd6b0087d0ff5fa894fdff8d348e 100644
--- a/chrome/browser/ui/views/notifications/balloon_view.h
+++ b/chrome/browser/ui/views/notifications/balloon_view.h
@@ -20,7 +20,7 @@
#include "ui/gfx/rect.h"
#include "ui/gfx/size.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"
#include "ui/views/controls/label.h"
#include "ui/views/view.h"
#include "ui/views/widget/widget_delegate.h"
@@ -41,7 +41,7 @@ class MenuRunner;
// A balloon view is the UI component for a desktop notification toasts.
// It draws a border, and within the border an HTML renderer.
class BalloonViewImpl : public BalloonView,
- public views::MenuButtonDelegate,
+ public views::MenuButtonListener,
public views::WidgetDelegateView,
public views::ButtonListener,
public content::NotificationObserver,
@@ -66,8 +66,9 @@ class BalloonViewImpl : public BalloonView,
virtual void OnBoundsChanged(const gfx::Rect& previous_bounds) OVERRIDE;
virtual gfx::Size GetPreferredSize() OVERRIDE;
- // views::MenuButtonDelegate interface.
- virtual void RunMenu(views::View* source, const gfx::Point& pt) OVERRIDE;
+ // views::MenuButtonListener interface.
+ virtual void OnMenuButtonClicked(views::View* source,
+ const gfx::Point& point) OVERRIDE;
// views::WidgetDelegate interface.
virtual void OnDisplayChanged() OVERRIDE;
« no previous file with comments | « chrome/browser/ui/views/menu_model_adapter_test.cc ('k') | chrome/browser/ui/views/notifications/balloon_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698