Chromium Code Reviews| Index: components/enhanced_bookmarks/enhanced_bookmark_utils.h |
| diff --git a/components/enhanced_bookmarks/enhanced_bookmark_utils.h b/components/enhanced_bookmarks/enhanced_bookmark_utils.h |
| index c66fa9adf8c07b69bc46c0f791ce27784559797b..1b08d9925e49c515597c036b424688e268193a66 100644 |
| --- a/components/enhanced_bookmarks/enhanced_bookmark_utils.h |
| +++ b/components/enhanced_bookmarks/enhanced_bookmark_utils.h |
| @@ -16,6 +16,8 @@ class BookmarkNode; |
| namespace enhanced_bookmarks { |
| +extern const char kFieldTrialName[]; |
| + |
| // Possible locations where a bookmark can be opened from. |
| // Please sync with the corresponding histograms.xml. |
| // |
| @@ -31,6 +33,16 @@ enum LaunchLocation { |
| COUNT = 6, |
| }; |
| +// View modes of enhanced bookmarks' main items UI. |
| +// |
| +// A Java counterpart will be generated for this enum. |
| +// GENERATED_JAVA_ENUM_PACKAGE: org.chromium.chrome.browser.enhanced_bookmarks |
| +enum ViewMode { |
| + DEFAULT = 0, |
| + LIST = 1, |
| + GRID = 2, |
| +}; |
| + |
| // Returns the permanent nodes whose url children are considered uncategorized |
| // and whose folder children should be shown in the bookmark menu. |
| // |model| must be loaded. |
| @@ -54,6 +66,10 @@ const bookmarks::BookmarkNode* RootLevelFolderForNode( |
| const bookmarks::BookmarkNode* node, |
| bookmarks::BookmarkModel* model); |
| +// Returns the default view mode for main items UI. |
| +// It doesn't return ViewMode::DEFAULT. |
|
Theresa
2015/05/28 20:13:08
Can you elaborate with what is returned; e.g. the
Kibeom Kim (inactive)
2015/05/29 00:11:04
Done.
|
| +ViewMode GetDefaultViewMode(); |
| + |
| } // namespace enhanced_bookmarks |
| #endif // COMPONENTS_ENHANCED_BOOKMARKS_ENHANCED_BOOKMARK_UTILS_H_ |