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

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

Issue 2608253003: [ios] Moves tab_switcher code out of the ios_internal namespace. (Closed)
Patch Set: Review. 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_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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
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(nonatomic, readonly) TabSwitcherPanelView* view;
54 @property(nonatomic, assign) id<TabSwitcherPanelControllerDelegate> delegate; 54 @property(nonatomic, assign) id<TabSwitcherPanelControllerDelegate> delegate;
55 @property(nonatomic, readonly) ios_internal::SessionType sessionType; 55 @property(nonatomic, readonly) TabSwitcherSessionType sessionType;
56 56
57 // Initializes a controller for a view showing local tabs. |offTheRecord| 57 // Initializes a controller for a view showing local tabs. |offTheRecord|
58 // determines whether the tabs will be shown for the incognito browser state or 58 // 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. 59 // not. |model| is used to populate the view and must not be nil.
60 - (instancetype)initWithModel:(TabSwitcherModel*)model 60 - (instancetype)initWithModel:(TabSwitcherModel*)model
61 forLocalSessionOfType:(ios_internal::SessionType)type 61 forLocalSessionOfType:(TabSwitcherSessionType)type
62 withCache:(TabSwitcherCache*)cache 62 withCache:(TabSwitcherCache*)cache
63 browserState:(ios::ChromeBrowserState*)browserState; 63 browserState:(ios::ChromeBrowserState*)browserState;
64 64
65 // Initializes a controller for a view showing the tabs of a distant session. 65 // Initializes a controller for a view showing the tabs of a distant session.
66 // |model| is used to populate the view and must not be nil. 66 // |model| is used to populate the view and must not be nil.
67 - (instancetype)initWithModel:(TabSwitcherModel*)model 67 - (instancetype)initWithModel:(TabSwitcherModel*)model
68 forDistantSessionWithTag:(std::string const&)sessionTag 68 forDistantSessionWithTag:(std::string const&)sessionTag
69 browserState:(ios::ChromeBrowserState*)browserState; 69 browserState:(ios::ChromeBrowserState*)browserState;
70 70
71 // Tells the controller that the collectionview's content may need to be 71 // Tells the controller that the collectionview's content may need to be
(...skipping 20 matching lines...) Expand all
92 - (void)reload; 92 - (void)reload;
93 93
94 - (UICollectionView*)collectionView; 94 - (UICollectionView*)collectionView;
95 95
96 // Returns the distantSession owned and displayed by this controller. 96 // Returns the distantSession owned and displayed by this controller.
97 - (const synced_sessions::DistantSession*)distantSession; 97 - (const synced_sessions::DistantSession*)distantSession;
98 98
99 @end 99 @end
100 100
101 #endif // IOS_CHROME_BROWSER_UI_TAB_SWITCHER_TAB_SWITCHER_PANEL_CONTROLLER_H_ 101 #endif // IOS_CHROME_BROWSER_UI_TAB_SWITCHER_TAB_SWITCHER_PANEL_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698