| 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.chrome.browser.payments; |
| 6 | 6 |
| 7 import android.app.Activity; | 7 import android.app.Activity; |
| 8 | 8 |
| 9 import org.chromium.chrome.browser.ChromeFeatureList; | 9 import org.chromium.chrome.browser.ChromeFeatureList; |
| 10 import org.chromium.chrome.browser.payments.PaymentRequestImpl.PaymentRequestDis
missObserver; | 10 import org.chromium.chrome.browser.payments.PaymentRequestImpl.PaymentRequestDis
missObserver; |
| 11 import org.chromium.content.browser.ContentViewCore; | 11 import org.chromium.content.browser.ContentViewCore; |
| 12 import org.chromium.content_public.browser.WebContents; | 12 import org.chromium.content_public.browser.WebContents; |
| 13 import org.chromium.mojo.system.MojoException; | 13 import org.chromium.mojo.system.MojoException; |
| 14 import org.chromium.payments.mojom.PaymentDetails; | 14 import org.chromium.payments.mojom.PaymentDetails; |
| 15 import org.chromium.payments.mojom.PaymentErrorReason; | 15 import org.chromium.payments.mojom.PaymentErrorReason; |
| 16 import org.chromium.payments.mojom.PaymentMethodData; | 16 import org.chromium.payments.mojom.PaymentMethodData; |
| 17 import org.chromium.payments.mojom.PaymentOptions; | 17 import org.chromium.payments.mojom.PaymentOptions; |
| 18 import org.chromium.payments.mojom.PaymentRequest; | 18 import org.chromium.payments.mojom.PaymentRequest; |
| 19 import org.chromium.payments.mojom.PaymentRequestClient; | 19 import org.chromium.payments.mojom.PaymentRequestClient; |
| 20 import org.chromium.services.shell.InterfaceFactory; | 20 import org.chromium.services.service_manager.InterfaceFactory; |
| 21 import org.chromium.ui.base.WindowAndroid; | 21 import org.chromium.ui.base.WindowAndroid; |
| 22 | 22 |
| 23 /** | 23 /** |
| 24 * Creates instances of PaymentRequest. | 24 * Creates instances of PaymentRequest. |
| 25 */ | 25 */ |
| 26 public class PaymentRequestFactory | 26 public class PaymentRequestFactory |
| 27 implements InterfaceFactory<PaymentRequest>, PaymentRequestDismissObserv
er { | 27 implements InterfaceFactory<PaymentRequest>, PaymentRequestDismissObserv
er { |
| 28 private final WebContents mWebContents; | 28 private final WebContents mWebContents; |
| 29 private boolean mIsPaymentRequestRunning; | 29 private boolean mIsPaymentRequestRunning; |
| 30 | 30 |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 mIsPaymentRequestRunning = true; | 95 mIsPaymentRequestRunning = true; |
| 96 | 96 |
| 97 return new PaymentRequestImpl(context, mWebContents, this); | 97 return new PaymentRequestImpl(context, mWebContents, this); |
| 98 } | 98 } |
| 99 | 99 |
| 100 @Override | 100 @Override |
| 101 public void onPaymentRequestDismissed() { | 101 public void onPaymentRequestDismissed() { |
| 102 mIsPaymentRequestRunning = false; | 102 mIsPaymentRequestRunning = false; |
| 103 } | 103 } |
| 104 } | 104 } |
| OLD | NEW |