| 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_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 26 matching lines...) Expand all Loading... |
| 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(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 - (void)setAppearanceForTab:(Tab*)tab cellSize:(CGSize)cellSize; | 48 - (void)setAppearanceForTab:(Tab*)tab cellSize:(CGSize)cellSize; |
| 48 // Sets the cell's appearance depending on |type|. | 49 // Sets the cell's appearance depending on |type|. |
| 49 - (void)setSessionType:(TabSwitcherSessionType)type; | 50 - (void)setSessionType:(TabSwitcherSessionType)type; |
| 50 | 51 |
| 51 // Returns the current screenshot set on the cell. | 52 // Returns the current screenshot set on the cell. |
| 52 - (UIImage*)screenshot; | 53 - (UIImage*)screenshot; |
| 53 // Sets the snapshot. | 54 // Sets the snapshot. |
| 54 - (void)setSnapshot:(UIImage*)snapshot; | 55 - (void)setSnapshot:(UIImage*)snapshot; |
| 55 | 56 |
| 56 @end | 57 @end |
| 57 | 58 |
| 58 @interface TabSwitcherDistantSessionCell : TabSwitcherSessionCell | 59 @interface TabSwitcherDistantSessionCell : TabSwitcherSessionCell |
| 59 | 60 |
| 60 // Sets the cell's title. | 61 // Sets the cell's title. |
| 61 - (void)setTitle:(NSString*)title; | 62 - (void)setTitle:(NSString*)title; |
| 62 // Sets the session's URL to obtain the cell's favicon. | 63 // Sets the session's URL to obtain the cell's favicon. |
| 63 - (void)setSessionGURL:(GURL const&)gurl | 64 - (void)setSessionGURL:(GURL const&)gurl |
| 64 withBrowserState:(ios::ChromeBrowserState*)browserState; | 65 withBrowserState:(ios::ChromeBrowserState*)browserState; |
| 65 | 66 |
| 66 @end | 67 @end |
| 67 | 68 |
| 68 #endif // IOS_CHROME_BROWSER_UI_TAB_SWITCHER_TAB_SWITCHER_PANEL_CELL_H_ | 69 #endif // IOS_CHROME_BROWSER_UI_TAB_SWITCHER_TAB_SWITCHER_PANEL_CELL_H_ |
| OLD | NEW |