| 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 #ifndef IOS_WEB_WEB_STATE_WEB_STATE_DELEGATE_STUB_H_ | 5 #ifndef IOS_WEB_WEB_STATE_WEB_STATE_DELEGATE_STUB_H_ |
| 6 #define IOS_WEB_WEB_STATE_WEB_STATE_DELEGATE_STUB_H_ | 6 #define IOS_WEB_WEB_STATE_WEB_STATE_DELEGATE_STUB_H_ |
| 7 | 7 |
| 8 #import "ios/testing/ocmock_complex_type_helper.h" | 8 #import "ios/testing/ocmock_complex_type_helper.h" |
| 9 #import "ios/web/public/web_state/web_state_delegate_bridge.h" | 9 #import "ios/web/public/web_state/web_state_delegate_bridge.h" |
| 10 | 10 |
| 11 // Stub implementation for CRWWebStateDelegate protocol. | 11 // Stub implementation for CRWWebStateDelegate protocol. |
| 12 @interface CRWWebStateDelegateStub | 12 @interface CRWWebStateDelegateStub |
| 13 : OCMockComplexTypeHelper<CRWWebStateDelegate> | 13 : OCMockComplexTypeHelper<CRWWebStateDelegate> |
| 14 // web::WebState received in delegate method calls.. | 14 // web::WebState::OpenURLParams in |webState:openURLWithParams:| call. |
| 15 @property(nonatomic, readonly) |
| 16 const web::WebState::OpenURLParams* openURLParams; |
| 17 // web::WebState received in delegate method calls. |
| 15 @property(nonatomic, readonly) web::WebState* webState; | 18 @property(nonatomic, readonly) web::WebState* webState; |
| 16 // Progress received in |webState:didChangeProgress| call. | 19 // Progress received in |webState:didChangeProgress| call. |
| 17 @property(nonatomic, readonly) double changedProgress; | 20 @property(nonatomic, readonly) double changedProgress; |
| 18 // ContextMenuParams reveived in |webState:handleContextMenu:| call. | 21 // ContextMenuParams reveived in |webState:handleContextMenu:| call. |
| 19 // nullptr if that delegate method was not called. | 22 // nullptr if that delegate method was not called. |
| 20 @property(nonatomic, readonly) web::ContextMenuParams* contextMenuParams; | 23 @property(nonatomic, readonly) web::ContextMenuParams* contextMenuParams; |
| 21 // Whether |javaScriptDialogPresenterForWebState:| has been called or not. | 24 // Whether |javaScriptDialogPresenterForWebState:| has been called or not. |
| 22 @property(nonatomic, readonly) BOOL javaScriptDialogPresenterRequested; | 25 @property(nonatomic, readonly) BOOL javaScriptDialogPresenterRequested; |
| 23 @end | 26 @end |
| 24 | 27 |
| 25 #endif // IOS_WEB_WEB_STATE_WEB_STATE_DELEGATE_STUB_H_ | 28 #endif // IOS_WEB_WEB_STATE_WEB_STATE_DELEGATE_STUB_H_ |
| OLD | NEW |