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

Unified Diff: components/enhanced_bookmarks/enhanced_bookmark_utils.h

Issue 1143153010: [Android] Add enhanced bookmarks grid/list view experiment. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: indent fix Created 5 years, 7 months 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: 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_

Powered by Google App Engine
This is Rietveld 408576698