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

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

Issue 2810193002: [ObjC ARC] Converts ios/chrome/browser/ui/tab_switcher:tab_switcher to ARC. (Closed)
Patch Set: comment Created 3 years, 7 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 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 #ifndef IOS_CHROME_BROWSER_UI_TAB_SWITCHER_TAB_SWITCHER_PANEL_CELL_H_ 5 #ifndef IOS_CHROME_BROWSER_UI_TAB_SWITCHER_TAB_SWITCHER_PANEL_CELL_H_
6 #define IOS_CHROME_BROWSER_UI_TAB_SWITCHER_TAB_SWITCHER_PANEL_CELL_H_ 6 #define IOS_CHROME_BROWSER_UI_TAB_SWITCHER_TAB_SWITCHER_PANEL_CELL_H_
7 7
8 #import <UIKit/UIKit.h> 8 #import <UIKit/UIKit.h>
9 9
10 #import "ios/chrome/browser/ui/tab_switcher/tab_switcher_model.h" 10 #import "ios/chrome/browser/ui/tab_switcher/tab_switcher_model.h"
(...skipping 14 matching lines...) Expand all
25 - (void)deleteButtonPressedForCell:(UICollectionViewCell*)cell; 25 - (void)deleteButtonPressedForCell:(UICollectionViewCell*)cell;
26 26
27 @end 27 @end
28 28
29 @interface TabSwitcherSessionCell : UICollectionViewCell 29 @interface TabSwitcherSessionCell : UICollectionViewCell
30 30
31 // Returns the cell's identifier used for the cell's re-use. 31 // Returns the cell's identifier used for the cell's re-use.
32 + (NSString*)identifier; 32 + (NSString*)identifier;
33 33
34 // The cell delegate. 34 // The cell delegate.
35 @property(nonatomic, assign) id<SessionCellDelegate> delegate; 35 @property(nonatomic, unsafe_unretained) id<SessionCellDelegate> delegate;
36 36
37 @end 37 @end
38 38
39 // Cell showing information about a local session. 39 // Cell showing information about a local session.
40 @interface TabSwitcherLocalSessionCell : TabSwitcherSessionCell 40 @interface TabSwitcherLocalSessionCell : TabSwitcherSessionCell
41 41
42 // Returns the top bar of the cell. The top bar holds the favicon and the tab 42 // Returns the top bar of the cell. The top bar holds the favicon and the tab
43 // title. 43 // title.
44 @property(nonatomic, readonly) UIView* topBar; 44 @property(unsafe_unretained, nonatomic, readonly) UIView* topBar;
45 45
46 // Sets the cell's appearance using information in |tab|. 46 // Sets the cell's appearance using information in |tab|.
47 // The delegate needs to be set before calling this method. 47 // The delegate needs to be set before calling this method.
48 - (void)setAppearanceForTab:(Tab*)tab cellSize:(CGSize)cellSize; 48 - (void)setAppearanceForTab:(Tab*)tab cellSize:(CGSize)cellSize;
49 49
50 // PLACEHOLDER: Sets the cell's appearance using information in |title| and 50 // PLACEHOLDER: Sets the cell's appearance using information in |title| and
51 // |favicon|. 51 // |favicon|.
52 - (void)setAppearanceForTabTitle:(NSString*)title 52 - (void)setAppearanceForTabTitle:(NSString*)title
53 favicon:(UIImage*)favicon 53 favicon:(UIImage*)favicon
54 cellSize:(CGSize)cellSize; 54 cellSize:(CGSize)cellSize;
(...skipping 12 matching lines...) Expand all
67 67
68 // Sets the cell's title. 68 // Sets the cell's title.
69 - (void)setTitle:(NSString*)title; 69 - (void)setTitle:(NSString*)title;
70 // Sets the session's URL to obtain the cell's favicon. 70 // Sets the session's URL to obtain the cell's favicon.
71 - (void)setSessionGURL:(GURL const&)gurl 71 - (void)setSessionGURL:(GURL const&)gurl
72 withBrowserState:(ios::ChromeBrowserState*)browserState; 72 withBrowserState:(ios::ChromeBrowserState*)browserState;
73 73
74 @end 74 @end
75 75
76 #endif // IOS_CHROME_BROWSER_UI_TAB_SWITCHER_TAB_SWITCHER_PANEL_CELL_H_ 76 #endif // IOS_CHROME_BROWSER_UI_TAB_SWITCHER_TAB_SWITCHER_PANEL_CELL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698