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

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

Issue 2770193003: Implement request id in PaymentDetailsInit (Closed)
Patch Set: Rebase once more since mojom file moved Created 3 years, 7 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 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 payments.mojom; 6 module payments.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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 array<PaymentItem> additional_display_items; 186 array<PaymentItem> additional_display_items;
187 PaymentMethodData method_data; 187 PaymentMethodData method_data;
188 }; 188 };
189 189
190 struct PaymentDetails { 190 struct PaymentDetails {
191 PaymentItem? total; 191 PaymentItem? total;
192 array<PaymentItem> display_items; 192 array<PaymentItem> display_items;
193 array<PaymentShippingOption> shipping_options; 193 array<PaymentShippingOption> shipping_options;
194 array<PaymentDetailsModifier> modifiers; 194 array<PaymentDetailsModifier> modifiers;
195 string error = ""; 195 string error = "";
196 // Identifier identifying the payment request, to be exposed
197 // to payment apps. It is optional since this structure is used
198 // by PaymentDetailsUpdate (next to PaymentDetailsInit) but
199 // PaymentDetailsUpdate has no id.
200 string? id;
196 }; 201 };
197 202
198 enum PaymentShippingType { 203 enum PaymentShippingType {
199 SHIPPING, 204 SHIPPING,
200 DELIVERY, 205 DELIVERY,
201 PICKUP 206 PICKUP
202 }; 207 };
203 208
204 struct PaymentOptions { 209 struct PaymentOptions {
205 bool request_payer_name; 210 bool request_payer_name;
(...skipping 13 matching lines...) Expand all
219 Init(PaymentRequestClient client, 224 Init(PaymentRequestClient client,
220 array<PaymentMethodData> method_data, 225 array<PaymentMethodData> method_data,
221 PaymentDetails details, 226 PaymentDetails details,
222 PaymentOptions options); 227 PaymentOptions options);
223 Show(); 228 Show();
224 UpdateWith(PaymentDetails details); 229 UpdateWith(PaymentDetails details);
225 Abort(); 230 Abort();
226 Complete(PaymentComplete result); 231 Complete(PaymentComplete result);
227 CanMakePayment(); 232 CanMakePayment();
228 }; 233 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698