| 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 #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 Loading... |
| 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 |
| OLD | NEW |