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

Side by Side Diff: chrome/browser/ui/views/bookmarks/bookmark_menu_controller_views.h

Issue 2790773002: Cleanup MenuRunner API (Closed)
Patch Set: Rebase Created 3 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_MENU_CONTROLLER_VIEWS_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_MENU_CONTROLLER_VIEWS_H_
6 #define CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_MENU_CONTROLLER_VIEWS_H_ 6 #define CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_MENU_CONTROLLER_VIEWS_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 DropPosition position, 99 DropPosition position,
100 const ui::DropTargetEvent& event) override; 100 const ui::DropTargetEvent& event) override;
101 bool ShowContextMenu(views::MenuItemView* source, 101 bool ShowContextMenu(views::MenuItemView* source,
102 int id, 102 int id,
103 const gfx::Point& p, 103 const gfx::Point& p,
104 ui::MenuSourceType source_type) override; 104 ui::MenuSourceType source_type) override;
105 bool CanDrag(views::MenuItemView* menu) override; 105 bool CanDrag(views::MenuItemView* menu) override;
106 void WriteDragData(views::MenuItemView* sender, 106 void WriteDragData(views::MenuItemView* sender,
107 ui::OSExchangeData* data) override; 107 ui::OSExchangeData* data) override;
108 int GetDragOperations(views::MenuItemView* sender) override; 108 int GetDragOperations(views::MenuItemView* sender) override;
109 void OnMenuClosed(views::MenuItemView* menu, 109 void OnMenuClosed(views::MenuItemView* menu) override;
110 views::MenuRunner::RunResult result) override;
111 views::MenuItemView* GetSiblingMenu(views::MenuItemView* menu, 110 views::MenuItemView* GetSiblingMenu(views::MenuItemView* menu,
112 const gfx::Point& screen_point, 111 const gfx::Point& screen_point,
113 views::MenuAnchorPosition* anchor, 112 views::MenuAnchorPosition* anchor,
114 bool* has_mnemonics, 113 bool* has_mnemonics,
115 views::MenuButton** button) override; 114 views::MenuButton** button) override;
116 int GetMaxWidthForMenu(views::MenuItemView* view) override; 115 int GetMaxWidthForMenu(views::MenuItemView* view) override;
117 void WillShowMenu(views::MenuItemView* menu) override; 116 void WillShowMenu(views::MenuItemView* menu) override;
118 117
119 // bookmarks::BaseBookmarkModelObserver: 118 // bookmarks::BaseBookmarkModelObserver:
120 void BookmarkModelChanged() override; 119 void BookmarkModelChanged() override;
(...skipping 20 matching lines...) Expand all
141 140
142 // The bookmark bar. This is only non-null if we're showing a menu item for a 141 // The bookmark bar. This is only non-null if we're showing a menu item for a
143 // folder on the bookmark bar and not for drop, or if the BookmarkBarView has 142 // folder on the bookmark bar and not for drop, or if the BookmarkBarView has
144 // been destroyed before the menu. 143 // been destroyed before the menu.
145 BookmarkBarView* bookmark_bar_; 144 BookmarkBarView* bookmark_bar_;
146 145
147 DISALLOW_COPY_AND_ASSIGN(BookmarkMenuController); 146 DISALLOW_COPY_AND_ASSIGN(BookmarkMenuController);
148 }; 147 };
149 148
150 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_MENU_CONTROLLER_VIEWS_H_ 149 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_MENU_CONTROLLER_VIEWS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698