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

Unified Diff: ios/web_view/public/cwv_ui_delegate.h

Issue 2715343002: Add JavaScript prompts support to CWVUIDelegate. (Closed)
Patch Set: Respond to comments. Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: ios/web_view/public/cwv_ui_delegate.h
diff --git a/ios/web_view/public/cwv_ui_delegate.h b/ios/web_view/public/cwv_ui_delegate.h
index 6aa3cffd206c7f9aea652f16fe0e6d6e8e25a179..0e3a5b9724b58335774605069d31aaa8919d22e5 100644
--- a/ios/web_view/public/cwv_ui_delegate.h
+++ b/ios/web_view/public/cwv_ui_delegate.h
@@ -25,6 +25,29 @@
inView:(UIView*)view
userGestureLocation:(CGPoint)location;
+// Instructs the delegate to show UI in response to window.alert JavaScript
+// call.
+- (void)webView:(CWVWebView*)webView
+ runJavaScriptAlertPanelWithMessage:(NSString*)message
+ pageURL:(NSURL*)URL
+ completionHandler:(void (^)(void))completionHandler;
+
+// Instructs the delegate to show UI in response to window.confirm JavaScript
+// call.
+- (void)webView:(CWVWebView*)webView
+ runJavaScriptConfirmPanelWithMessage:(NSString*)message
+ pageURL:(NSURL*)URL
+ completionHandler:(void (^)(BOOL))completionHandler;
+
+// Instructs the delegate to show UI in response to window.prompt JavaScript
+// call.
+- (void)webView:(CWVWebView*)webView
+ runJavaScriptTextInputPanelWithPrompt:(NSString*)prompt
+ defaultText:(NSString*)defaultText
+ pageURL:(NSURL*)URL
+ completionHandler:
+ (void (^)(NSString*))completionHandler;
+
@end
#endif // IOS_WEB_VIEW_PUBLIC_CWV_UI_DELEGATE_H_
« no previous file with comments | « ios/web_view/internal/web_view_java_script_dialog_presenter.mm ('k') | ios/web_view/shell/shell_view_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698