OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef IOS_CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_FOLDER_TABLE_VIEW_CELL_H_ |
| 6 #define IOS_CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_FOLDER_TABLE_VIEW_CELL_H_ |
| 7 |
| 8 #import <UIKit/UIKit.h> |
| 9 |
| 10 // Table view cell that appears in the folder picker. |
| 11 @interface BookmarkFolderTableViewCell : UITableViewCell |
| 12 |
| 13 // Whether the cell is displaying a checkmark. |
| 14 @property(nonatomic, assign, getter=isChecked) BOOL checked; |
| 15 |
| 16 // Whether the cell is enabled for interaction. |
| 17 @property(nonatomic, assign, getter=isEnabled) BOOL enabled; |
| 18 |
| 19 // Returns the reuse identifier for folder cells. |
| 20 + (NSString*)folderCellReuseIdentifier; |
| 21 |
| 22 // Returns the reuse identifier for the folder creation cell. |
| 23 + (NSString*)folderCreationCellReuseIdentifier; |
| 24 |
| 25 // Returns a cell to be used to display a given folder. It displays a folder |
| 26 // icon. The indentation level can be used to signify the depth in a hierarchy. |
| 27 // The icon and title are then indented according to the indentation level. |
| 28 + (instancetype)folderCell; |
| 29 |
| 30 // Returns a cell to create a new folder. It displays a folder icon with a '+' |
| 31 // sign in it. The title prompts the user to create a new folder. |
| 32 + (instancetype)folderCreationCell; |
| 33 |
| 34 @end |
| 35 |
| 36 #endif // IOS_CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_FOLDER_TABLE_VIEW_CELL_H_ |
OLD | NEW |