| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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.autofill; | 5 package org.chromium.chrome.browser.autofill; |
| 6 | 6 |
| 7 import android.content.Context; | 7 import android.content.Context; |
| 8 | 8 |
| 9 import org.chromium.base.CalledByNative; | 9 import org.chromium.base.annotations.CalledByNative; |
| 10 import org.chromium.base.JNINamespace; | 10 import org.chromium.base.annotations.JNINamespace; |
| 11 import org.chromium.ui.base.WindowAndroid; | 11 import org.chromium.ui.base.WindowAndroid; |
| 12 | 12 |
| 13 /** | 13 /** |
| 14 * Helper for detecting whether the device supports scanning credit cards and fo
r scanning credit | 14 * Helper for detecting whether the device supports scanning credit cards and fo
r scanning credit |
| 15 * cards. The default implementation cannot scan cards. An implementing subclass
must provide a | 15 * cards. The default implementation cannot scan cards. An implementing subclass
must provide a |
| 16 * factory that builds its instances. | 16 * factory that builds its instances. |
| 17 */ | 17 */ |
| 18 @JNINamespace("autofill") | 18 @JNINamespace("autofill") |
| 19 public class CreditCardScanner { | 19 public class CreditCardScanner { |
| 20 /** | 20 /** |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 /** | 112 /** |
| 113 * Notifies the native object that scanning was successful. | 113 * Notifies the native object that scanning was successful. |
| 114 * @param nativeCreditCardScannerViewAndroid Pointer to the native object. | 114 * @param nativeCreditCardScannerViewAndroid Pointer to the native object. |
| 115 * @param cardNumber Credit card number. | 115 * @param cardNumber Credit card number. |
| 116 * @param expirationMonth Expiration month in the range [1, 12]. | 116 * @param expirationMonth Expiration month in the range [1, 12]. |
| 117 * @param expirationYear Expiration year, e.g. 2000. | 117 * @param expirationYear Expiration year, e.g. 2000. |
| 118 */ | 118 */ |
| 119 protected native void nativeScanCompleted(long nativeCreditCardScannerViewAn
droid, | 119 protected native void nativeScanCompleted(long nativeCreditCardScannerViewAn
droid, |
| 120 String cardNumber, int expirationMonth, int expirationYear); | 120 String cardNumber, int expirationMonth, int expirationYear); |
| 121 } | 121 } |
| OLD | NEW |