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

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

Issue 2757603003: Add window open and close delegate methods to CWVUIDelegate. (Closed)
Patch Set: Created 3 years, 9 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 0e3a5b9724b58335774605069d31aaa8919d22e5..c068a81af0be9b9c2e1afefe97148b9b6fd6a27a 100644
--- a/ios/web_view/public/cwv_ui_delegate.h
+++ b/ios/web_view/public/cwv_ui_delegate.h
@@ -10,12 +10,24 @@
@class CWVHTMLElement;
@class CWVWebView;
+@class CWVWebViewConfiguration;
+@class CWVNavigationAction;
// UI delegate interface for a CWVWebView. Embedders can implement the
// functions in order to customize library behavior.
@protocol CWVUIDelegate<NSObject>
@optional
+// Instructs the delegate to create a new browsing window (f.e. in response to
+// window.open JavaScript call).
Eugene But (OOO till 7-30) 2017/03/16 17:09:03 Add to the comments: "Page will not open a window
michaeldo 2017/03/16 18:24:28 Done.
+- (CWVWebView*)webView:(CWVWebView*)webView
+ createWebViewWithConfiguration:(CWVWebViewConfiguration*)configuration
+ forNavigationAction:(CWVNavigationAction*)action;
+
+// Instructs the delegate to close |webView|. Called only for windows opened by
+// DOM.
+- (void)webViewDidClose:(CWVWebView*)webView;
+
// Instructs the delegate to present context menu in response to user’s long
// press gesture at |location| in |view| coordinate space. |element| is an HTML
// element which received the gesture.
« ios/web_view/public/cwv_navigation_action.h ('K') | « ios/web_view/public/cwv_navigation_action.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698