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 #ifndef IOS_CHROME_BROWSER_UI_TAB_SWITCHER_TAB_SWITCHER_PANEL_CONTROLLER_H_ | 5 #ifndef IOS_CHROME_BROWSER_UI_TAB_SWITCHER_TAB_SWITCHER_PANEL_CONTROLLER_H_ |
6 #define IOS_CHROME_BROWSER_UI_TAB_SWITCHER_TAB_SWITCHER_PANEL_CONTROLLER_H_ | 6 #define IOS_CHROME_BROWSER_UI_TAB_SWITCHER_TAB_SWITCHER_PANEL_CONTROLLER_H_ |
7 | 7 |
8 #import <UIKit/UIKit.h> | 8 #import <UIKit/UIKit.h> |
9 | 9 |
10 #include "base/ios/block_types.h" | 10 #include "base/ios/block_types.h" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 @end | 43 @end |
44 | 44 |
45 @class TabSwitcherPanelView; | 45 @class TabSwitcherPanelView; |
46 // The tab switcher panel controller manages a panel view. | 46 // The tab switcher panel controller manages a panel view. |
47 // It can manage either distant or local sessions and uses a TabSwitcherModel | 47 // It can manage either distant or local sessions and uses a TabSwitcherModel |
48 // as its data source. | 48 // as its data source. |
49 @class TabSwitcherCache; | 49 @class TabSwitcherCache; |
50 | 50 |
51 @interface TabSwitcherPanelController : NSObject | 51 @interface TabSwitcherPanelController : NSObject |
52 | 52 |
53 @property(nonatomic, readonly) TabSwitcherPanelView* view; | 53 @property(unsafe_unretained, nonatomic, readonly) TabSwitcherPanelView* view; |
54 @property(nonatomic, assign) id<TabSwitcherPanelControllerDelegate> delegate; | 54 @property(nonatomic, unsafe_unretained) id<TabSwitcherPanelControllerDelegate> |
| 55 delegate; |
55 @property(nonatomic, readonly) TabSwitcherSessionType sessionType; | 56 @property(nonatomic, readonly) TabSwitcherSessionType sessionType; |
56 | 57 |
57 // Initializes a controller for a view showing local tabs. |offTheRecord| | 58 // Initializes a controller for a view showing local tabs. |offTheRecord| |
58 // determines whether the tabs will be shown for the incognito browser state or | 59 // determines whether the tabs will be shown for the incognito browser state or |
59 // not. |model| is used to populate the view and must not be nil. | 60 // not. |model| is used to populate the view and must not be nil. |
60 - (instancetype)initWithModel:(TabSwitcherModel*)model | 61 - (instancetype)initWithModel:(TabSwitcherModel*)model |
61 forLocalSessionOfType:(TabSwitcherSessionType)type | 62 forLocalSessionOfType:(TabSwitcherSessionType)type |
62 withCache:(TabSwitcherCache*)cache | 63 withCache:(TabSwitcherCache*)cache |
63 browserState:(ios::ChromeBrowserState*)browserState; | 64 browserState:(ios::ChromeBrowserState*)browserState; |
64 | 65 |
(...skipping 27 matching lines...) Expand all Loading... |
92 - (void)reload; | 93 - (void)reload; |
93 | 94 |
94 - (UICollectionView*)collectionView; | 95 - (UICollectionView*)collectionView; |
95 | 96 |
96 // Returns the distantSession owned and displayed by this controller. | 97 // Returns the distantSession owned and displayed by this controller. |
97 - (const synced_sessions::DistantSession*)distantSession; | 98 - (const synced_sessions::DistantSession*)distantSession; |
98 | 99 |
99 @end | 100 @end |
100 | 101 |
101 #endif // IOS_CHROME_BROWSER_UI_TAB_SWITCHER_TAB_SWITCHER_PANEL_CONTROLLER_H_ | 102 #endif // IOS_CHROME_BROWSER_UI_TAB_SWITCHER_TAB_SWITCHER_PANEL_CONTROLLER_H_ |
OLD | NEW |