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(); |
}; |