| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 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.payments; | 5 package org.chromium.components.payments; |
| 6 | 6 |
| 7 import org.chromium.base.annotations.JNINamespace; | 7 import org.chromium.base.annotations.JNINamespace; |
| 8 | 8 |
| 9 import java.util.Locale; | 9 import java.util.Locale; |
| 10 | 10 |
| 11 /** | 11 /** |
| 12 * Formatter for currency amounts. | 12 * Formatter for currency amounts. |
| 13 * https://w3c.github.io/browser-payment-api/specs/paymentrequest.html#currencya
mount | 13 * https://w3c.github.io/browser-payment-api/specs/paymentrequest.html#currencya
mount |
| 14 */ | 14 */ |
| 15 @JNINamespace("payments") | 15 @JNINamespace("payments") |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 | 69 |
| 70 return nativeFormat(mCurrencyFormatterAndroid, amountValue); | 70 return nativeFormat(mCurrencyFormatterAndroid, amountValue); |
| 71 } | 71 } |
| 72 | 72 |
| 73 private native long nativeInitCurrencyFormatterAndroid( | 73 private native long nativeInitCurrencyFormatterAndroid( |
| 74 String currencyCode, String currencySystem, String localeName); | 74 String currencyCode, String currencySystem, String localeName); |
| 75 private native void nativeDestroy(long nativeCurrencyFormatterAndroid); | 75 private native void nativeDestroy(long nativeCurrencyFormatterAndroid); |
| 76 private native String nativeFormat(long nativeCurrencyFormatterAndroid, Stri
ng amountValue); | 76 private native String nativeFormat(long nativeCurrencyFormatterAndroid, Stri
ng amountValue); |
| 77 private native String nativeGetFormattedCurrencyCode(long nativeCurrencyForm
atterAndroid); | 77 private native String nativeGetFormattedCurrencyCode(long nativeCurrencyForm
atterAndroid); |
| 78 } | 78 } |
| OLD | NEW |