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

Unified Diff: views/controls/menu/menu_delegate.h

Issue 328012: Makes it so that when a folder is open on the bookmark bar and the... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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 | « views/controls/menu/menu_controller.cc ('k') | views/controls/menu/menu_host_gtk.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/menu/menu_delegate.h
===================================================================
--- views/controls/menu/menu_delegate.h (revision 29776)
+++ views/controls/menu/menu_delegate.h (working copy)
@@ -12,12 +12,13 @@
#include "app/os_exchange_data.h"
#include "base/logging.h"
#include "views/controls/menu/controller.h"
+#include "views/controls/menu/menu_item_view.h"
#include "views/event.h"
namespace views {
class DropTargetEvent;
-class MenuItemView;
+class MenuButton;
// MenuDelegate --------------------------------------------------------------
@@ -180,6 +181,19 @@
// Notification that the user has highlighted the specified item.
virtual void SelectionChanged(MenuItemView* menu) {
}
+
+ // If the user drags the mouse outside the bounds of the menu the delegate
+ // is queried for a sibling menu to show. If this returns non-null the
+ // current menu is hidden, and the menu returned from this method is shown.
+ //
+ // The delegate owns the returned menu, not the controller.
+ virtual MenuItemView* GetSiblingMenu(MenuItemView* menu,
+ const gfx::Point& screen_point,
+ MenuItemView::AnchorPosition* anchor,
+ bool* has_mnemonics,
+ MenuButton** button) {
+ return NULL;
+ }
};
} // namespace views
« no previous file with comments | « views/controls/menu/menu_controller.cc ('k') | views/controls/menu/menu_host_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698