| Index: chrome/android/java/src/org/chromium/chrome/browser/suggestions/PartialUpdateId.java
|
| diff --git a/chrome/android/java/src/org/chromium/chrome/browser/suggestions/PartialUpdateId.java b/chrome/android/java/src/org/chromium/chrome/browser/suggestions/PartialUpdateId.java
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..cde816d5842025ee49a1ada12fd19e4244191000
|
| --- /dev/null
|
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/suggestions/PartialUpdateId.java
|
| @@ -0,0 +1,22 @@
|
| +// Copyright 2017 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.suggestions;
|
| +
|
| +import android.support.annotation.IntDef;
|
| +
|
| +import java.lang.annotation.Retention;
|
| +import java.lang.annotation.RetentionPolicy;
|
| +
|
| +/**
|
| + * Payloads to be passed to mark the different types of partial binds that can be made on view
|
| + * holders
|
| + * @see org.chromium.chrome.browser.ntp.cards.InnerNode#notifyItemChanged(int, Object)
|
| + */
|
| +@IntDef({PartialUpdateId.OFFLINE_BADGE})
|
| +@Retention(RetentionPolicy.SOURCE)
|
| +public @interface PartialUpdateId {
|
| + /** Marks a request to update a suggestion's offline badge */
|
| + int OFFLINE_BADGE = 1;
|
| +}
|
|
|