| OLD | NEW |
| 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 }; | 89 }; |
| 90 | 90 |
| 91 interface PaymentRequestClient { | 91 interface PaymentRequestClient { |
| 92 OnShippingAddressChange(PaymentAddress address); | 92 OnShippingAddressChange(PaymentAddress address); |
| 93 OnShippingOptionChange(string shipping_option_id); | 93 OnShippingOptionChange(string shipping_option_id); |
| 94 OnPaymentResponse(PaymentResponse response); | 94 OnPaymentResponse(PaymentResponse response); |
| 95 OnError(PaymentErrorReason error); | 95 OnError(PaymentErrorReason error); |
| 96 OnComplete(); | 96 OnComplete(); |
| 97 OnAbort(bool aborted_successfully); | 97 OnAbort(bool aborted_successfully); |
| 98 OnCanMakePayment(CanMakePaymentQueryResult result); | 98 OnCanMakePayment(CanMakePaymentQueryResult result); |
| 99 WarnNoFavicon(); |
| 99 }; | 100 }; |
| 100 | 101 |
| 101 struct PaymentItem { | 102 struct PaymentItem { |
| 102 string label; | 103 string label; |
| 103 PaymentCurrencyAmount amount; | 104 PaymentCurrencyAmount amount; |
| 104 bool pending; | 105 bool pending; |
| 105 }; | 106 }; |
| 106 | 107 |
| 107 struct PaymentShippingOption { | 108 struct PaymentShippingOption { |
| 108 string id; | 109 string id; |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 Init(PaymentRequestClient client, | 225 Init(PaymentRequestClient client, |
| 225 array<PaymentMethodData> method_data, | 226 array<PaymentMethodData> method_data, |
| 226 PaymentDetails details, | 227 PaymentDetails details, |
| 227 PaymentOptions options); | 228 PaymentOptions options); |
| 228 Show(); | 229 Show(); |
| 229 UpdateWith(PaymentDetails details); | 230 UpdateWith(PaymentDetails details); |
| 230 Abort(); | 231 Abort(); |
| 231 Complete(PaymentComplete result); | 232 Complete(PaymentComplete result); |
| 232 CanMakePayment(); | 233 CanMakePayment(); |
| 233 }; | 234 }; |
| OLD | NEW |