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. |