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

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

Issue 2581683006: [Merge M-56] Enable canMakePayment() for web payments. (Closed)
Patch Set: Created 4 years 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/PaymentRequest.idl
diff --git a/third_party/WebKit/Source/modules/payments/PaymentRequest.idl b/third_party/WebKit/Source/modules/payments/PaymentRequest.idl
index 83e985a9014a29ed99d206544f5008611e20b307..2a920ede557fe187c3583bf68b1732de30c61456 100644
--- a/third_party/WebKit/Source/modules/payments/PaymentRequest.idl
+++ b/third_party/WebKit/Source/modules/payments/PaymentRequest.idl
@@ -15,6 +15,7 @@
] interface PaymentRequest : EventTarget {
[CallWith=ScriptState] Promise<PaymentResponse> show();
[CallWith=ScriptState] Promise<void> abort();
+ [CallWith=ScriptState, RuntimeEnabled=CanMakePayment] Promise<boolean> canMakePayment();
[ImplementedAs=getShippingAddress] readonly attribute PaymentAddress? shippingAddress;
readonly attribute DOMString? shippingOption;
@@ -22,7 +23,4 @@
attribute EventHandler onshippingaddresschange;
attribute EventHandler onshippingoptionchange;
-
- // https://github.com/w3c/browser-payment-api/issues/310
- [CallWith=ScriptState, RuntimeEnabled=CanMakePayment] Promise<boolean> canMakePayment();
};

Powered by Google App Engine
This is Rietveld 408576698