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

Side by Side Diff: ios/web/public/web_state/ui/crw_native_content.h

Issue 2278793003: [ios] Removed deprecated JS evaluation method from CRWNativeContent. (Closed)
Patch Set: Created 4 years, 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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_WEB_PUBLIC_WEB_STATE_UI_CRW_NATIVE_CONTENT_H_ 5 #ifndef IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_NATIVE_CONTENT_H_
6 #define IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_NATIVE_CONTENT_H_ 6 #define IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_NATIVE_CONTENT_H_
7 7
8 #import <UIKit/UIKit.h> 8 #import <UIKit/UIKit.h>
9 9
10 #import "ios/web/public/block_types.h" 10 #import "ios/web/public/block_types.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 49
50 // Notifies the CRWNativeContent that it has been hidden. 50 // Notifies the CRWNativeContent that it has been hidden.
51 - (void)wasHidden; 51 - (void)wasHidden;
52 52
53 // Executes JavaScript on the native view. |handler| is called with the results 53 // Executes JavaScript on the native view. |handler| is called with the results
54 // of the evaluation. If the native view cannot evaluate JS at the moment, 54 // of the evaluation. If the native view cannot evaluate JS at the moment,
55 // |handler| is called with an NSError. 55 // |handler| is called with an NSError.
56 - (void)executeJavaScript:(NSString*)script 56 - (void)executeJavaScript:(NSString*)script
57 completionHandler:(web::JavaScriptResultBlock)handler; 57 completionHandler:(web::JavaScriptResultBlock)handler;
58 58
59 // Evaluates JavaScript on the native view. |handler| is called with the results
60 // of the evaluation. If the native view cannot evaluate JS at the moment,
61 // |handler| is called with an NSError.
62 // DEPRECATED. TODO(crbug.com/595761): Remove this API.
63 - (void)evaluateJavaScript:(NSString*)script
64 stringResultHandler:(web::JavaScriptCompletion)handler;
65
66 // Returns |YES| if CRWNativeContent wants the keyboard shield when the keyboard 59 // Returns |YES| if CRWNativeContent wants the keyboard shield when the keyboard
67 // is up. 60 // is up.
68 - (BOOL)wantsKeyboardShield; 61 - (BOOL)wantsKeyboardShield;
69 62
70 // Returns |YES| if CRWNativeContent wants the hint text displayed. 63 // Returns |YES| if CRWNativeContent wants the hint text displayed.
71 // TODO(crbug.com/374984): Remove this. This is chrome level concept and should 64 // TODO(crbug.com/374984): Remove this. This is chrome level concept and should
72 // not exist in the web/ layer. 65 // not exist in the web/ layer.
73 - (BOOL)wantsLocationBarHintText; 66 - (BOOL)wantsLocationBarHintText;
74 67
75 // Dismisses on-screen keyboard if necessary. 68 // Dismisses on-screen keyboard if necessary.
(...skipping 21 matching lines...) Expand all
97 // CRWNativeContent delegate protocol. 90 // CRWNativeContent delegate protocol.
98 @protocol CRWNativeContentDelegate<NSObject> 91 @protocol CRWNativeContentDelegate<NSObject>
99 92
100 @optional 93 @optional
101 // Called when the content supplies a new title. 94 // Called when the content supplies a new title.
102 - (void)nativeContent:(id)content titleDidChange:(NSString*)title; 95 - (void)nativeContent:(id)content titleDidChange:(NSString*)title;
103 96
104 @end 97 @end
105 98
106 #endif // IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_NATIVE_CONTENT_H_ 99 #endif // IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_NATIVE_CONTENT_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698