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

Side by Side Diff: ios/web/web_state/ui/crw_context_menu_controller.h

Issue 2627093003: Reuse context menu in StaticHTMLViewController (Closed)
Patch Set: cleaning Created 3 years, 11 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef IOS_WEB_WEB_STATE_UI_CRW_CONTEXT_MENU_CONTROLLER_H_
6 #define IOS_WEB_WEB_STATE_UI_CRW_CONTEXT_MENU_CONTROLLER_H_
7
8 #import <UIKit/UIKit.h>
Eugene But (OOO till 7-30) 2017/01/13 16:19:41 nit: there is nothing from UIKit in this header, i
Olivier 2017/01/13 18:08:58 I thought WKWebView needed it. Done.
9 #import <Webkit/Webkit.h>
10
11 #import "ios/web/public/block_types.h"
12
13 @protocol CRWContextMenuDelegate;
14
15 @protocol CRWContextMenuJavaScriptDelegate
16 - (void)executeJavaScript:(NSString*)script
17 completionHandler:(web::JavaScriptResultBlock)completionHandler;
18 @end
19
20 @interface CRWContextMenuController : NSObject
Eugene But (OOO till 7-30) 2017/01/13 16:19:41 Per Style Guide please add comments to this class
Olivier 2017/01/13 18:08:58 Done.
21
22 - (instancetype)initWithWebView:(WKWebView*)webView
23 javaScriptDelegate:
24 (id<CRWContextMenuJavaScriptDelegate>)javaScriptDelegate
Eugene But (OOO till 7-30) 2017/01/13 16:19:41 You can use CRWJSInjectionEvaluator protocol here,
Olivier 2017/01/13 18:08:58 Done.
25 delegate:(id<CRWContextMenuDelegate>)delegate
26 NS_DESIGNATED_INITIALIZER;
27
28 - (instancetype)init NS_UNAVAILABLE;
29
30 @end
31
32 #endif // IOS_WEB_WEB_STATE_UI_CRW_CONTEXT_MENU_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698