Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(46)

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/infobar/CardDetail.java

Issue 2026353002: [Autofill] Credit Card Assist Infobar (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cleaning Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698