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

Unified Diff: ios/web/public/web_state/web_state_delegate_bridge.h

Issue 2614023006: [ios] Removed -[CRWWebDelegate openURLWithParams:]. (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ios/web/public/web_state/web_state_delegate.h ('k') | ios/web/web_state/web_state_delegate.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/public/web_state/web_state_delegate_bridge.h
diff --git a/ios/web/public/web_state/web_state_delegate_bridge.h b/ios/web/public/web_state/web_state_delegate_bridge.h
index 3826edfb6d7914d5c296812a6bb3a18c6f33c44c..8378da6bc09de6246220e446fb48f8ce2e8d2fcf 100644
--- a/ios/web/public/web_state/web_state_delegate_bridge.h
+++ b/ios/web/public/web_state/web_state_delegate_bridge.h
@@ -14,6 +14,11 @@
@protocol CRWWebStateDelegate<NSObject>
@optional
+// Returns the WebState the URL is opened in, or nullptr if the URL wasn't
+// opened immediately.
+- (web::WebState*)webState:(web::WebState*)webState
+ openURLWithParams:(const web::WebState::OpenURLParams&)params;
+
// Called when the page has made some progress loading. |progress| is a value
// between 0.0 (nothing loaded) to 1.0 (page fully loaded).
- (void)webState:(web::WebState*)webState didChangeProgress:(double)progress;
@@ -41,6 +46,8 @@ class WebStateDelegateBridge : public web::WebStateDelegate {
~WebStateDelegateBridge() override;
// web::WebStateDelegate methods.
+ WebState* OpenURLFromWebState(WebState*,
+ const WebState::OpenURLParams&) override;
void LoadProgressChanged(WebState* source, double progress) override;
bool HandleContextMenu(WebState* source,
const ContextMenuParams& params) override;
« no previous file with comments | « ios/web/public/web_state/web_state_delegate.h ('k') | ios/web/web_state/web_state_delegate.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698