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

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

Issue 2281803002: [ios] Removed deprecated JS execution API. (Closed)
Patch Set: Merged with master 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
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_WEB_STATE_UI_CRW_WEB_CONTROLLER_H_ 5 #ifndef IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_H_
6 #define IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_H_ 6 #define IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_H_
7 7
8 #import <UIKit/UIKit.h> 8 #import <UIKit/UIKit.h>
9 9
10 #import "ios/web/net/crw_request_tracker_delegate.h" 10 #import "ios/web/net/crw_request_tracker_delegate.h"
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 - (void)goForward; 200 - (void)goForward;
201 // Navigate forwards or backwards by |delta| pages. 201 // Navigate forwards or backwards by |delta| pages.
202 - (void)goDelta:(int)delta; 202 - (void)goDelta:(int)delta;
203 // Perform necessary setup in order to navigate backwards. 203 // Perform necessary setup in order to navigate backwards.
204 // TODO(rohitrao): Remove this from the public API. 204 // TODO(rohitrao): Remove this from the public API.
205 - (void)prepareForGoBack; 205 - (void)prepareForGoBack;
206 206
207 // Executes |script| in the web view, registering user interaction. 207 // Executes |script| in the web view, registering user interaction.
208 - (void)executeUserJavaScript:(NSString*)script 208 - (void)executeUserJavaScript:(NSString*)script
209 completionHandler:(web::JavaScriptResultBlock)completion; 209 completionHandler:(web::JavaScriptResultBlock)completion;
210 // Evaluates the user-entered |script| in the web view.
211 // DEPRECATED. TODO(crbug.com/595761): Remove this API.
212 - (void)evaluateUserJavaScript:(NSString*)script;
213 210
214 // Dismisses the soft keyboard. 211 // Dismisses the soft keyboard.
215 - (void)dismissKeyboard; 212 - (void)dismissKeyboard;
216 213
217 // Requires that the next load rebuild the UIWebView. This is expensive, and 214 // Requires that the next load rebuild the UIWebView. This is expensive, and
218 // should be used only in the case where something has changed that UIWebView 215 // should be used only in the case where something has changed that UIWebView
219 // only checks on creation, such that the whole object needs to be rebuilt. 216 // only checks on creation, such that the whole object needs to be rebuilt.
220 // TODO(stuartmorgan): Merge this and reinitializeWebViewAndReload:. They are 217 // TODO(stuartmorgan): Merge this and reinitializeWebViewAndReload:. They are
221 // currently subtly different in terms of implementation, but are for 218 // currently subtly different in terms of implementation, but are for
222 // fundamentally the same purpose. 219 // fundamentally the same purpose.
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 320
324 // Acts on a single message from the JS object, parsed from JSON into a 321 // Acts on a single message from the JS object, parsed from JSON into a
325 // DictionaryValue. Returns NO if the format for the message was invalid. 322 // DictionaryValue. Returns NO if the format for the message was invalid.
326 - (BOOL)respondToMessage:(base::DictionaryValue*)crwMessage 323 - (BOOL)respondToMessage:(base::DictionaryValue*)crwMessage
327 userIsInteracting:(BOOL)userIsInteracting 324 userIsInteracting:(BOOL)userIsInteracting
328 originURL:(const GURL&)originURL; 325 originURL:(const GURL&)originURL;
329 326
330 @end 327 @end
331 328
332 #endif // IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_H_ 329 #endif // IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ios/web/web_state/js/crw_js_injection_receiver.mm ('k') | ios/web/web_state/ui/crw_web_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698