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

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

Issue 2862783002: [iOS Clean] Wired up ContextMenuCommands. (Closed)
Patch Set: 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..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

Powered by Google App Engine
This is Rietveld 408576698