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

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

Issue 2045833002: Add 'selected' boolean to 'ShippingOption' (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 69
70 struct PaymentItem { 70 struct PaymentItem {
71 string label; 71 string label;
72 CurrencyAmount amount; 72 CurrencyAmount amount;
73 }; 73 };
74 74
75 struct ShippingOption { 75 struct ShippingOption {
76 string id; 76 string id;
77 string label; 77 string label;
78 CurrencyAmount amount; 78 CurrencyAmount amount;
79 bool selected;
79 }; 80 };
80 81
81 struct PaymentDetails { 82 struct PaymentDetails {
82 PaymentItem total; 83 PaymentItem total;
83 array<PaymentItem> display_items; 84 array<PaymentItem> display_items;
84 array<ShippingOption> shipping_options; 85 array<ShippingOption> shipping_options;
85 }; 86 };
86 87
87 struct PaymentOptions { 88 struct PaymentOptions {
88 bool request_shipping; 89 bool request_shipping;
(...skipping 11 matching lines...) Expand all
100 // object to the payment app, for example Android Pay. There's no one 101 // object to the payment app, for example Android Pay. There's no one
101 // format for this object, so richer types cannot be used. A simple 102 // format for this object, so richer types cannot be used. A simple
102 // example: 103 // example:
103 // 104 //
104 // {"https://android.com/pay": {"gateway": "stripe"}} 105 // {"https://android.com/pay": {"gateway": "stripe"}}
105 string stringified_data); 106 string stringified_data);
106 UpdateWith(PaymentDetails details); 107 UpdateWith(PaymentDetails details);
107 Abort(); 108 Abort();
108 Complete(bool success); 109 Complete(bool success);
109 }; 110 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698