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

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

Issue 2054823002: PaymentRequest: complete() method should take PaymentComplete enum value. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 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/PaymentResponse.idl
diff --git a/third_party/WebKit/Source/modules/payments/PaymentResponse.idl b/third_party/WebKit/Source/modules/payments/PaymentResponse.idl
index ce9b80da1d38a15cf57a0f4b65d0a5baed80cb0a..a24427ea1fb2cdd9ab56097aff841e87f738cc08 100644
--- a/third_party/WebKit/Source/modules/payments/PaymentResponse.idl
+++ b/third_party/WebKit/Source/modules/payments/PaymentResponse.idl
@@ -2,6 +2,14 @@
// 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/#idl-def-paymentcomplete
+
+enum PaymentComplete {
+ "success",
+ "fail",
+ ""
+};
+
// https://w3c.github.io/browser-payment-api/specs/paymentrequest.html#paymentresponse-interface
[
@@ -14,5 +22,5 @@
[CallWith=ScriptState, RaisesException] readonly attribute object details;
readonly attribute PaymentAddress? shippingAddress;
- [CallWith=ScriptState] Promise<void> complete(boolean success);
+ [CallWith=ScriptState] Promise<void> complete(optional PaymentComplete paymentResult = "");
};

Powered by Google App Engine
This is Rietveld 408576698