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

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: add test Created 4 years, 3 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.mojom.payments"] 5 [JavaPackage="org.chromium.mojom.payments"]
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_email; 110 bool request_payer_email;
110 bool request_payer_phone; 111 bool request_payer_phone;
111 bool request_shipping; 112 bool request_shipping;
112 }; 113 };
113 114
114 struct PaymentMethodData { 115 struct PaymentMethodData {
115 array<string> supported_methods; 116 array<string> supported_methods;
(...skipping 18 matching lines...) Expand all
134 interface PaymentRequest { 135 interface PaymentRequest {
135 Init(PaymentRequestClient client, 136 Init(PaymentRequestClient client,
136 array<PaymentMethodData> methodData, 137 array<PaymentMethodData> methodData,
137 PaymentDetails details, 138 PaymentDetails details,
138 PaymentOptions options); 139 PaymentOptions options);
139 Show(); 140 Show();
140 UpdateWith(PaymentDetails details); 141 UpdateWith(PaymentDetails details);
141 Abort(); 142 Abort();
142 Complete(PaymentComplete result); 143 Complete(PaymentComplete result);
143 }; 144 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698