Index: ios/web/public/web_state/web_state_observer.h |
diff --git a/ios/web/public/web_state/web_state_observer.h b/ios/web/public/web_state/web_state_observer.h |
index 100312cc84f622f9b8f800c822680527d03c3e19..2d84681c73d0bcd7d8fef8f3ab7c8e1778e2260a 100644 |
--- a/ios/web/public/web_state/web_state_observer.h |
+++ b/ios/web/public/web_state/web_state_observer.h |
@@ -91,6 +91,12 @@ class WebStateObserver { |
// Called when the visible security state of the page changes. |
virtual void DidChangeVisibleSecurityState() {} |
+ // Called when a dialog (JavaScript, geolocation) or window open request was |
+ // suppressed. |
+ // NOTE: Called only if WebState::SetShouldSuppressDialogs() was called with |
+ // false. |
+ virtual void DidSuppressDialog() {} |
+ |
// Called on form submission. |user_initiated| is true if the user |
// interacted with the page. |
virtual void DocumentSubmitted(const std::string& form_name, |