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

Unified Diff: ios/chrome/browser/ui/bookmarks/bookmark_folder_table_view_cell.h

Issue 2586993002: Upstream Chrome on iOS source code [3/11]. (Closed)
Patch Set: Created 4 years 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 side-by-side diff with in-line comments
Download patch
Index: ios/chrome/browser/ui/bookmarks/bookmark_folder_table_view_cell.h
diff --git a/ios/chrome/browser/ui/bookmarks/bookmark_folder_table_view_cell.h b/ios/chrome/browser/ui/bookmarks/bookmark_folder_table_view_cell.h
new file mode 100644
index 0000000000000000000000000000000000000000..37e880813268d62a020715fc75fb3812e893371c
--- /dev/null
+++ b/ios/chrome/browser/ui/bookmarks/bookmark_folder_table_view_cell.h
@@ -0,0 +1,36 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef IOS_CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_FOLDER_TABLE_VIEW_CELL_H_
+#define IOS_CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_FOLDER_TABLE_VIEW_CELL_H_
+
+#import <UIKit/UIKit.h>
+
+// Table view cell that appears in the folder picker.
+@interface BookmarkFolderTableViewCell : UITableViewCell
+
+// Whether the cell is displaying a checkmark.
+@property(nonatomic, assign, getter=isChecked) BOOL checked;
+
+// Whether the cell is enabled for interaction.
+@property(nonatomic, assign, getter=isEnabled) BOOL enabled;
+
+// Returns the reuse identifier for folder cells.
++ (NSString*)folderCellReuseIdentifier;
+
+// Returns the reuse identifier for the folder creation cell.
++ (NSString*)folderCreationCellReuseIdentifier;
+
+// Returns a cell to be used to display a given folder. It displays a folder
+// icon. The indentation level can be used to signify the depth in a hierarchy.
+// The icon and title are then indented according to the indentation level.
++ (instancetype)folderCell;
+
+// Returns a cell to create a new folder. It displays a folder icon with a '+'
+// sign in it. The title prompts the user to create a new folder.
++ (instancetype)folderCreationCell;
+
+@end
+
+#endif // IOS_CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_FOLDER_TABLE_VIEW_CELL_H_

Powered by Google App Engine
This is Rietveld 408576698