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

Unified Diff: views/controls/menu/menu_controller.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/button/menu_button.cc ('k') | views/controls/menu/menu_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/menu/menu_controller.h
===================================================================
--- views/controls/menu/menu_controller.h (revision 29776)
+++ views/controls/menu/menu_controller.h (working copy)
@@ -22,6 +22,7 @@
namespace views {
class DropTargetEvent;
+class MenuButton;
class MenuHostRootView;
class MouseEvent;
class SubmenuView;
@@ -44,6 +45,7 @@
// block, the selected item is returned. If the menu does not block this
// returns NULL immediately.
MenuItemView* Run(gfx::NativeWindow parent,
+ MenuButton* button,
MenuItemView* root,
const gfx::Rect& bounds,
MenuItemView::AnchorPosition position,
@@ -182,10 +184,15 @@
~MenuController();
+ void UpdateInitialLocation(const gfx::Rect& bounds,
+ MenuItemView::AnchorPosition position);
+
// Invoked when the user accepts the selected item. This is only used
// when blocking. This schedules the loop to quit.
void Accept(MenuItemView* item, int mouse_event_flags);
+ bool ShowSiblingMenu(SubmenuView* source, const MouseEvent& e);
+
// Closes all menus, including any menus of nested invocations of Run.
void CloseAllNestedMenus();
@@ -330,7 +337,7 @@
MenuItemView* result_;
// The mouse event flags when the user clicked on a menu. Is 0 if the
- // user did not use the mousee to select the menu.
+ // user did not use the mouse to select the menu.
int result_mouse_event_flags_;
// If not empty, it means we're nested. When Run is invoked from within
@@ -376,6 +383,8 @@
// underway.
scoped_ptr<MenuScrollTask> scroll_task_;
+ MenuButton* menu_button_;
+
DISALLOW_COPY_AND_ASSIGN(MenuController);
};
« no previous file with comments | « views/controls/button/menu_button.cc ('k') | views/controls/menu/menu_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698