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

Unified Diff: ios/web/web_state/web_state_delegate_stub.mm

Issue 2650913008: Renamed CRWWebStateDelegateStub to CRWMockWebStateDelegate. (Closed)
Patch Set: Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ios/web/web_state/web_state_delegate_stub.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/web_state/web_state_delegate_stub.mm
diff --git a/ios/web/web_state/web_state_delegate_stub.mm b/ios/web/web_state/web_state_delegate_stub.mm
deleted file mode 100644
index 05e53fb29a01d7e4d125dd461ef4bb82fa7ea723..0000000000000000000000000000000000000000
--- a/ios/web/web_state/web_state_delegate_stub.mm
+++ /dev/null
@@ -1,77 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#import "ios/web/web_state/web_state_delegate_stub.h"
-
-#import "ios/web/public/web_state/web_state.h"
-#import "ios/web/public/web_state/context_menu_params.h"
-
-@implementation CRWWebStateDelegateStub {
- // Backs up the property with the same name.
- std::unique_ptr<web::WebState::OpenURLParams> _openURLParams;
- // Backs up the property with the same name.
- std::unique_ptr<web::ContextMenuParams> _contextMenuParams;
- // Backs up the property with the same name.
- BOOL _javaScriptDialogPresenterRequested;
-}
-
-@synthesize webState = _webState;
-@synthesize changedProgress = _changedProgress;
-@synthesize repostFormWarningRequested = _repostFormWarningRequested;
-@synthesize authenticationRequested = _authenticationRequested;
-
-- (web::WebState*)webState:(web::WebState*)webState
- openURLWithParams:(const web::WebState::OpenURLParams&)params {
- _webState = webState;
- _openURLParams.reset(new web::WebState::OpenURLParams(params));
- return webState;
-}
-
-- (void)webState:(web::WebState*)webState didChangeProgress:(double)progress {
- _webState = webState;
- _changedProgress = progress;
-}
-
-- (BOOL)webState:(web::WebState*)webState
- handleContextMenu:(const web::ContextMenuParams&)params {
- _webState = webState;
- _contextMenuParams.reset(new web::ContextMenuParams(params));
- return YES;
-}
-
-- (void)webState:(web::WebState*)webState
- runRepostFormDialogWithCompletionHandler:(void (^)(BOOL))handler {
- _webState = webState;
- _repostFormWarningRequested = YES;
-}
-
-- (web::JavaScriptDialogPresenter*)javaScriptDialogPresenterForWebState:
- (web::WebState*)webState {
- _webState = webState;
- _javaScriptDialogPresenterRequested = YES;
- return nil;
-}
-
-- (void)webState:(web::WebState*)webState
- didRequestHTTPAuthForProtectionSpace:(NSURLProtectionSpace*)protectionSpace
- proposedCredential:(NSURLCredential*)proposedCredential
- completionHandler:(void (^)(NSString* username,
- NSString* password))handler {
- _webState = webState;
- _authenticationRequested = YES;
-}
-
-- (const web::WebState::OpenURLParams*)openURLParams {
- return _openURLParams.get();
-}
-
-- (web::ContextMenuParams*)contextMenuParams {
- return _contextMenuParams.get();
-}
-
-- (BOOL)javaScriptDialogPresenterRequested {
- return _javaScriptDialogPresenterRequested;
-}
-
-@end
« no previous file with comments | « ios/web/web_state/web_state_delegate_stub.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698