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

Side by Side Diff: third_party/WebKit/Source/modules/payments/PaymentAddress.h

Issue 2039863002: PaymentRequest: Sync up PaymentAddress with the payment request spec. (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 #ifndef PaymentAddress_h 5 #ifndef PaymentAddress_h
6 #define PaymentAddress_h 6 #define PaymentAddress_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-blink.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 PaymentAddress final : public GarbageCollectedFinalized<Pay mentAddress>, public ScriptWrappable { 18 class MODULES_EXPORT PaymentAddress final : public GarbageCollectedFinalized<Pay mentAddress>, public ScriptWrappable {
19 DEFINE_WRAPPERTYPEINFO(); 19 DEFINE_WRAPPERTYPEINFO();
20 WTF_MAKE_NONCOPYABLE(PaymentAddress); 20 WTF_MAKE_NONCOPYABLE(PaymentAddress);
21 21
22 public: 22 public:
23 explicit PaymentAddress(mojom::blink::PaymentAddressPtr); 23 explicit PaymentAddress(mojom::blink::PaymentAddressPtr);
24 virtual ~PaymentAddress(); 24 virtual ~PaymentAddress();
25 25
26 const String& regionCode() const { return m_regionCode; } 26 const String& country() const { return m_country; }
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& region() const { return m_region; }
29 const String& locality() const { return m_locality; } 29 const String& city() const { return m_city; }
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; }
34 const String& organization() const { return m_organization; } 34 const String& organization() const { return m_organization; }
35 const String& recipient() const { return m_recipient; } 35 const String& recipient() const { return m_recipient; }
36 const String& careOf() const { return m_careOf; }
please use gerrit instead 2016/06/06 16:01:15 +phone
zino 2016/06/06 17:23:16 Done.
36 37
37 DEFINE_INLINE_TRACE() {} 38 DEFINE_INLINE_TRACE() {}
38 39
39 private: 40 private:
40 String m_regionCode; 41 String m_country;
41 Vector<String> m_addressLine; 42 Vector<String> m_addressLine;
42 String m_administrativeArea; 43 String m_region;
43 String m_locality; 44 String m_city;
44 String m_dependentLocality; 45 String m_dependentLocality;
45 String m_postalCode; 46 String m_postalCode;
46 String m_sortingCode; 47 String m_sortingCode;
47 String m_languageCode; 48 String m_languageCode;
48 String m_organization; 49 String m_organization;
49 String m_recipient; 50 String m_recipient;
51 String m_careOf;
50 }; 52 };
51 53
52 } // namespace blink 54 } // namespace blink
53 55
54 #endif // PaymentAddress_h 56 #endif // PaymentAddress_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698