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 51% |
copy from third_party/WebKit/Source/modules/payments/PaymentResponse.idl |
copy to third_party/WebKit/Source/modules/payments/PaymentRequestUpdateEvent.idl |
index 8f33f40c6996439b7277191ff1d5fedc5a5a7314..f8aea3d4a96a2f92828245a6a19d4b8f05e175f8 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] void updateWith(Promise<PaymentDetails> d); |
}; |