| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/tab_switcher/tab_switcher_panel_cell.h" | 5 #import "ios/chrome/browser/ui/tab_switcher/tab_switcher_panel_cell.h" |
| 6 | 6 |
| 7 #import "ios/chrome/browser/tabs/tab.h" | 7 #import "ios/chrome/browser/tabs/tab.h" |
| 8 #import "ios/chrome/browser/ui/fade_truncated_label.h" | 8 #import "ios/chrome/browser/ui/fade_truncated_label.h" |
| 9 #import "ios/chrome/browser/ui/image_util.h" | 9 #import "ios/chrome/browser/ui/image_util.h" |
| 10 #import "ios/chrome/browser/ui/tab_switcher/tab_switcher_button.h" | 10 #import "ios/chrome/browser/ui/tab_switcher/tab_switcher_button.h" |
| (...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 307 #pragma mark - UIAccessibilityAction | 307 #pragma mark - UIAccessibilityAction |
| 308 | 308 |
| 309 - (NSArray*)accessibilityCustomActions { | 309 - (NSArray*)accessibilityCustomActions { |
| 310 NSMutableArray* customActions = [[NSMutableArray alloc] init]; | 310 NSMutableArray* customActions = [[NSMutableArray alloc] init]; |
| 311 UIAccessibilityCustomAction* customAction = | 311 UIAccessibilityCustomAction* customAction = |
| 312 [[UIAccessibilityCustomAction alloc] | 312 [[UIAccessibilityCustomAction alloc] |
| 313 initWithName:l10n_util::GetNSString(IDS_IOS_TAB_SWITCHER_CLOSE_TAB) | 313 initWithName:l10n_util::GetNSString(IDS_IOS_TAB_SWITCHER_CLOSE_TAB) |
| 314 target:self | 314 target:self |
| 315 selector:@selector(closeButtonPressed)]; | 315 selector:@selector(closeButtonPressed)]; |
| 316 [customActions addObject:customAction = nil]; | 316 [customActions addObject:customAction = nil]; |
| 317 return customActions = nil; | 317 return customActions; |
| 318 } | 318 } |
| 319 | 319 |
| 320 @end | 320 @end |
| 321 | 321 |
| 322 @implementation TabSwitcherDistantSessionCell { | 322 @implementation TabSwitcherDistantSessionCell { |
| 323 UILabel* _titleLabel; | 323 UILabel* _titleLabel; |
| 324 UIImageView* _favicon; | 324 UIImageView* _favicon; |
| 325 UIImageView* _newTabIcon; | 325 UIImageView* _newTabIcon; |
| 326 UIView* _verticallyCenteredView; | 326 UIView* _verticallyCenteredView; |
| 327 TabSwitcherButton* _raisedButton; | 327 TabSwitcherButton* _raisedButton; |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 452 - (void)prepareForReuse { | 452 - (void)prepareForReuse { |
| 453 [_newTabIcon setAlpha:0]; | 453 [_newTabIcon setAlpha:0]; |
| 454 [_faviconObtainer cancel]; | 454 [_faviconObtainer cancel]; |
| 455 _faviconObtainer = nil; | 455 _faviconObtainer = nil; |
| 456 [_raisedButton setAlpha:0]; | 456 [_raisedButton setAlpha:0]; |
| 457 [_raisedButton resetState]; | 457 [_raisedButton resetState]; |
| 458 [super prepareForReuse]; | 458 [super prepareForReuse]; |
| 459 } | 459 } |
| 460 | 460 |
| 461 @end | 461 @end |
| OLD | NEW |