| Index: ios/web/public/web_state/web_state.h
|
| diff --git a/ios/web/public/web_state/web_state.h b/ios/web/public/web_state/web_state.h
|
| index 5d0ab68465c8d2fa2b77ee718d32353969210b25..b22b1878aa936361df66b5f8ed6e1979f7a94d0d 100644
|
| --- a/ios/web/public/web_state/web_state.h
|
| +++ b/ios/web/public/web_state/web_state.h
|
| @@ -110,6 +110,11 @@ class WebState : public base::SupportsUserData {
|
| virtual bool IsWebUsageEnabled() const = 0;
|
| virtual void SetWebUsageEnabled(bool enabled) = 0;
|
|
|
| + // Whether or not dialogs (JavaScript dialogs, HTTP auths and window.open)
|
| + // calls should be suppressed. Default is false.
|
| + virtual bool ShouldSuppressDialogs() const = 0;
|
| + virtual void SetShouldSuppressDialogs(bool should_suppress) = 0;
|
| +
|
| // The view containing the contents of the current web page. If the view has
|
| // been purged due to low memory, this will recreate it. It is up to the
|
| // caller to size the view.
|
|
|