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

Side by Side Diff: ios/chrome/browser/ui/tab_switcher/tab_switcher_panel_cell.mm

Issue 2942003002: [ios] Fix "return foo = nil" introduced by ARC conversion tools. (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
« no previous file with comments | « ios/chrome/browser/ui/settings/sync_encryption_passphrase_collection_view_controller.mm ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/settings/sync_encryption_passphrase_collection_view_controller.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698