OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef COMPONENTS_NTP_SNIPPETS_CONTENT_SUGGESTIONS_CATEGORY_H_ | 5 #ifndef COMPONENTS_NTP_SNIPPETS_CONTENT_SUGGESTIONS_CATEGORY_H_ |
6 #define COMPONENTS_NTP_SNIPPETS_CONTENT_SUGGESTIONS_CATEGORY_H_ | 6 #define COMPONENTS_NTP_SNIPPETS_CONTENT_SUGGESTIONS_CATEGORY_H_ |
7 | 7 |
8 namespace ntp_snippets { | 8 namespace ntp_snippets { |
9 | 9 |
10 // A category groups ContentSuggestions which belong together. | 10 // A category groups ContentSuggestions which belong together. |
11 enum class ContentSuggestionsCategory { ARTICLES, OFFLINE_PAGES, COUNT }; | 11 // On Android builds, a Java counterpart will be generated for this enum. |
| 12 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.chrome.browser.ntp.snippets |
| 13 enum class ContentSuggestionsCategory { |
| 14 // Articles for you. |
| 15 ARTICLES, |
| 16 |
| 17 // Downloaded pages. |
| 18 OFFLINE_PAGES, |
| 19 |
| 20 // Enum count for ??? reasons. |
| 21 COUNT |
| 22 }; |
12 | 23 |
13 } // namespace ntp_snippets | 24 } // namespace ntp_snippets |
14 | 25 |
15 #endif // COMPONENTS_NTP_SNIPPETS_CONTENT_SUGGESTIONS_CATEGORY_H_ | 26 #endif // COMPONENTS_NTP_SNIPPETS_CONTENT_SUGGESTIONS_CATEGORY_H_ |
OLD | NEW |