Chromium Code Reviews| Index: chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SuggestionsCategoryStatus.java |
| diff --git a/chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SuggestionsCategoryStatus.java b/chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SuggestionsCategoryStatus.java |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..bd313a33eecd7dbaf1279bb54965041e9603ba34 |
| --- /dev/null |
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SuggestionsCategoryStatus.java |
| @@ -0,0 +1,22 @@ |
| +// Copyright 2016 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. |
| + |
| +package org.chromium.chrome.browser.ntp.snippets; |
| + |
| +import android.support.annotation.IntDef; |
| + |
| +import java.lang.annotation.Retention; |
| +import java.lang.annotation.RetentionPolicy; |
| + |
| +@IntDef({ContentSuggestionsCategoryStatus.INITIALIZING, ContentSuggestionsCategoryStatus.AVAILABLE, |
|
PEConn
2016/07/29 10:01:43
nit: Just put one on each line?
Bernhard Bauer
2016/08/01 15:01:33
Done.
|
| + ContentSuggestionsCategoryStatus.AVAILABLE_LOADING, |
| + ContentSuggestionsCategoryStatus.NOT_PROVIDED, |
| + ContentSuggestionsCategoryStatus.ALL_SUGGESTIONS_EXPLICITLY_DISABLED, |
| + ContentSuggestionsCategoryStatus.CATEGORY_EXPLICITLY_DISABLED, |
| + ContentSuggestionsCategoryStatus.SIGNED_OUT, ContentSuggestionsCategoryStatus.SYNC_DISABLED, |
| + ContentSuggestionsCategoryStatus.PASSPHRASE_ENCRYPTION_ENABLED, |
| + ContentSuggestionsCategoryStatus.HISTORY_SYNC_DISABLED, |
| + ContentSuggestionsCategoryStatus.LOADING_ERROR}) |
| +@Retention(RetentionPolicy.SOURCE) |
| +public @interface SuggestionsCategoryStatus {} |