| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #import "ios/web/public/test/crw_mock_web_state_delegate.h" | 5 #import "ios/web/public/test/crw_mock_web_state_delegate.h" |
| 6 | 6 |
| 7 #import "ios/web/public/web_state/context_menu_params.h" | 7 #import "ios/web/public/web_state/context_menu_params.h" |
| 8 #import "ios/web/public/web_state/web_state.h" | 8 #import "ios/web/public/web_state/web_state.h" |
| 9 | 9 |
| 10 #if !defined(__has_feature) || !__has_feature(objc_arc) |
| 11 #error "This file requires ARC support." |
| 12 #endif |
| 13 |
| 10 @implementation CRWMockWebStateDelegate { | 14 @implementation CRWMockWebStateDelegate { |
| 11 // Backs up the property with the same name. | 15 // Backs up the property with the same name. |
| 12 std::unique_ptr<web::WebState::OpenURLParams> _openURLParams; | 16 std::unique_ptr<web::WebState::OpenURLParams> _openURLParams; |
| 13 // Backs up the property with the same name. | 17 // Backs up the property with the same name. |
| 14 std::unique_ptr<web::ContextMenuParams> _contextMenuParams; | 18 std::unique_ptr<web::ContextMenuParams> _contextMenuParams; |
| 15 // Backs up the property with the same name. | 19 // Backs up the property with the same name. |
| 16 BOOL _javaScriptDialogPresenterRequested; | 20 BOOL _javaScriptDialogPresenterRequested; |
| 17 } | 21 } |
| 18 | 22 |
| 19 @synthesize webState = _webState; | 23 @synthesize webState = _webState; |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 | 82 |
| 79 - (web::ContextMenuParams*)contextMenuParams { | 83 - (web::ContextMenuParams*)contextMenuParams { |
| 80 return _contextMenuParams.get(); | 84 return _contextMenuParams.get(); |
| 81 } | 85 } |
| 82 | 86 |
| 83 - (BOOL)javaScriptDialogPresenterRequested { | 87 - (BOOL)javaScriptDialogPresenterRequested { |
| 84 return _javaScriptDialogPresenterRequested; | 88 return _javaScriptDialogPresenterRequested; |
| 85 } | 89 } |
| 86 | 90 |
| 87 @end | 91 @end |
| OLD | NEW |