| 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_VIEW_H_ | 5 #ifndef IOS_CHROME_BROWSER_UI_TAB_SWITCHER_TAB_SWITCHER_PANEL_VIEW_H_ |
| 6 #define IOS_CHROME_BROWSER_UI_TAB_SWITCHER_TAB_SWITCHER_PANEL_VIEW_H_ | 6 #define IOS_CHROME_BROWSER_UI_TAB_SWITCHER_TAB_SWITCHER_PANEL_VIEW_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" |
| 11 | 11 |
| 12 @class TabSwitcherCache; | 12 @class TabSwitcherCache; |
| 13 | 13 |
| 14 @interface TabSwitcherPanelView : UIView | 14 @interface TabSwitcherPanelView : UIView |
| 15 | 15 |
| 16 @property(nonatomic, readonly) UICollectionView* collectionView; | 16 @property(nonatomic, readonly) UICollectionView* collectionView; |
| 17 | 17 |
| 18 - (instancetype)initWithSessionType:(ios_internal::SessionType)sessionType | 18 - (instancetype)initWithSessionType:(SessionType)sessionType |
| 19 NS_DESIGNATED_INITIALIZER; | 19 NS_DESIGNATED_INITIALIZER; |
| 20 | 20 |
| 21 - (instancetype)initWithFrame:(CGRect)frame NS_UNAVAILABLE; | 21 - (instancetype)initWithFrame:(CGRect)frame NS_UNAVAILABLE; |
| 22 - (instancetype)initWithCoder:(NSCoder*)aDecoder NS_UNAVAILABLE; | 22 - (instancetype)initWithCoder:(NSCoder*)aDecoder NS_UNAVAILABLE; |
| 23 | 23 |
| 24 // Updates the collectionView's layout to ensure that the optimal amount of tabs | 24 // Updates the collectionView's layout to ensure that the optimal amount of tabs |
| 25 // are displayed. The completion block is called at the end of the layout | 25 // are displayed. The completion block is called at the end of the layout |
| 26 // update. | 26 // update. |
| 27 - (void)updateCollectionLayoutWithCompletion:(void (^)(void))completion; | 27 - (void)updateCollectionLayoutWithCompletion:(void (^)(void))completion; |
| 28 | 28 |
| 29 // Returns the size of the cells displayed in the collectionView. | 29 // Returns the size of the cells displayed in the collectionView. |
| 30 - (CGSize)cellSize; | 30 - (CGSize)cellSize; |
| 31 | 31 |
| 32 @end | 32 @end |
| 33 | 33 |
| 34 #endif // IOS_CHROME_BROWSER_UI_TAB_SWITCHER_TAB_SWITCHER_PANEL_VIEW_H_ | 34 #endif // IOS_CHROME_BROWSER_UI_TAB_SWITCHER_TAB_SWITCHER_PANEL_VIEW_H_ |
| OLD | NEW |