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

Unified Diff: components/payments/payment_request.mojom

Issue 2516923002: [Merge M-56] Add canMakeActivePayment() method to web payments. (Closed)
Patch Set: Created 4 years, 1 month 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: components/payments/payment_request.mojom
diff --git a/components/payments/payment_request.mojom b/components/payments/payment_request.mojom
index 1e8bc5c307052972c4038ca2fff5a4ff4e6e2323..9d95c51a60dcee6f551ccbcab524d8aee2e86216 100644
--- a/components/payments/payment_request.mojom
+++ b/components/payments/payment_request.mojom
@@ -77,6 +77,12 @@ enum PaymentErrorReason {
NOT_SUPPORTED
};
+enum ActivePaymentQueryResult {
+ CAN_MAKE_ACTIVE_PAYMENT,
+ CANNOT_MAKE_ACTIVE_PAYMENT,
+ QUERY_QUOTA_EXCEEDED
+};
+
interface PaymentRequestClient {
OnShippingAddressChange(PaymentAddress address);
OnShippingOptionChange(string shipping_option_id);
@@ -84,6 +90,7 @@ interface PaymentRequestClient {
OnError(PaymentErrorReason error);
OnComplete();
OnAbort(bool aborted_successfully);
+ OnCanMakeActivePayment(ActivePaymentQueryResult result);
};
struct PaymentItem {
@@ -189,4 +196,5 @@ interface PaymentRequest {
UpdateWith(PaymentDetails details);
Abort();
Complete(PaymentComplete result);
+ CanMakeActivePayment();
};

Powered by Google App Engine
This is Rietveld 408576698