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

Unified Diff: chrome/browser/ui/views/bookmarks/bookmark_bar_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/bookmarks/bookmark_bar_view.h
diff --git a/chrome/browser/ui/views/bookmarks/bookmark_bar_view.h b/chrome/browser/ui/views/bookmarks/bookmark_bar_view.h
index 4dc81bbd904afb01a1b8f8542a5e0d6348a2fa13..1721b61a25d3f9fdbd918b6b7f32917b82380877 100644
--- a/chrome/browser/ui/views/bookmarks/bookmark_bar_view.h
+++ b/chrome/browser/ui/views/bookmarks/bookmark_bar_view.h
@@ -24,7 +24,7 @@
#include "ui/base/animation/animation_delegate.h"
#include "ui/views/context_menu_controller.h"
#include "ui/views/controls/button/button.h"
-#include "ui/views/controls/button/menu_button_delegate.h"
+#include "ui/views/controls/button/menu_button_listener.h"
#include "ui/views/drag_controller.h"
class BookmarkContextMenu;
@@ -54,7 +54,7 @@ class TextButton;
// creating the BookmarkModel.
class BookmarkBarView : public DetachableToolbarView,
public BookmarkModelObserver,
- public views::MenuButtonDelegate,
+ public views::MenuButtonListener,
public views::ButtonListener,
public content::NotificationObserver,
public views::ContextMenuController,
@@ -214,7 +214,7 @@ class BookmarkBarView : public DetachableToolbarView,
virtual void BookmarkNodeFaviconChanged(BookmarkModel* model,
const BookmarkNode* node) OVERRIDE;
- // DragController:
+ // views::DragController:
virtual void WriteDragDataForView(views::View* sender,
const gfx::Point& press_pt,
ui::OSExchangeData* data) OVERRIDE;
@@ -224,18 +224,19 @@ class BookmarkBarView : public DetachableToolbarView,
const gfx::Point& press_pt,
const gfx::Point& p) OVERRIDE;
- // MenuButtonDelegate:
- virtual void RunMenu(views::View* view, const gfx::Point& pt) OVERRIDE;
+ // views::MenuButtonListener:
+ virtual void OnMenuButtonClicked(views::View* view,
+ const gfx::Point& point) OVERRIDE;
- // ButtonListener:
+ // views::ButtonListener:
virtual void ButtonPressed(views::Button* sender,
const views::Event& event) OVERRIDE;
- // ContextMenuController
+ // views::ContextMenuController:
virtual void ShowContextMenuForView(views::View* source,
const gfx::Point& point) OVERRIDE;
- // NotificationService:
+ // content::NotificationObserver::
virtual void Observe(int type,
const content::NotificationSource& source,
const content::NotificationDetails& details) OVERRIDE;
« no previous file with comments | « chrome/browser/ui/views/avatar_menu_button.cc ('k') | chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698