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

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

Issue 2579793003: Enable canMakePayment() for web payments. (Closed)
Patch Set: Remove command-line flag from tests. 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 da5b1d4bed24c311c6dffa6c1422138a1213ea64..943b325dde16a05e7514fb3e70429ce84f677553 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