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

Unified Diff: third_party/WebKit/Source/modules/payments/PaymentRequestEvent.idl

Issue 2887713002: PaymentHandler: Merge PaymentAppRequest and PaymentRequestEvent. (Closed)
Patch Set: rebase Created 3 years, 7 months 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
Index: third_party/WebKit/Source/modules/payments/PaymentRequestEvent.idl
diff --git a/third_party/WebKit/Source/modules/payments/PaymentRequestEvent.idl b/third_party/WebKit/Source/modules/payments/PaymentRequestEvent.idl
index 01cf8e54b8404316afce7d4f439f9a2b003f2d62..15e18ecca676dd712840250d0300de970396c624 100644
--- a/third_party/WebKit/Source/modules/payments/PaymentRequestEvent.idl
+++ b/third_party/WebKit/Source/modules/payments/PaymentRequestEvent.idl
@@ -2,12 +2,24 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// https://w3c.github.io/webpayments-payment-apps-api/#idl-def-paymentrequestevent
+// https://w3c.github.io/payment-handler/#the-paymentrequestevent
+// TODO(zino): Once the spec issue is resolved, we should apply the changes.
+// Please see https://github.com/w3c/payment-handler/pull/162
[
RuntimeEnabled=PaymentApp,
Exposed=ServiceWorker
] interface PaymentRequestEvent : ExtendableEvent {
- readonly attribute PaymentAppRequest appRequest;
+ readonly attribute DOMString topLevelOrigin;
+ readonly attribute DOMString paymentRequestOrigin;
+ readonly attribute DOMString paymentRequestId;
+ readonly attribute sequence<PaymentMethodData> methodData;
+ readonly attribute PaymentItem total;
+ readonly attribute sequence<PaymentDetailsModifier> modifiers;
+ readonly attribute DOMString instrumentKey;
+
+ // TODO(gogerald): We should implement this function.
+ // Please see: http://crbug.com/720027
+ // Promise<WindowClient> openWindow(USVString url);
[CallWith=ScriptState, RaisesException] void respondWith(Promise<PaymentResponse> response);
};

Powered by Google App Engine
This is Rietveld 408576698