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

Side by Side Diff: ios/chrome/browser/ui/side_swipe/history_side_swipe_provider.mm

Issue 2827643002: [ObjC ARC] Converts ios/chrome/browser/ui/side_swipe:side_swipe to ARC. (Closed)
Patch Set: weak Created 3 years, 8 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/chrome/browser/ui/side_swipe/history_side_swipe_provider.h" 5 #import "ios/chrome/browser/ui/side_swipe/history_side_swipe_provider.h"
6 6
7 #include "ios/chrome/browser/tabs/tab.h"
8
9 #if !defined(__has_feature) || !__has_feature(objc_arc)
10 #error "This file requires ARC support."
11 #endif
12
7 @interface HistorySideSwipeProvider () { 13 @interface HistorySideSwipeProvider () {
8 // Keep a reference to detach before deallocing. 14 // Keep a reference to detach before deallocing.
9 TabModel* _tabModel; // weak 15 __weak TabModel* _tabModel; // weak
10 } 16 }
11 17
12 @end 18 @end
13 19
14 @implementation HistorySideSwipeProvider 20 @implementation HistorySideSwipeProvider
15 - (instancetype)initWithTabModel:(TabModel*)tabModel { 21 - (instancetype)initWithTabModel:(TabModel*)tabModel {
16 self = [super init]; 22 self = [super init];
17 if (self) { 23 if (self) {
18 _tabModel = tabModel; 24 _tabModel = tabModel;
19 } 25 }
(...skipping 18 matching lines...) Expand all
38 44
39 - (UIImage*)paneIcon { 45 - (UIImage*)paneIcon {
40 return [UIImage imageNamed:@"side_swipe_navigation_back"]; 46 return [UIImage imageNamed:@"side_swipe_navigation_back"];
41 } 47 }
42 48
43 - (BOOL)rotateForwardIcon { 49 - (BOOL)rotateForwardIcon {
44 return YES; 50 return YES;
45 } 51 }
46 52
47 @end 53 @end
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/side_swipe/card_side_swipe_view.mm ('k') | ios/chrome/browser/ui/side_swipe/side_swipe_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698