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

Unified Diff: ios/web/web_state/web_state_delegate.mm

Issue 2074733002: Add public API for handling Javascript alerts and prompt. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Replace BOOL with bool in unittest. Created 4 years, 6 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/web_state/ui/crw_web_controller.mm ('k') | ios/web/web_state/web_state_delegate_bridge.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/web_state/web_state_delegate.mm
diff --git a/ios/web/web_state/web_state_delegate.mm b/ios/web/web_state/web_state_delegate.mm
index 7722a61bf451f8922c1b2eb048c7e32209bcb198..d08ee503787cdf3d37789f91e356ca5744df7e2a 100644
--- a/ios/web/web_state/web_state_delegate.mm
+++ b/ios/web/web_state/web_state_delegate.mm
@@ -24,6 +24,11 @@ bool WebStateDelegate::HandleContextMenu(WebState*, const ContextMenuParams&) {
return false;
}
+JavaScriptDialogPresenter* WebStateDelegate::GetJavaScriptDialogPresenter(
+ WebState*) {
+ return nullptr;
+}
+
void WebStateDelegate::Attach(WebState* source) {
DCHECK(attached_states_.find(source) == attached_states_.end());
attached_states_.insert(source);
« no previous file with comments | « ios/web/web_state/ui/crw_web_controller.mm ('k') | ios/web/web_state/web_state_delegate_bridge.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698