Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(221)

Unified Diff: ios/clean/chrome/browser/ui/context_menu/context_menu_mediator.h

Issue 2862783002: [iOS Clean] Wired up ContextMenuCommands. (Closed)
Patch Set: fix deps Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698