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

Unified Diff: components/payments/content/payment_app.mojom

Issue 2718013004: PaymentApp: Implement respondWith() in PaymentRequestEvent. (content side) (Closed)
Patch Set: PaymentApp: Implement respondWith() in PaymentRequestEvent. (content side) Created 3 years, 9 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: components/payments/content/payment_app.mojom
diff --git a/components/payments/content/payment_app.mojom b/components/payments/content/payment_app.mojom
index 0d9f7c655ad95ce00108c6592d6e4bf1858121e4..19cbf1febef4d73057f1fe92ce02e8f8aea8c259 100644
--- a/components/payments/content/payment_app.mojom
+++ b/components/payments/content/payment_app.mojom
@@ -5,6 +5,7 @@
module payments.mojom;
import "components/payments/content/payment_request.mojom";
+import "mojo/common/time.mojom";
import "url/mojo/url.mojom";
enum PaymentAppManifestError {
@@ -42,3 +43,13 @@ struct PaymentAppRequest {
array<PaymentDetailsModifier> modifiers;
string optionId;
};
+
+struct PaymentAppResponse {
please use gerrit instead 2017/03/21 16:09:40 If mojom language supports inheritance, then pleas
zino 2017/03/22 18:04:44 As far as I know, the mojom struct doesn't support
+ string method_name;
+ string stringified_details;
+};
+
+interface PaymentAppResponseCallback {
please use gerrit instead 2017/03/21 16:09:40 Nit: would be more clear to have an interface like
zino 2017/03/22 18:04:44 To dispatch PaymentRequestEvent in registered serv
+ OnPaymentAppResponse(payments.mojom.PaymentAppResponse response,
please use gerrit instead 2017/03/21 16:09:40 No need for "payments.mojom." module name here, be
zino 2017/03/22 18:04:44 Done.
+ mojo.common.mojom.Time dispatch_event_time);
+};

Powered by Google App Engine
This is Rietveld 408576698