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

Unified Diff: ios/web/web_state/web_state_delegate_stub.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/web_state_delegate_stub.h ('k') | ios/web/web_state/web_state_impl.h » ('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_stub.mm
diff --git a/ios/web/web_state/web_state_delegate_stub.mm b/ios/web/web_state/web_state_delegate_stub.mm
index 53d0de4bc5899f4347d47b50bcba5329eea70f28..000d8426ed95d3f30623270d246ccdafcf005a54 100644
--- a/ios/web/web_state/web_state_delegate_stub.mm
+++ b/ios/web/web_state/web_state_delegate_stub.mm
@@ -10,6 +10,8 @@
@implementation CRWWebStateDelegateStub {
// Backs up the property with the same name.
std::unique_ptr<web::ContextMenuParams> _contextMenuParams;
+ // Backs up the property with the same name.
+ BOOL _javaScriptDialogPresenterRequested;
}
@synthesize webState = _webState;
@@ -27,8 +29,19 @@
return YES;
}
+- (web::JavaScriptDialogPresenter*)javaScriptDialogPresenterForWebState:
+ (web::WebState*)webState {
+ _webState = webState;
+ _javaScriptDialogPresenterRequested = YES;
+ return nil;
+}
+
- (web::ContextMenuParams*)contextMenuParams {
return _contextMenuParams.get();
}
+- (BOOL)javaScriptDialogPresenterRequested {
+ return _javaScriptDialogPresenterRequested;
+}
+
@end
« no previous file with comments | « ios/web/web_state/web_state_delegate_stub.h ('k') | ios/web/web_state/web_state_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698