Chromium Code Reviews| 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( |
|
marq (ping after 24h)
2017/01/24 14:46:46
Naming consistency: Should this be OnFormRepostWar
Eugene But (OOO till 7-30)
2017/01/24 21:33:11
ShowRepostFormWarningDialog name matches //content
|
| + 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. |