Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(338)

Side by Side Diff: ios/web/public/test/crw_mock_web_state_delegate.h

Issue 2737943003: Moved window opening callback to WebStateDelegate. (Closed)
Patch Set: Rebased Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_PUBLIC_TEST_CRW_MOCK_WEB_STATE_DELEGATE_H_ 5 #ifndef IOS_WEB_PUBLIC_TEST_CRW_MOCK_WEB_STATE_DELEGATE_H_
6 #define IOS_WEB_PUBLIC_TEST_CRW_MOCK_WEB_STATE_DELEGATE_H_ 6 #define IOS_WEB_PUBLIC_TEST_CRW_MOCK_WEB_STATE_DELEGATE_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 CRWMockWebStateDelegate 12 @interface CRWMockWebStateDelegate
13 : OCMockComplexTypeHelper<CRWWebStateDelegate> 13 : OCMockComplexTypeHelper<CRWWebStateDelegate>
14 // web::WebState::OpenURLParams in |webState:openURLWithParams:| call. 14 // web::WebState::OpenURLParams in |webState:openURLWithParams:| call.
15 @property(nonatomic, readonly) 15 @property(nonatomic, readonly)
16 const web::WebState::OpenURLParams* openURLParams; 16 const web::WebState::OpenURLParams* openURLParams;
17 // web::WebState received in delegate method calls. 17 // web::WebState received in delegate method calls.
18 @property(nonatomic, readonly) web::WebState* webState; 18 @property(nonatomic, readonly) web::WebState* webState;
19 // ContextMenuParams reveived in |webState:handleContextMenu:| call. 19 // ContextMenuParams reveived in |webState:handleContextMenu:| call.
20 // nullptr if that delegate method was not called. 20 // nullptr if that delegate method was not called.
21 @property(nonatomic, readonly) web::ContextMenuParams* contextMenuParams; 21 @property(nonatomic, readonly) web::ContextMenuParams* contextMenuParams;
22 // Whether |webState:createNewWebStateForURL:openerURL:initiatedByUser:| has
23 // been called or not.
24 @property(nonatomic, readonly) BOOL webStateCreationRequested;
22 // Whether |webState:runRepostFormDialogWithCompletionHandler:| has been called 25 // Whether |webState:runRepostFormDialogWithCompletionHandler:| has been called
23 // or not. 26 // or not.
24 @property(nonatomic, readonly) BOOL repostFormWarningRequested; 27 @property(nonatomic, readonly) BOOL repostFormWarningRequested;
25 // Whether |javaScriptDialogPresenterForWebState:| has been called or not. 28 // Whether |javaScriptDialogPresenterForWebState:| has been called or not.
26 @property(nonatomic, readonly) BOOL javaScriptDialogPresenterRequested; 29 @property(nonatomic, readonly) BOOL javaScriptDialogPresenterRequested;
27 // Whether |webState:didRequestHTTPAuthForProtectionSpace:...| has been called 30 // Whether |webState:didRequestHTTPAuthForProtectionSpace:...| has been called
28 // or not. 31 // or not.
29 @property(nonatomic, readonly) BOOL authenticationRequested; 32 @property(nonatomic, readonly) BOOL authenticationRequested;
30 33
31 @end 34 @end
32 35
33 #endif // IOS_WEB_PUBLIC_TEST_CRW_MOCK_WEB_STATE_DELEGATE_H_ 36 #endif // IOS_WEB_PUBLIC_TEST_CRW_MOCK_WEB_STATE_DELEGATE_H_
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/browser_view_controller.mm ('k') | ios/web/public/test/crw_mock_web_state_delegate.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698