| 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 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 OnShippingOptionChange(string shipping_option_id); | 76 OnShippingOptionChange(string shipping_option_id); |
| 77 OnPaymentResponse(PaymentResponse response); | 77 OnPaymentResponse(PaymentResponse response); |
| 78 OnError(PaymentErrorReason error); | 78 OnError(PaymentErrorReason error); |
| 79 OnComplete(); | 79 OnComplete(); |
| 80 OnAbort(bool aborted_successfully); | 80 OnAbort(bool aborted_successfully); |
| 81 }; | 81 }; |
| 82 | 82 |
| 83 struct PaymentItem { | 83 struct PaymentItem { |
| 84 string label; | 84 string label; |
| 85 PaymentCurrencyAmount amount; | 85 PaymentCurrencyAmount amount; |
| 86 bool pending; |
| 86 }; | 87 }; |
| 87 | 88 |
| 88 struct PaymentShippingOption { | 89 struct PaymentShippingOption { |
| 89 string id; | 90 string id; |
| 90 string label; | 91 string label; |
| 91 PaymentCurrencyAmount amount; | 92 PaymentCurrencyAmount amount; |
| 92 bool selected; | 93 bool selected; |
| 93 }; | 94 }; |
| 94 | 95 |
| 95 struct PaymentDetailsModifier { | 96 struct PaymentDetailsModifier { |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 interface PaymentRequest { | 137 interface PaymentRequest { |
| 137 Init(PaymentRequestClient client, | 138 Init(PaymentRequestClient client, |
| 138 array<PaymentMethodData> methodData, | 139 array<PaymentMethodData> methodData, |
| 139 PaymentDetails details, | 140 PaymentDetails details, |
| 140 PaymentOptions options); | 141 PaymentOptions options); |
| 141 Show(); | 142 Show(); |
| 142 UpdateWith(PaymentDetails details); | 143 UpdateWith(PaymentDetails details); |
| 143 Abort(); | 144 Abort(); |
| 144 Complete(PaymentComplete result); | 145 Complete(PaymentComplete result); |
| 145 }; | 146 }; |
| OLD | NEW |