Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1338)

Unified Diff: third_party/WebKit/public/platform/modules/payments/payment_app.mojom

Issue 2476343002: PaymentApp: Initial implementation for PaymentAppManager.setManifest(). (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/public/platform/modules/payments/OWNERS ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
+};
« no previous file with comments | « third_party/WebKit/public/platform/modules/payments/OWNERS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698