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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef IOS_CLEAN_CHROME_BROWSER_UI_CONTEXT_MENU_CONTEXT_MENU_MEDIATOR_H_ 5 #ifndef IOS_CLEAN_CHROME_BROWSER_UI_CONTEXT_MENU_CONTEXT_MENU_MEDIATOR_H_
6 #define IOS_CLEAN_CHROME_BROWSER_UI_CONTEXT_MENU_CONTEXT_MENU_MEDIATOR_H_ 6 #define IOS_CLEAN_CHROME_BROWSER_UI_CONTEXT_MENU_CONTEXT_MENU_MEDIATOR_H_
7 7
8 #import <Foundation/Foundation.h> 8 #import <Foundation/Foundation.h>
9 9
10 @protocol ContextMenuConsumer; 10 @protocol ContextMenuConsumer;
11 @class ContextMenuContextImpl;
11 12
12 // A mediator object that provides configuration information for a context 13 // A mediator object that provides configuration information for a context
13 // menu. 14 // menu.
14 @interface ContextMenuMediator : NSObject 15 @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
15 16
16 // Creates a new mediator with the non-nil consumer |consumer|. 17 // Creates a new mediator with the non-nil consumer |consumer|. |context| is
17 - (instancetype)initWithConsumer:(id<ContextMenuConsumer>)consumer; 18 // used to supply the consumer with its title and ContextMenuItems.
19 - (instancetype)initWithConsumer:(id<ContextMenuConsumer>)consumer
20 context:(ContextMenuContextImpl*)context
21 NS_DESIGNATED_INITIALIZER;
22 - (instancetype)init NS_UNAVAILABLE;
18 23
19 @end 24 @end
20 25
21 #endif // IOS_CLEAN_CHROME_BROWSER_UI_CONTEXT_MENU_CONTEXT_MENU_MEDIATOR_H_ 26 #endif // IOS_CLEAN_CHROME_BROWSER_UI_CONTEXT_MENU_CONTEXT_MENU_MEDIATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698