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

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

Issue 2467393002: Add canMakeActivePayment() method to web payments. (Closed)
Patch Set: Hide behind a flag 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..5b88af6c3de862b1dd58f80e819723e2c5e789a3 100644
--- a/third_party/WebKit/Source/modules/payments/PaymentRequest.idl
+++ b/third_party/WebKit/Source/modules/payments/PaymentRequest.idl
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// https://w3c.github.io/browser-payment-api/#paymentrequest-interface
+// https://w3c.github.io/browser-payment-api/
// http://crbug.com/587995
[
@@ -22,4 +22,8 @@
attribute EventHandler onshippingaddresschange;
attribute EventHandler onshippingoptionchange;
+
+ // https://github.com/zkoch/zkoch.github.io/blob/master/pr-detect-avail.md
+ // https://github.com/w3c/browser-payment-api/issues/310
+ [CallWith=ScriptState, RuntimeEnabled=CanMakeActivePayment] Promise<bool> canMakeActivePayment();
};

Powered by Google App Engine
This is Rietveld 408576698