OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "platform/payments/PlatformShippingAddress.h" |
| 6 |
| 7 #include "platform/payments/BlinkTypeConverters.h" |
| 8 |
| 9 namespace mojo { |
| 10 |
| 11 blink::PlatformShippingAddress |
| 12 TypeConverter<blink::PlatformShippingAddress, payments::mojom::ShippingAddress>:
:Convert( |
| 13 const payments::mojom::ShippingAddress& input) |
| 14 { |
| 15 blink::PlatformShippingAddress output; |
| 16 output.regionCode = input.region_code.To<WTF::String>(); |
| 17 output.addressLine = input.address_line.To<WTF::Vector<WTF::String>>(); |
| 18 output.administrativeArea = input.administrative_area.To<WTF::String>(); |
| 19 output.locality = input.locality.To<WTF::String>(); |
| 20 output.dependentLocality = input.dependent_locality.To<WTF::String>(); |
| 21 output.postalCode = input.postal_code.To<WTF::String>(); |
| 22 output.sortingCode = input.sorting_code.To<WTF::String>(); |
| 23 output.languageCode = input.language_code.To<WTF::String>(); |
| 24 output.organization = input.organization.To<WTF::String>(); |
| 25 output.recipient = input.recipient.To<WTF::String>(); |
| 26 return output; |
| 27 } |
| 28 |
| 29 } // namespace mojo |
OLD | NEW |