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

Unified Diff: components/ntp_snippets/category.h

Issue 2196273002: Zine: support multiple sections in the ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review Created 4 years, 4 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/ntp_snippets/category.h
diff --git a/components/ntp_snippets/category.h b/components/ntp_snippets/category.h
index 89b52d531077c022bd0eaa2953cee03c397e9fb2..75c5323a53d9c7eb97dc8b2fed4729bf2b663cc8 100644
--- a/components/ntp_snippets/category.h
+++ b/components/ntp_snippets/category.h
@@ -16,12 +16,19 @@ class CategoryFactory;
// locally on the device. Categories provided by the server (IDs strictly larger
// than REMOTE_CATEGORIES_OFFSET) only need to be hard-coded here if they need
// to be recognized by the client implementation.
+// On Android builds, a Java counterpart will be generated for this enum.
+// GENERATED_JAVA_ENUM_PACKAGE: org.chromium.chrome.browser.ntp.snippets
enum class KnownCategories {
+ // Pages downloaded for offline consumption.
OFFLINE_PAGES,
+
+ // Follows the last local category.
LOCAL_CATEGORIES_COUNT,
REMOTE_CATEGORIES_OFFSET = 10000,
- ARTICLES = REMOTE_CATEGORIES_OFFSET + 1,
+
+ // Articles for you.
+ ARTICLES,
};
// A category groups ContentSuggestions which belong together. Use the
« chrome/browser/android/ntp/ntp_snippets_bridge.cc ('K') | « components/ntp_snippets/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698