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

Side by Side Diff: third_party/WebKit/public/platform/modules/payments/payment_request.mojom

Issue 2355463002: [PaymentReqeust] Add error message in PaymentDetails. (in blink side) (Closed)
Patch Set: rebase from origin Created 4 years, 2 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
« no previous file with comments | « third_party/WebKit/Source/modules/payments/PaymentsValidators.cpp ('k') | no next file » | 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 array<string> supported_methods; 96 array<string> supported_methods;
97 PaymentItem total; 97 PaymentItem total;
98 array<PaymentItem> additional_display_items; 98 array<PaymentItem> additional_display_items;
99 }; 99 };
100 100
101 struct PaymentDetails { 101 struct PaymentDetails {
102 PaymentItem total; 102 PaymentItem total;
103 array<PaymentItem> display_items; 103 array<PaymentItem> display_items;
104 array<PaymentShippingOption> shipping_options; 104 array<PaymentShippingOption> shipping_options;
105 array<PaymentDetailsModifier> modifiers; 105 array<PaymentDetailsModifier> modifiers;
106 string error;
106 }; 107 };
107 108
108 struct PaymentOptions { 109 struct PaymentOptions {
109 bool request_payer_name; 110 bool request_payer_name;
110 bool request_payer_email; 111 bool request_payer_email;
111 bool request_payer_phone; 112 bool request_payer_phone;
112 bool request_shipping; 113 bool request_shipping;
113 }; 114 };
114 115
115 struct PaymentMethodData { 116 struct PaymentMethodData {
(...skipping 19 matching lines...) Expand all
135 interface PaymentRequest { 136 interface PaymentRequest {
136 Init(PaymentRequestClient client, 137 Init(PaymentRequestClient client,
137 array<PaymentMethodData> methodData, 138 array<PaymentMethodData> methodData,
138 PaymentDetails details, 139 PaymentDetails details,
139 PaymentOptions options); 140 PaymentOptions options);
140 Show(); 141 Show();
141 UpdateWith(PaymentDetails details); 142 UpdateWith(PaymentDetails details);
142 Abort(); 143 Abort();
143 Complete(PaymentComplete result); 144 Complete(PaymentComplete result);
144 }; 145 };
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/payments/PaymentsValidators.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698