Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 package org.chromium.chrome.browser.suggestions; | 5 package org.chromium.chrome.browser.suggestions; |
| 6 | 6 |
| 7 import android.support.annotation.IntDef; | 7 import android.support.annotation.IntDef; |
| 8 | 8 |
| 9 import java.lang.annotation.Retention; | 9 import java.lang.annotation.Retention; |
| 10 import java.lang.annotation.RetentionPolicy; | 10 import java.lang.annotation.RetentionPolicy; |
| 11 | 11 |
| 12 /** | 12 /** |
| 13 * Payloads to be passed to mark the different types of partial binds that can b e made on view | 13 * Payloads to be passed to mark the different types of partial binds that can b e made on view |
| 14 * holders | 14 * holders |
| 15 * @see org.chromium.chrome.browser.ntp.cards.InnerNode#notifyItemChanged(int, O bject) | 15 * @see org.chromium.chrome.browser.ntp.cards.InnerNode#notifyItemChanged(int, O bject) |
| 16 */ | 16 */ |
| 17 @IntDef({PartialUpdateId.OFFLINE_BADGE}) | 17 @IntDef({PartialUpdateId.OFFLINE_BADGE}) |
| 18 @Retention(RetentionPolicy.SOURCE) | 18 @Retention(RetentionPolicy.SOURCE) |
| 19 public @interface PartialUpdateId { | 19 public @interface PartialUpdateId { |
| 20 /** Marks a request to update a suggestion's offline badge */ | 20 /** Marks a request to update a suggestion's offline badge */ |
| 21 int OFFLINE_BADGE = 1; | 21 int OFFLINE_BADGE = 1; |
| 22 | |
| 23 /** Marks a request to update a card's background */ | |
|
Bernhard Bauer
2017/01/24 17:20:05
Maybe add a comment that this might be dispatched
dgn
2017/01/24 20:09:53
Done.
| |
| 24 int CARD_BACKGROUND = 2; | |
| 22 } | 25 } |
| OLD | NEW |