Index: ios/web/web_state/ui/crw_web_controller.h |
diff --git a/ios/web/web_state/ui/crw_web_controller.h b/ios/web/web_state/ui/crw_web_controller.h |
index bf01ed453cf3e5998cf5258fd5152adf31eeb2c4..d0e16601ca9d5f00e112a21838c0e3e3d43726e5 100644 |
--- a/ios/web/web_state/ui/crw_web_controller.h |
+++ b/ios/web/web_state/ui/crw_web_controller.h |
@@ -121,6 +121,11 @@ class WebStateImpl; |
// Whether or not content can programmatically display the keyboard. |
@property(nonatomic, assign) BOOL keyboardDisplayRequiresUserAction; |
+// YES if JavaScript dialogs, HTTP authentication dialogs and window.open |
+// calls should be suppressed. Default is NO. When dialog is suppressed |
+// |CRWWebDelegate webControllerDidSuppressDialog:| will be called. |
+@property(nonatomic, assign) BOOL suppressDialogs; |
+ |
// Return an image to use as replacement of a missing snapshot. |
+ (UIImage*)defaultSnapshotImage; |
@@ -240,6 +245,8 @@ class WebStateImpl; |
// Sets policy for web page dialog handling. Controls dialog suppression and |
// notifying the WebDelegate. |
+// TODO(crbug.com/595463): remove this method, once embedder uses |
+// |setSuppressDialogs|. |
- (void)setPageDialogOpenPolicy:(web::PageDialogOpenPolicy)policy; |
// Records the state (scroll position, form values, whatever can be harvested) |