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

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

Issue 2054823002: PaymentRequest: complete() method should take PaymentComplete enum value. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: why did I do that? Created 4 years, 6 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 // blink::JSONObject::toJSONString() to generate this string. The browser 100 // blink::JSONObject::toJSONString() to generate this string. The browser
101 // parses the string via JSONObject(JsonSanitizer.sanitize(stringified_data)) 101 // parses the string via JSONObject(JsonSanitizer.sanitize(stringified_data))
102 // and passes a part of the JSON object to the payment app, for example 102 // and passes a part of the JSON object to the payment app, for example
103 // Android Pay. There's no one format for this object, so richer types cannot 103 // Android Pay. There's no one format for this object, so richer types cannot
104 // be used. A simple example: 104 // be used. A simple example:
105 // 105 //
106 // {"gateway": "stripe"} 106 // {"gateway": "stripe"}
107 string stringified_data; 107 string stringified_data;
108 }; 108 };
109 109
110 enum PaymentComplete {
111 SUCCESS,
112 FAIL,
113 UNKNOWN
114 };
115
110 interface PaymentRequest { 116 interface PaymentRequest {
111 SetClient(PaymentRequestClient client); 117 SetClient(PaymentRequestClient client);
112 Show(array<PaymentMethodData> methodData, 118 Show(array<PaymentMethodData> methodData,
113 PaymentDetails details, 119 PaymentDetails details,
114 PaymentOptions options); 120 PaymentOptions options);
115 UpdateWith(PaymentDetails details); 121 UpdateWith(PaymentDetails details);
116 Abort(); 122 Abort();
117 Complete(bool success); 123 Complete(PaymentComplete result);
118 }; 124 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698