Chromium Code Reviews| Index: ios/clean/chrome/browser/ui/context_menu/context_menu_mediator.h |
| diff --git a/ios/clean/chrome/browser/ui/context_menu/context_menu_mediator.h b/ios/clean/chrome/browser/ui/context_menu/context_menu_mediator.h |
| index 3639b336280a1d5f1126c18b27e4c569dafa7ef3..a9cb66c1d60c7f8c5f8868287f55744f93190b44 100644 |
| --- a/ios/clean/chrome/browser/ui/context_menu/context_menu_mediator.h |
| +++ b/ios/clean/chrome/browser/ui/context_menu/context_menu_mediator.h |
| @@ -9,12 +9,21 @@ |
| @protocol ContextMenuConsumer; |
| +namespace web { |
| +struct ContextMenuParams; |
| +} |
| + |
| // A mediator object that provides configuration information for a context |
| // menu. |
| @interface ContextMenuMediator : NSObject |
| -// Creates a new mediator with the non-nil consumer |consumer|. |
| -- (instancetype)initWithConsumer:(id<ContextMenuConsumer>)consumer; |
| +// Creates a new mediator with the non-nil consumer |consumer|. |consumer|'s |
| +// title and context menu items will be populated from |params|. |isIncognito| |
|
marq (ping after 24h)
2017/05/04 09:41:28
Let's hold off on incognito support for now. The
kkhorimoto
2017/05/05 05:17:54
Done.
|
| +// is YES if this context menu is being triggered for an Incognito browser. |
| +- (instancetype)initWithConsumer:(id<ContextMenuConsumer>)consumer |
| + contextMenuParams:(const web::ContextMenuParams&)params |
| + isIncognito:(BOOL)isIncognito NS_DESIGNATED_INITIALIZER; |
| +- (instancetype)init NS_UNAVAILABLE; |
| @end |