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

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

Issue 1931233002: Implement PaymentRequestUpdateEvent (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@explicit-shipping
Patch Set: Rebase Created 4 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/PaymentRequestUpdateEvent.idl
diff --git a/third_party/WebKit/Source/modules/payments/PaymentResponse.idl b/third_party/WebKit/Source/modules/payments/PaymentRequestUpdateEvent.idl
similarity index 50%
copy from third_party/WebKit/Source/modules/payments/PaymentResponse.idl
copy to third_party/WebKit/Source/modules/payments/PaymentRequestUpdateEvent.idl
index 8f33f40c6996439b7277191ff1d5fedc5a5a7314..1672b7dd8647a56df851d87f055d87f48e1631c1 100644
--- a/third_party/WebKit/Source/modules/payments/PaymentResponse.idl
+++ b/third_party/WebKit/Source/modules/payments/PaymentRequestUpdateEvent.idl
@@ -2,13 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// https://w3c.github.io/browser-payment-api/specs/paymentrequest.html#paymentresponse-interface
+// https://w3c.github.io/browser-payment-api/specs/paymentrequest.html#idl-def-paymentrequestupdateevent
[
RuntimeEnabled=PaymentRequest,
-] interface PaymentResponse {
- readonly attribute DOMString methodName;
- [CallWith=ScriptState, RaisesException] readonly attribute object details;
-
- [CallWith=ScriptState] Promise<void> complete(boolean success);
+ Constructor(DOMString type, optional PaymentRequestUpdateEventInit eventInitDict)
+] interface PaymentRequestUpdateEvent : Event {
+ [CallWith=ScriptState,RaisesException] void updateWith(Promise<PaymentDetails> d);
};

Powered by Google App Engine
This is Rietveld 408576698