Chromium Code Reviews| 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..8c28daa02573aac4e45740d81556faa89ceacc05 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,11 @@ |
| - (BOOL)webState:(web::WebState*)webState |
| handleContextMenu:(const web::ContextMenuParams&)params; |
| +// Requests the repost form confirmation dialog. Clients must call completion |
| +// handler with YES to allow repost and with NO to cancel the repost. |
|
marq (ping after 24h)
2017/01/23 08:18:28
nit "completion handler" -> |handler|.
Eugene But (OOO till 7-30)
2017/01/23 19:48:33
Done.
|
| +- (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 +65,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, |