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

Side by Side Diff: components/payments/payment_request.mojom

Issue 2449943002: Add pending line item support for web payments. (Closed)
Patch Set: Comments 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 [JavaPackage="org.chromium.payments.mojom"] 5 [JavaPackage="org.chromium.payments.mojom"]
6 module blink.mojom; 6 module blink.mojom;
7 7
8 // The shipping address that the browser process provides to the renderer 8 // The shipping address that the browser process provides to the renderer
9 // process. Built either by the browser or a payment app. 9 // process. Built either by the browser or a payment app.
10 struct PaymentAddress { 10 struct PaymentAddress {
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 OnShippingOptionChange(string shipping_option_id); 76 OnShippingOptionChange(string shipping_option_id);
77 OnPaymentResponse(PaymentResponse response); 77 OnPaymentResponse(PaymentResponse response);
78 OnError(PaymentErrorReason error); 78 OnError(PaymentErrorReason error);
79 OnComplete(); 79 OnComplete();
80 OnAbort(bool aborted_successfully); 80 OnAbort(bool aborted_successfully);
81 }; 81 };
82 82
83 struct PaymentItem { 83 struct PaymentItem {
84 string label; 84 string label;
85 PaymentCurrencyAmount amount; 85 PaymentCurrencyAmount amount;
86 bool pending;
86 }; 87 };
87 88
88 struct PaymentShippingOption { 89 struct PaymentShippingOption {
89 string id; 90 string id;
90 string label; 91 string label;
91 PaymentCurrencyAmount amount; 92 PaymentCurrencyAmount amount;
92 bool selected; 93 bool selected;
93 }; 94 };
94 95
95 struct PaymentDetailsModifier { 96 struct PaymentDetailsModifier {
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 interface PaymentRequest { 137 interface PaymentRequest {
137 Init(PaymentRequestClient client, 138 Init(PaymentRequestClient client,
138 array<PaymentMethodData> methodData, 139 array<PaymentMethodData> methodData,
139 PaymentDetails details, 140 PaymentDetails details,
140 PaymentOptions options); 141 PaymentOptions options);
141 Show(); 142 Show();
142 UpdateWith(PaymentDetails details); 143 UpdateWith(PaymentDetails details);
143 Abort(); 144 Abort();
144 Complete(PaymentComplete result); 145 Complete(PaymentComplete result);
145 }; 146 };
OLDNEW
« no previous file with comments | « chrome/test/data/android/payments/dynamic_shipping.js ('k') | third_party/WebKit/Source/modules/payments/PaymentItem.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698