| 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 #ifndef ShippingAddress_h | 5 #ifndef ShippingAddress_h |
| 6 #define ShippingAddress_h | 6 #define ShippingAddress_h |
| 7 | 7 |
| 8 #include "bindings/core/v8/ScriptWrappable.h" | 8 #include "bindings/core/v8/ScriptWrappable.h" |
| 9 #include "modules/ModulesExport.h" | 9 #include "modules/ModulesExport.h" |
| 10 #include "platform/heap/Handle.h" | 10 #include "platform/heap/Handle.h" |
| 11 #include "public/platform/modules/payments/payment_request.mojom-wtf.h" | 11 #include "public/platform/modules/payments/payment_request.mojom-blink.h" |
| 12 #include "wtf/Noncopyable.h" | 12 #include "wtf/Noncopyable.h" |
| 13 #include "wtf/Vector.h" | 13 #include "wtf/Vector.h" |
| 14 #include "wtf/text/WTFString.h" | 14 #include "wtf/text/WTFString.h" |
| 15 | 15 |
| 16 namespace blink { | 16 namespace blink { |
| 17 | 17 |
| 18 class MODULES_EXPORT ShippingAddress final : public GarbageCollectedFinalized<Sh
ippingAddress>, public ScriptWrappable { | 18 class MODULES_EXPORT ShippingAddress final : public GarbageCollectedFinalized<Sh
ippingAddress>, public ScriptWrappable { |
| 19 DEFINE_WRAPPERTYPEINFO(); | 19 DEFINE_WRAPPERTYPEINFO(); |
| 20 WTF_MAKE_NONCOPYABLE(ShippingAddress); | 20 WTF_MAKE_NONCOPYABLE(ShippingAddress); |
| 21 | 21 |
| 22 public: | 22 public: |
| 23 explicit ShippingAddress(mojom::wtf::ShippingAddressPtr); | 23 explicit ShippingAddress(mojom::blink::ShippingAddressPtr); |
| 24 virtual ~ShippingAddress(); | 24 virtual ~ShippingAddress(); |
| 25 | 25 |
| 26 const String& regionCode() const { return m_regionCode; } | 26 const String& regionCode() const { return m_regionCode; } |
| 27 const Vector<String>& addressLine() const { return m_addressLine; } | 27 const Vector<String>& addressLine() const { return m_addressLine; } |
| 28 const String& administrativeArea() const { return m_administrativeArea; } | 28 const String& administrativeArea() const { return m_administrativeArea; } |
| 29 const String& locality() const { return m_locality; } | 29 const String& locality() const { return m_locality; } |
| 30 const String& dependentLocality() const { return m_dependentLocality; } | 30 const String& dependentLocality() const { return m_dependentLocality; } |
| 31 const String& postalCode() const { return m_postalCode; } | 31 const String& postalCode() const { return m_postalCode; } |
| 32 const String& sortingCode() const { return m_sortingCode; } | 32 const String& sortingCode() const { return m_sortingCode; } |
| 33 const String& languageCode() const { return m_languageCode; } | 33 const String& languageCode() const { return m_languageCode; } |
| (...skipping 11 matching lines...) Expand all Loading... |
| 45 String m_postalCode; | 45 String m_postalCode; |
| 46 String m_sortingCode; | 46 String m_sortingCode; |
| 47 String m_languageCode; | 47 String m_languageCode; |
| 48 String m_organization; | 48 String m_organization; |
| 49 String m_recipient; | 49 String m_recipient; |
| 50 }; | 50 }; |
| 51 | 51 |
| 52 } // namespace blink | 52 } // namespace blink |
| 53 | 53 |
| 54 #endif // ShippingAddress_h | 54 #endif // ShippingAddress_h |
| OLD | NEW |