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

Unified Diff: ios/web/public/web_state/web_state_delegate_bridge.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
« no previous file with comments | « ios/web/public/web_state/web_state_delegate.h ('k') | ios/web/web_state/ui/crw_web_controller.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/public/web_state/web_state_delegate_bridge.h
diff --git a/ios/web/public/web_state/web_state_delegate_bridge.h b/ios/web/public/web_state/web_state_delegate_bridge.h
index 211bebd4a5090a84a5805819d0bc302ae71ea451..155cef7d82cfcab3825a574ff0ce3b250419571c 100644
--- a/ios/web/public/web_state/web_state_delegate_bridge.h
+++ b/ios/web/public/web_state/web_state_delegate_bridge.h
@@ -30,6 +30,12 @@
- (BOOL)webState:(web::WebState*)webState
handleContextMenu:(const web::ContextMenuParams&)params;
+// Requests the repost form confirmation dialog. Clients must call |handler|
+// with YES to allow repost and with NO to cancel the repost. If this method is
+// not implemented then WebState will repost the form.
+- (void)webState:(web::WebState*)webState
+ runRepostFormDialogWithCompletionHandler:(void (^)(BOOL))handler;
+
// Returns a pointer to a service to manage dialogs. May return null in which
// case dialogs aren't shown.
- (web::JavaScriptDialogPresenter*)javaScriptDialogPresenterForWebState:
@@ -60,6 +66,9 @@ class WebStateDelegateBridge : public web::WebStateDelegate {
void LoadProgressChanged(WebState* source, double progress) override;
bool HandleContextMenu(WebState* source,
const ContextMenuParams& params) override;
+ void ShowRepostFormWarningDialog(
+ WebState* source,
+ const base::Callback<void(bool)>& callback) override;
JavaScriptDialogPresenter* GetJavaScriptDialogPresenter(
WebState* source) override;
void OnAuthRequired(WebState* source,
« no previous file with comments | « ios/web/public/web_state/web_state_delegate.h ('k') | ios/web/web_state/ui/crw_web_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698