Chromium Code Reviews| Index: third_party/WebKit/public/platform/modules/payments/payment_app.mojom |
| diff --git a/third_party/WebKit/public/platform/modules/payments/payment_app.mojom b/third_party/WebKit/public/platform/modules/payments/payment_app.mojom |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..a3ec0aa2dbdd3ca8844ee6e5d79ef2fbe70b5a6b |
| --- /dev/null |
| +++ b/third_party/WebKit/public/platform/modules/payments/payment_app.mojom |
| @@ -0,0 +1,28 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
|
please use gerrit instead
2016/11/07 20:06:08
This file should be in components/payments/
zino
2016/11/07 22:32:08
Done.
|
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +module blink.mojom; |
| + |
| +enum PaymentAppManifestError { |
| + NONE, |
| + NOT_IMPLEMENTED, |
| +}; |
| + |
| +struct PaymentAppOption { |
| + string label; |
| + string? icon; |
| + string id; |
| + array<string> enabled_methods; |
|
Tom Sepez
2016/11/07 17:52:04
None of these strings are JSON any more, right?
please use gerrit instead
2016/11/07 20:05:30
These a short strings like "visa", "mastercard", e
|
| +}; |
| + |
| +struct PaymentAppManifest { |
| + string label; |
| + string? icon; |
| + array<PaymentAppOption> options; |
| +}; |
| + |
| +interface PaymentAppManager { |
| + SetManifest(string service_worker_scope, PaymentAppManifest payment_app_manifest) |
| + => (PaymentAppManifestError error); |
| +}; |