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_WEB_CONTEXT_MENU_CONTEXT_MENU_COORDINATOR_H_ | 5 #ifndef IOS_CLEAN_CHROME_BROWSER_UI_WEB_CONTEXT_MENU_CONTEXT_MENU_COORDINATOR_H_ |
6 #define IOS_CLEAN_CHROME_BROWSER_UI_WEB_CONTEXT_MENU_CONTEXT_MENU_COORDINATOR_H_ | 6 #define IOS_CLEAN_CHROME_BROWSER_UI_WEB_CONTEXT_MENU_CONTEXT_MENU_COORDINATOR_H_ |
7 | 7 |
8 #import <Foundation/Foundation.h> | 8 #import <Foundation/Foundation.h> |
9 | 9 |
10 #import "ios/shared/chrome/browser/ui/coordinators/browser_coordinator.h" | 10 #import "ios/shared/chrome/browser/ui/coordinators/browser_coordinator.h" |
11 | 11 |
| 12 @class ContextMenuContextImpl; |
| 13 |
12 // A coordinator for a UI element that displays the web view associated with | 14 // A coordinator for a UI element that displays the web view associated with |
13 // |webState|. | 15 // |webState|. |
14 // HACK: Named WebContentMenuCoordinator to avoid collision with the | 16 // HACK: Named WebContentMenuCoordinator to avoid collision with the |
15 // old architecture ContextMenuCoordinator class. | 17 // old architecture ContextMenuCoordinator class. |
16 @interface WebContextMenuCoordinator : BrowserCoordinator | 18 @interface WebContextMenuCoordinator : BrowserCoordinator |
| 19 |
| 20 // Initializer that takes the parameters used to specify which context menu |
| 21 // options to display. |
| 22 - (instancetype)initWithContext:(ContextMenuContextImpl*)context |
| 23 NS_DESIGNATED_INITIALIZER; |
| 24 - (instancetype)init NS_UNAVAILABLE; |
| 25 |
17 @end | 26 @end |
18 | 27 |
19 #endif // IOS_CLEAN_CHROME_BROWSER_UI_WEB_CONTEXT_MENU_CONTEXT_MENU_COORDINATOR
_H_ | 28 #endif // IOS_CLEAN_CHROME_BROWSER_UI_WEB_CONTEXT_MENU_CONTEXT_MENU_COORDINATOR
_H_ |
OLD | NEW |