| Index: ui/views/controls/menu/menu_model_adapter.h
|
| diff --git a/ui/views/controls/menu/menu_model_adapter.h b/ui/views/controls/menu/menu_model_adapter.h
|
| index 9c3e84e72dcd17756107cf4cf9594664eee8849b..5e2dd88e346b014bbc7d293cbc6fec71b872c51e 100644
|
| --- a/ui/views/controls/menu/menu_model_adapter.h
|
| +++ b/ui/views/controls/menu/menu_model_adapter.h
|
| @@ -39,6 +39,10 @@ class VIEWS_EXPORT MenuModelAdapter : public MenuDelegate {
|
| int triggerable_event_flags() const { return triggerable_event_flags_; }
|
|
|
| protected:
|
| + // Subclasses override this to allow custom items to be added to the menu.
|
| + // The caller takes ownership of the returned MenuItemView.
|
| + virtual MenuItemView* CreateCustomItem(MenuItemView* parent, int id);
|
| +
|
| // views::MenuDelegate implementation.
|
| virtual void ExecuteCommand(int id) OVERRIDE;
|
| virtual void ExecuteCommand(int id, int mouse_event_flags) OVERRIDE;
|
|
|