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

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

Issue 2946013002: PaymentHandler: Implement requestPermission().
Patch Set: PaymentHandler: Implement requestPermission(). Created 3 years, 6 months 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/PaymentManager.idl
diff --git a/third_party/WebKit/Source/modules/payments/PaymentManager.idl b/third_party/WebKit/Source/modules/payments/PaymentManager.idl
index 1f9d4dc3868fe6905b3e74bb1be86cb4cb63a8fb..7acdf762c4fd6190a72226ad2a8249d8965b2eab 100644
--- a/third_party/WebKit/Source/modules/payments/PaymentManager.idl
+++ b/third_party/WebKit/Source/modules/payments/PaymentManager.idl
@@ -2,12 +2,14 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// https://w3c.github.io/webpayments-payment-apps-api/#idl-def-paymentappmanager
+// https://w3c.github.io/payment-handler/#paymentmanager-interface
[
RuntimeEnabled=PaymentApp,
ConstructorCallWith=ExecutionContext,
- DependentLifetime
+ DependentLifetime,
+ Exposed=(Window,Worker)
] interface PaymentManager {
readonly attribute PaymentInstruments instruments;
+ [CallWith=ScriptState, Exposed=Window] Promise<PermissionState> requestPermission();
};

Powered by Google App Engine
This is Rietveld 408576698