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

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

Issue 2145553002: Parameterize OnError method. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed review comments Created 4 years, 5 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 6a113f58e5ae63da1b2465db1ed0ffd6fb6ca470..bd9421fc520d604d1e46761fca5124a0268a6440 100644
--- a/third_party/WebKit/public/platform/modules/payments/payment_request.mojom
+++ b/third_party/WebKit/public/platform/modules/payments/payment_request.mojom
@@ -63,11 +63,17 @@ struct PaymentResponse {
string? payer_phone;
};
+enum PaymentErrorReason {
+ UNKNOWN,
+ CANCEL,
+ NOT_SUPPORTED
+};
+
interface PaymentRequestClient {
OnShippingAddressChange(PaymentAddress address);
OnShippingOptionChange(string shipping_option_id);
OnPaymentResponse(PaymentResponse response);
- OnError();
+ OnError(PaymentErrorReason error);
OnComplete();
OnAbort(bool aborted_successfully);
};

Powered by Google App Engine
This is Rietveld 408576698