| 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..f36a157b810ca0c1ba7a2a8dec5bbf02e6f15193 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
|
| @@ -8,13 +8,20 @@
|
| #import <Foundation/Foundation.h>
|
|
|
| @protocol ContextMenuConsumer;
|
| +@class ContextMenuContextImpl;
|
|
|
| // 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;
|
| +// Populates |consumer| with alert items for actions appropriate for |context|.
|
| ++ (void)updateConsumer:(id<ContextMenuConsumer>)consumer
|
| + withContext:(ContextMenuContextImpl*)context;
|
| +
|
| +// A ContextMenuConsumer only requires configuration only once, then is
|
| +// immutable. As a result, there is no need to instantiate an object to manage
|
| +// ongoing consumer updates; use |+updateConsumer:withContext:| instead.
|
| +- (instancetype)init NS_UNAVAILABLE;
|
|
|
| @end
|
|
|
|
|