OLD | NEW |
---|---|
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 | 11 |
12 namespace web { | |
13 struct ContextMenuParams; | |
14 } | |
15 | |
12 // A mediator object that provides configuration information for a context | 16 // A mediator object that provides configuration information for a context |
13 // menu. | 17 // menu. |
14 @interface ContextMenuMediator : NSObject | 18 @interface ContextMenuMediator : NSObject |
15 | 19 |
16 // Creates a new mediator with the non-nil consumer |consumer|. | 20 // Creates a new mediator with the non-nil consumer |consumer|. |consumer|'s |
17 - (instancetype)initWithConsumer:(id<ContextMenuConsumer>)consumer; | 21 // 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.
| |
22 // is YES if this context menu is being triggered for an Incognito browser. | |
23 - (instancetype)initWithConsumer:(id<ContextMenuConsumer>)consumer | |
24 contextMenuParams:(const web::ContextMenuParams&)params | |
25 isIncognito:(BOOL)isIncognito NS_DESIGNATED_INITIALIZER; | |
26 - (instancetype)init NS_UNAVAILABLE; | |
18 | 27 |
19 @end | 28 @end |
20 | 29 |
21 #endif // IOS_CLEAN_CHROME_BROWSER_UI_CONTEXT_MENU_CONTEXT_MENU_MEDIATOR_H_ | 30 #endif // IOS_CLEAN_CHROME_BROWSER_UI_CONTEXT_MENU_CONTEXT_MENU_MEDIATOR_H_ |
OLD | NEW |