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_VIEW_CONTROLLER_H_ | 5 #ifndef IOS_CLEAN_CHROME_BROWSER_UI_CONTEXT_MENU_CONTEXT_MENU_VIEW_CONTROLLER_H_ |
6 #define IOS_CLEAN_CHROME_BROWSER_UI_CONTEXT_MENU_CONTEXT_MENU_VIEW_CONTROLLER_H_ | 6 #define IOS_CLEAN_CHROME_BROWSER_UI_CONTEXT_MENU_CONTEXT_MENU_VIEW_CONTROLLER_H_ |
7 | 7 |
8 #import <UIKit/UIKit.h> | 8 #import <UIKit/UIKit.h> |
9 | 9 |
10 #import "ios/clean/chrome/browser/ui/context_menu/context_menu_consumer.h" | 10 #import "ios/clean/chrome/browser/ui/context_menu/context_menu_consumer.h" |
11 | 11 |
12 @protocol ContextMenuCommands; | |
13 @class ContextMenuContext; | |
14 | |
12 // A view controller that displays a context menu. | 15 // A view controller that displays a context menu. |
13 @interface ContextMenuViewController : UIAlertController<ContextMenuConsumer> | 16 @interface ContextMenuViewController : UIAlertController<ContextMenuConsumer> |
14 | 17 |
15 // Create an instance of this class with the dispatcher |dispatcher|. | 18 // Designated initializer that uses |dispatcher| to communicate commands. |
edchin
2017/05/25 21:41:53
Should this be labeled with NS_DESIGNATED_INITIALI
kkhorimoto
2017/05/26 23:20:09
The only way to set the UIAlertController's |prefe
| |
16 // | 19 - (instancetype)initWithDispatcher:(id<ContextMenuCommands>)dispatcher; |
17 // PLACEHOLDER: Once commands are defined, define a protocol for the dispatcher. | |
18 - (instancetype)initWithDispatcher:(id)dispatcher; | |
19 | 20 |
20 @end | 21 @end |
21 | 22 |
22 #endif // IOS_CLEAN_CHROME_BROWSER_UI_CONTEXT_MENU_CONTEXT_MENU_VIEW_CONTROLLER _H_ | 23 #endif // IOS_CLEAN_CHROME_BROWSER_UI_CONTEXT_MENU_CONTEXT_MENU_VIEW_CONTROLLER _H_ |
OLD | NEW |