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

Unified Diff: ui/views/controls/menu/menu_controller.h

Issue 10832360: Change to address default selection of menu item (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: type check Created 8 years, 4 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 | « ui/views/controls/menu/menu_config_views.cc ('k') | ui/views/controls/menu/menu_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/menu/menu_controller.h
diff --git a/ui/views/controls/menu/menu_controller.h b/ui/views/controls/menu/menu_controller.h
index 5d1c3d1aa0eea5fc5455dbeb2c43634f0e0847d0..27386afbc96a0287a0c03c679c8351e7efca3af4 100644
--- a/ui/views/controls/menu/menu_controller.h
+++ b/ui/views/controls/menu/menu_controller.h
@@ -86,6 +86,7 @@ class VIEWS_EXPORT MenuController
MenuItemView* root,
const gfx::Rect& bounds,
MenuItemView::AnchorPosition position,
+ bool context_menu,
int* mouse_event_flags);
// Whether or not Run blocks.
@@ -198,6 +199,9 @@ class VIEWS_EXPORT MenuController
// Bounds for the monitor we're showing on.
gfx::Rect monitor_bounds;
+
+ // Is the current menu a context menu.
+ bool context_menu;
};
// Used by GetMenuPart to indicate the menu part at a particular location.
@@ -268,7 +272,8 @@ class VIEWS_EXPORT MenuController
SendAcceleratorResultType SendAcceleratorToHotTrackedView();
void UpdateInitialLocation(const gfx::Rect& bounds,
- MenuItemView::AnchorPosition position);
+ MenuItemView::AnchorPosition position,
+ bool context_menu);
// Invoked when the user accepts the selected item. This is only used
// when blocking. This schedules the loop to quit.
« no previous file with comments | « ui/views/controls/menu/menu_config_views.cc ('k') | ui/views/controls/menu/menu_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698