Chromium Code Reviews| 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.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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 124 }; | 124 }; |
| 125 | 125 |
| 126 enum PaymentComplete { | 126 enum PaymentComplete { |
| 127 SUCCESS, | 127 SUCCESS, |
| 128 FAIL, | 128 FAIL, |
| 129 UNKNOWN | 129 UNKNOWN |
| 130 }; | 130 }; |
| 131 | 131 |
| 132 interface PaymentRequest { | 132 interface PaymentRequest { |
| 133 SetClient(PaymentRequestClient client); | 133 SetClient(PaymentRequestClient client); |
| 134 Show(array<PaymentMethodData> methodData, | 134 Init(array<PaymentMethodData> methodData, |
|
Marijn Kruisselbrink
2016/08/22 16:46:15
Would it make sense to pass the PaymentRequestClie
please use gerrit instead
2016/08/22 16:49:32
Good idea. I'm on it.
| |
| 135 PaymentDetails details, | 135 PaymentDetails details, |
| 136 PaymentOptions options); | 136 PaymentOptions options); |
| 137 Show(); | |
| 137 UpdateWith(PaymentDetails details); | 138 UpdateWith(PaymentDetails details); |
| 138 Abort(); | 139 Abort(); |
| 139 Complete(PaymentComplete result); | 140 Complete(PaymentComplete result); |
| 140 }; | 141 }; |
| OLD | NEW |