| 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 #include "modules/payments/PaymentAddress.h" | 5 #include "modules/payments/PaymentAddress.h" |
| 6 | 6 |
| 7 #include "bindings/core/v8/V8ObjectBuilder.h" | 7 #include "bindings/core/v8/V8ObjectBuilder.h" |
| 8 #include "wtf/text/StringBuilder.h" | 8 #include "platform/wtf/text/StringBuilder.h" |
| 9 | 9 |
| 10 namespace blink { | 10 namespace blink { |
| 11 | 11 |
| 12 PaymentAddress::PaymentAddress( | 12 PaymentAddress::PaymentAddress( |
| 13 payments::mojom::blink::PaymentAddressPtr address) | 13 payments::mojom::blink::PaymentAddressPtr address) |
| 14 : country_(address->country), | 14 : country_(address->country), |
| 15 address_line_(address->address_line), | 15 address_line_(address->address_line), |
| 16 region_(address->region), | 16 region_(address->region), |
| 17 city_(address->city), | 17 city_(address->city), |
| 18 dependent_locality_(address->dependent_locality), | 18 dependent_locality_(address->dependent_locality), |
| (...skipping 24 matching lines...) Expand all Loading... |
| 43 result.AddString("postalCode", postalCode()); | 43 result.AddString("postalCode", postalCode()); |
| 44 result.AddString("sortingCode", sortingCode()); | 44 result.AddString("sortingCode", sortingCode()); |
| 45 result.AddString("languageCode", languageCode()); | 45 result.AddString("languageCode", languageCode()); |
| 46 result.AddString("organization", organization()); | 46 result.AddString("organization", organization()); |
| 47 result.AddString("recipient", recipient()); | 47 result.AddString("recipient", recipient()); |
| 48 result.AddString("phone", phone()); | 48 result.AddString("phone", phone()); |
| 49 return result.GetScriptValue(); | 49 return result.GetScriptValue(); |
| 50 } | 50 } |
| 51 | 51 |
| 52 } // namespace blink | 52 } // namespace blink |
| OLD | NEW |