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

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

Issue 2937503004: [ObjC ARC] Converts ios/web:ios_web_public_unittests to ARC. (Closed)
Patch Set: Created 3 years, 6 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 #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
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
OLDNEW
« no previous file with comments | « ios/web/public/serializable_user_data_manager_unittest.mm ('k') | ios/web/public/user_agent_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698