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

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

Issue 2467393002: Add canMakeActivePayment() method to web payments. (Closed)
Patch Set: Fix FindBugs 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: 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 c320eb7fb6df2f2e63fdf4e08415b079c00be169..fa7c6e32d0bc9368eb3cc34fa6a2335914ad4078 100644
--- a/third_party/WebKit/Source/modules/payments/PaymentRequest.idl
+++ b/third_party/WebKit/Source/modules/payments/PaymentRequest.idl
@@ -22,4 +22,7 @@
attribute EventHandler onshippingaddresschange;
attribute EventHandler onshippingoptionchange;
+
+ // https://github.com/w3c/browser-payment-api/issues/310
+ [CallWith=ScriptState, RuntimeEnabled=CanMakeActivePayment] Promise<boolean> canMakeActivePayment();
};

Powered by Google App Engine
This is Rietveld 408576698