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

Unified Diff: ios/web/public/web_state/web_state_delegate.h

Issue 2642233004: Removed Form Resubmission callback from CRWWebDelegate. (Closed)
Patch Set: Added ShowRepostFormWarningWithNoDelegateMethod test Created 3 years, 11 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/public/web_state/web_state_delegate.h
diff --git a/ios/web/public/web_state/web_state_delegate.h b/ios/web/public/web_state/web_state_delegate.h
index d5f1590cacf2d6c4cc158273c83a2f4962c5437b..9aefa08f9287cde569c3e2b950b0e92ac81b02ae 100644
--- a/ios/web/public/web_state/web_state_delegate.h
+++ b/ios/web/public/web_state/web_state_delegate.h
@@ -39,6 +39,13 @@ class WebStateDelegate {
virtual bool HandleContextMenu(WebState* source,
const ContextMenuParams& params);
+ // Requests the repost form confirmation dialog. Clients must call |callback|
+ // with true to allow repost and with false to cancel the repost. If this
+ // method is not implemented then WebState will repost the form.
+ virtual void ShowRepostFormWarningDialog(
+ WebState* source,
+ const base::Callback<void(bool)>& callback);
+
// Returns a pointer to a service to manage dialogs. May return nullptr in
// which case dialogs aren't shown.
// TODO(crbug.com/622084): Find better place for this method.
« no previous file with comments | « ios/web/public/web_state/ui/crw_web_delegate.h ('k') | ios/web/public/web_state/web_state_delegate_bridge.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698