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

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

Issue 2250793003: Separate PaymentRequest initialization and display. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698