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

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

Issue 2612733004: Renames SessionChanges and SessionCellData to have a TabSwitcher prefix. (Closed)
Patch Set: Created 3 years, 11 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_SESSION_CELL_DATA_H_ 5 #ifndef IOS_CHROME_BROWSER_UI_TAB_SWITCHER_TAB_SWITCHER_SESSION_CELL_DATA_H_
6 #define IOS_CHROME_BROWSER_UI_TAB_SWITCHER_TAB_SWITCHER_SESSION_CELL_DATA_H_ 6 #define IOS_CHROME_BROWSER_UI_TAB_SWITCHER_TAB_SWITCHER_SESSION_CELL_DATA_H_
7 7
8 #import <UIKit/UIKit.h> 8 #import <UIKit/UIKit.h>
9 9
10 @class TabSwitcherHeaderView; 10 @class TabSwitcherHeaderView;
11 11
12 enum TabSwitcherSessionCellType { 12 enum TabSwitcherSessionCellType {
13 kIncognitoSessionCell, 13 kIncognitoSessionCell,
14 kOpenTabSessionCell, 14 kOpenTabSessionCell,
15 kGenericRemoteSessionCell, 15 kGenericRemoteSessionCell,
16 kPhoneRemoteSessionCell, 16 kPhoneRemoteSessionCell,
17 kTabletRemoteSessionCell, 17 kTabletRemoteSessionCell,
18 kLaptopRemoteSessionCell, 18 kLaptopRemoteSessionCell,
19 }; 19 };
20 20
21 // This class hold the data used to configure the content of a 21 // This class hold the data used to configure the content of a
22 // TabSwitcherHeaderCell. 22 // TabSwitcherHeaderCell.
23 @interface SessionCellData : NSObject 23 @interface TabSwitcherSessionCellData : NSObject
24 24
25 // Those two methods are used to create incognito and open tab cell data. 25 // Those two methods are used to create incognito and open tab cell data.
26 // Each method create a SessionCellData object on the first call and returns 26 // Each method create a SessionCellData object on the first call and returns
27 // the same instance on further calls. 27 // the same instance on further calls.
28 + (instancetype)incognitoSessionCellData; 28 + (instancetype)incognitoSessionCellData;
29 + (instancetype)openTabSessionCellData; 29 + (instancetype)openTabSessionCellData;
30 + (instancetype)otherDevicesSessionCellData; 30 + (instancetype)otherDevicesSessionCellData;
31 31
32 - (instancetype)initWithSessionCellType:(TabSwitcherSessionCellType)type; 32 - (instancetype)initWithSessionCellType:(TabSwitcherSessionCellType)type;
33 33
34 @property(nonatomic, readonly) TabSwitcherSessionCellType type; 34 @property(nonatomic, readonly) TabSwitcherSessionCellType type;
35 @property(nonatomic, copy) NSString* title; 35 @property(nonatomic, copy) NSString* title;
36 @property(nonatomic, retain) UIImage* image; 36 @property(nonatomic, retain) UIImage* image;
37 37
38 @end 38 @end
39 39
40 #endif // IOS_CHROME_BROWSER_UI_TAB_SWITCHER_TAB_SWITCHER_SESSION_CELL_DATA_H_ 40 #endif // IOS_CHROME_BROWSER_UI_TAB_SWITCHER_TAB_SWITCHER_SESSION_CELL_DATA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698