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

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

Issue 2451873003: Allow duplicate payment method identifiers. (Closed)
Patch Set: Make modifier total optional 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/payments/payment-request-interface.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 88
89 struct PaymentShippingOption { 89 struct PaymentShippingOption {
90 string id; 90 string id;
91 string label; 91 string label;
92 PaymentCurrencyAmount amount; 92 PaymentCurrencyAmount amount;
93 bool selected; 93 bool selected;
94 }; 94 };
95 95
96 struct PaymentDetailsModifier { 96 struct PaymentDetailsModifier {
97 array<string> supported_methods; 97 array<string> supported_methods;
98 PaymentItem total; 98 PaymentItem? total;
99 array<PaymentItem> additional_display_items; 99 array<PaymentItem> additional_display_items;
100 }; 100 };
101 101
102 struct PaymentDetails { 102 struct PaymentDetails {
103 PaymentItem total; 103 PaymentItem total;
104 array<PaymentItem> display_items; 104 array<PaymentItem> display_items;
105 array<PaymentShippingOption> shipping_options; 105 array<PaymentShippingOption> shipping_options;
106 array<PaymentDetailsModifier> modifiers; 106 array<PaymentDetailsModifier> modifiers;
107 string error; 107 string error;
108 }; 108 };
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 interface PaymentRequest { 144 interface PaymentRequest {
145 Init(PaymentRequestClient client, 145 Init(PaymentRequestClient client,
146 array<PaymentMethodData> methodData, 146 array<PaymentMethodData> methodData,
147 PaymentDetails details, 147 PaymentDetails details,
148 PaymentOptions options); 148 PaymentOptions options);
149 Show(); 149 Show();
150 UpdateWith(PaymentDetails details); 150 UpdateWith(PaymentDetails details);
151 Abort(); 151 Abort();
152 Complete(PaymentComplete result); 152 Complete(PaymentComplete result);
153 }; 153 };
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/payments/payment-request-interface.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698