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

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

Issue 2352513002: PaymentRequest: Deprecate careOf attribute in PaymentAddress. (Closed)
Patch Set: test Created 4 years, 2 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/ScriptValue.h" 8 #include "bindings/core/v8/ScriptValue.h"
9 #include "bindings/core/v8/ScriptWrappable.h" 9 #include "bindings/core/v8/ScriptWrappable.h"
10 #include "modules/ModulesExport.h" 10 #include "modules/ModulesExport.h"
11 #include "platform/heap/Handle.h" 11 #include "platform/heap/Handle.h"
12 #include "public/platform/modules/payments/payment_request.mojom-blink.h" 12 #include "public/platform/modules/payments/payment_request.mojom-blink.h"
13 #include "wtf/Noncopyable.h" 13 #include "wtf/Noncopyable.h"
14 #include "wtf/Vector.h" 14 #include "wtf/Vector.h"
15 #include "wtf/text/WTFString.h" 15 #include "wtf/text/WTFString.h"
16 16
17 namespace blink { 17 namespace blink {
18 18
19 class ExecutionContext;
please use gerrit instead 2016/09/22 13:22:37 What is the reason for this declaration?
zino 2016/09/22 15:42:30 It's my mistake. Done. Thanks.
20
19 class MODULES_EXPORT PaymentAddress final : public GarbageCollectedFinalized<Pay mentAddress>, public ScriptWrappable { 21 class MODULES_EXPORT PaymentAddress final : public GarbageCollectedFinalized<Pay mentAddress>, public ScriptWrappable {
20 DEFINE_WRAPPERTYPEINFO(); 22 DEFINE_WRAPPERTYPEINFO();
21 WTF_MAKE_NONCOPYABLE(PaymentAddress); 23 WTF_MAKE_NONCOPYABLE(PaymentAddress);
22 24
23 public: 25 public:
24 explicit PaymentAddress(mojom::blink::PaymentAddressPtr); 26 explicit PaymentAddress(mojom::blink::PaymentAddressPtr);
25 virtual ~PaymentAddress(); 27 virtual ~PaymentAddress();
26 28
27 ScriptValue toJSONForBinding(ScriptState*) const; 29 ScriptValue toJSONForBinding(ScriptState*) const;
28 30
29 const String& country() const { return m_country; } 31 const String& country() const { return m_country; }
30 const Vector<String>& addressLine() const { return m_addressLine; } 32 const Vector<String>& addressLine() const { return m_addressLine; }
31 const String& region() const { return m_region; } 33 const String& region() const { return m_region; }
32 const String& city() const { return m_city; } 34 const String& city() const { return m_city; }
33 const String& dependentLocality() const { return m_dependentLocality; } 35 const String& dependentLocality() const { return m_dependentLocality; }
34 const String& postalCode() const { return m_postalCode; } 36 const String& postalCode() const { return m_postalCode; }
35 const String& sortingCode() const { return m_sortingCode; } 37 const String& sortingCode() const { return m_sortingCode; }
36 const String& languageCode() const { return m_languageCode; } 38 const String& languageCode() const { return m_languageCode; }
37 const String& organization() const { return m_organization; } 39 const String& organization() const { return m_organization; }
38 const String& recipient() const { return m_recipient; } 40 const String& recipient() const { return m_recipient; }
39 const String& careOf() const { return m_careOf; } 41 const String careOf() const { return WTF::emptyString(); }
40 const String& phone() const { return m_phone; } 42 const String& phone() const { return m_phone; }
41 43
42 DEFINE_INLINE_TRACE() {} 44 DEFINE_INLINE_TRACE() {}
43 45
44 private: 46 private:
45 String m_country; 47 String m_country;
46 Vector<String> m_addressLine; 48 Vector<String> m_addressLine;
47 String m_region; 49 String m_region;
48 String m_city; 50 String m_city;
49 String m_dependentLocality; 51 String m_dependentLocality;
50 String m_postalCode; 52 String m_postalCode;
51 String m_sortingCode; 53 String m_sortingCode;
52 String m_languageCode; 54 String m_languageCode;
53 String m_organization; 55 String m_organization;
54 String m_recipient; 56 String m_recipient;
55 String m_careOf;
56 String m_phone; 57 String m_phone;
57 }; 58 };
58 59
59 } // namespace blink 60 } // namespace blink
60 61
61 #endif // PaymentAddress_h 62 #endif // PaymentAddress_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698