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

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

Issue 2054823002: PaymentRequest: complete() method should take PaymentComplete enum value. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/public/platform/modules/payments/payment_request.mojom
diff --git a/third_party/WebKit/public/platform/modules/payments/payment_request.mojom b/third_party/WebKit/public/platform/modules/payments/payment_request.mojom
index 1cbced4beb598794ccd26bf4e17c10047bcff868..5bba88dfe5a4849aae268ac1f698e0106b2bb22e 100644
--- a/third_party/WebKit/public/platform/modules/payments/payment_request.mojom
+++ b/third_party/WebKit/public/platform/modules/payments/payment_request.mojom
@@ -105,6 +105,12 @@ struct PaymentMethodData {
string stringified_data;
};
+enum PaymentComplete {
+ SUCCESS,
+ FAIL,
+ UNKNOWN
+};
+
interface PaymentRequest {
SetClient(PaymentRequestClient client);
Show(array<PaymentMethodData> methodData,
@@ -112,5 +118,5 @@ interface PaymentRequest {
PaymentOptions options);
UpdateWith(PaymentDetails details);
Abort();
- Complete(bool success);
+ Complete(PaymentComplete result);
};

Powered by Google App Engine
This is Rietveld 408576698