| Index: ui/views/controls/menu/menu_delegate.h
|
| diff --git a/ui/views/controls/menu/menu_delegate.h b/ui/views/controls/menu/menu_delegate.h
|
| index 918e322580a03adff0c3f0c8cb64bbdedbe0b10e..5d2ae0d013c70316b3f16fba9861142dbfae335a 100644
|
| --- a/ui/views/controls/menu/menu_delegate.h
|
| +++ b/ui/views/controls/menu/menu_delegate.h
|
| @@ -112,6 +112,11 @@ class VIEWS_EXPORT MenuDelegate {
|
| // other than a mouse event.
|
| virtual void ExecuteCommand(int id, int mouse_event_flags);
|
|
|
| + // Returns true if ExecuteCommand() should be invoked while leaving the
|
| + // menu open. Default implementation returns true.
|
| + virtual bool ShouldExecuteCommandWithoutClosingMenu(int id,
|
| + const ui::Event& e);
|
| +
|
| // Returns true if the specified event is one the user can use to trigger, or
|
| // accept, the item. Defaults to left or right mouse buttons or tap.
|
| virtual bool IsTriggerableEvent(MenuItemView* view, const ui::Event& e);
|
|
|