| Index: chrome/android/java/src/org/chromium/chrome/browser/payments/WebBasedPaymentAppBridge.java
|
| diff --git a/chrome/android/java/src/org/chromium/chrome/browser/payments/WebBasedPaymentAppBridge.java b/chrome/android/java/src/org/chromium/chrome/browser/payments/WebBasedPaymentAppBridge.java
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..7bfd6178719a8a2ed1b9c9f6730dab231e339e2b
|
| --- /dev/null
|
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/payments/WebBasedPaymentAppBridge.java
|
| @@ -0,0 +1,49 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +package org.chromium.chrome.browser.payments;
|
| +
|
| +import android.graphics.drawable.Drawable;
|
| +
|
| +import java.util.ArrayList;
|
| +import java.util.List;
|
| +
|
| +/**
|
| + * Native bridge for interacting with web based payment apps.
|
| + */
|
| +public class WebBasedPaymentAppBridge {
|
| + /**
|
| + * This class represents a payment app manifest as defined in the Payment
|
| + * App API specification.
|
| + *
|
| + * @see https://w3c.github.io/webpayments-payment-apps-api/#payment-app-manifest
|
| + */
|
| + public class Manifest {
|
| + public String id;
|
| + public String label;
|
| + public Drawable icon;
|
| + public List<Option> options = new ArrayList<>();
|
| + }
|
| +
|
| + /**
|
| + * This class represents a payment option as defined in the Payment App API
|
| + * specification.
|
| + *
|
| + * @see https://w3c.github.io/webpayments-payment-apps-api/#payment-app-options
|
| + */
|
| + public class Option {
|
| + public String id;
|
| + public String label;
|
| + public Drawable icon;
|
| + public List<String> enabledMethods = new ArrayList<>();
|
| + }
|
| +
|
| + /**
|
| + * Get a list of all the installed app manifests.
|
| + */
|
| + public List<Manifest> getAllAppManifests() {
|
| + // Not yet implemented
|
| + return new ArrayList<Manifest>();
|
| + }
|
| +}
|
|
|