OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 package org.chromium.chrome.browser.infobar; |
| 6 |
| 7 import org.chromium.chrome.browser.ResourceId; |
| 8 |
| 9 /** |
| 10 * Detailed card information to show in the various Autofill infobars. |
| 11 */ |
| 12 public class CardDetail { |
| 13 /** |
| 14 * The identifier of the drawable of the card issuer icon. |
| 15 */ |
| 16 public int issuerIconDrawableId; |
| 17 |
| 18 /** |
| 19 * The label for the card. |
| 20 */ |
| 21 public String label; |
| 22 |
| 23 /** |
| 24 * The sub-label for the card. |
| 25 */ |
| 26 public String subLabel; |
| 27 |
| 28 /** |
| 29 * Creates a new instance of the detailed card information. |
| 30 * |
| 31 * @param enumeratedIconId ID corresponding to the icon that will be shown f
or this credit |
| 32 * card. The ID must have been mapped using the Reso
urceMapper class |
| 33 * before passing it to this function. |
| 34 * @param label The credit card label, for example "***1234". |
| 35 * @param subLabel The credit card sub-label, for example "Exp: 06/17". |
| 36 */ |
| 37 public CardDetail(int enumeratedIconId, String label, String subLabel) { |
| 38 this.issuerIconDrawableId = ResourceId.mapToDrawableId(enumeratedIconId)
; |
| 39 this.label = label; |
| 40 this.subLabel = subLabel; |
| 41 } |
| 42 } |
OLD | NEW |