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

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

Issue 2946013002: PaymentHandler: Implement requestPermission().
Patch Set: 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 790c57ede3e469b3c43c72041dae68ffacf9c6f1..94b4ee45cfe995c017904f10c196885f8d63c347 100644
--- a/third_party/WebKit/Source/modules/payments/PaymentManager.idl
+++ b/third_party/WebKit/Source/modules/payments/PaymentManager.idl
@@ -4,10 +4,17 @@
// https://w3c.github.io/webpayments-payment-apps-api/#idl-def-paymentappmanager
+enum PaymentHandlerPermission {
+ "default",
+ "denied",
+ "granted"
+};
+
[
RuntimeEnabled=PaymentApp,
ConstructorCallWith=ExecutionContext,
DependentLifetime,
] interface PaymentManager {
readonly attribute PaymentInstruments instruments;
+ [CallWith=ScriptState] Promise<PaymentHandlerPermission> requestPermission();
};

Powered by Google App Engine
This is Rietveld 408576698