Index: views/controls/menu/menu_delegate.h |
diff --git a/views/controls/menu/menu_delegate.h b/views/controls/menu/menu_delegate.h |
index 2ad1febe7e7a9b3f1d049168d858cf5f94b98609..a06b4a01fc367a9a5d478e4242b3fcda33573340 100644 |
--- a/views/controls/menu/menu_delegate.h |
+++ b/views/controls/menu/menu_delegate.h |
@@ -55,6 +55,12 @@ class MenuDelegate : Controller { |
return std::wstring(); |
} |
+ // If there is an accelerator for the menu item with id |id| it is set in |
+ // |accelerator| and true is returned. |
+ virtual bool GetAccelerator(int id, Accelerator* accelerator) { |
+ return false; |
+ } |
+ |
// Shows the context menu with the specified id. This is invoked when the |
// user does the appropriate gesture to show a context menu. The id |
// identifies the id of the menu to show the context menu for. |