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

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

Issue 2477883002: [Web Payments] Mojom namespace blink -> payments (Closed)
Patch Set: Fix WebKit tests Created 4 years, 1 month 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 "components/payments/payment_request.mojom-blink.h" 10 #include "components/payments/payment_request.mojom-blink.h"
11 #include "modules/ModulesExport.h" 11 #include "modules/ModulesExport.h"
12 #include "platform/heap/Handle.h" 12 #include "platform/heap/Handle.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 MODULES_EXPORT PaymentAddress final 19 class MODULES_EXPORT PaymentAddress final
20 : public GarbageCollectedFinalized<PaymentAddress>, 20 : public GarbageCollectedFinalized<PaymentAddress>,
21 public ScriptWrappable { 21 public ScriptWrappable {
22 DEFINE_WRAPPERTYPEINFO(); 22 DEFINE_WRAPPERTYPEINFO();
23 WTF_MAKE_NONCOPYABLE(PaymentAddress); 23 WTF_MAKE_NONCOPYABLE(PaymentAddress);
24 24
25 public: 25 public:
26 explicit PaymentAddress(mojom::blink::PaymentAddressPtr); 26 explicit PaymentAddress(payments::mojom::blink::PaymentAddressPtr);
27 virtual ~PaymentAddress(); 27 virtual ~PaymentAddress();
28 28
29 ScriptValue toJSONForBinding(ScriptState*) const; 29 ScriptValue toJSONForBinding(ScriptState*) const;
30 30
31 const String& country() const { return m_country; } 31 const String& country() const { return m_country; }
32 const Vector<String>& addressLine() const { return m_addressLine; } 32 const Vector<String>& addressLine() const { return m_addressLine; }
33 const String& region() const { return m_region; } 33 const String& region() const { return m_region; }
34 const String& city() const { return m_city; } 34 const String& city() const { return m_city; }
35 const String& dependentLocality() const { return m_dependentLocality; } 35 const String& dependentLocality() const { return m_dependentLocality; }
36 const String& postalCode() const { return m_postalCode; } 36 const String& postalCode() const { return m_postalCode; }
(...skipping 15 matching lines...) Expand all
52 String m_sortingCode; 52 String m_sortingCode;
53 String m_languageCode; 53 String m_languageCode;
54 String m_organization; 54 String m_organization;
55 String m_recipient; 55 String m_recipient;
56 String m_phone; 56 String m_phone;
57 }; 57 };
58 58
59 } // namespace blink 59 } // namespace blink
60 60
61 #endif // PaymentAddress_h 61 #endif // PaymentAddress_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698