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

Unified Diff: ios/web/web_state/ui/crw_web_controller.h

Issue 1806043004: [ios] Refactored dialogs suppression. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Self review Created 4 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/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)

Powered by Google App Engine
This is Rietveld 408576698