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..450fb80cc2e8b2488bd8cb4ae5ca8df0dffa72ba 100644 |
| --- a/ios/web/public/web_state/web_state_delegate.h |
| +++ b/ios/web/public/web_state/web_state_delegate.h |
| @@ -39,6 +39,12 @@ class WebStateDelegate { |
| virtual bool HandleContextMenu(WebState* source, |
| const ContextMenuParams& params); |
| + // Requests the repost form confirmation dialog. Clients must call callback |
|
marq (ping after 24h)
2017/01/23 08:18:28
nit: |callback|.
Eugene But (OOO till 7-30)
2017/01/23 19:48:33
Done.
|
| + // with true to allow repost and with false to cancel the repost. |
| + 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. |