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

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

Issue 2862783002: [iOS Clean] Wired up ContextMenuCommands. (Closed)
Patch Set: cleanup 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..6180d694b574d221a742a542a1a56b5775448785 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,18 @@
#import <Foundation/Foundation.h>
@protocol ContextMenuConsumer;
+@class ContextMenuContextImpl;
// A mediator object that provides configuration information for a context
// menu.
@interface ContextMenuMediator : NSObject
edchin 2017/05/25 21:41:53 Note: this is the only mediator that I know of tha
kkhorimoto 2017/05/26 23:20:09 The mediator's main purpose is to act as the middl
-// 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|. |context| is
+// used to supply the consumer with its title and ContextMenuItems.
+- (instancetype)initWithConsumer:(id<ContextMenuConsumer>)consumer
+ context:(ContextMenuContextImpl*)context
+ NS_DESIGNATED_INITIALIZER;
+- (instancetype)init NS_UNAVAILABLE;
@end

Powered by Google App Engine
This is Rietveld 408576698