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

Side by Side Diff: third_party/WebKit/Source/modules/payments/PaymentResponse.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 PaymentResponse_h 5 #ifndef PaymentResponse_h
6 #define PaymentResponse_h 6 #define PaymentResponse_h
7 7
8 #include "bindings/core/v8/ScriptPromise.h" 8 #include "bindings/core/v8/ScriptPromise.h"
9 #include "bindings/core/v8/ScriptValue.h" 9 #include "bindings/core/v8/ScriptValue.h"
10 #include "bindings/core/v8/ScriptWrappable.h" 10 #include "bindings/core/v8/ScriptWrappable.h"
(...skipping 11 matching lines...) Expand all
22 class PaymentCompleter; 22 class PaymentCompleter;
23 class ScriptState; 23 class ScriptState;
24 24
25 class MODULES_EXPORT PaymentResponse final 25 class MODULES_EXPORT PaymentResponse final
26 : public GarbageCollectedFinalized<PaymentResponse>, 26 : public GarbageCollectedFinalized<PaymentResponse>,
27 public ScriptWrappable { 27 public ScriptWrappable {
28 DEFINE_WRAPPERTYPEINFO(); 28 DEFINE_WRAPPERTYPEINFO();
29 WTF_MAKE_NONCOPYABLE(PaymentResponse); 29 WTF_MAKE_NONCOPYABLE(PaymentResponse);
30 30
31 public: 31 public:
32 PaymentResponse(mojom::blink::PaymentResponsePtr, PaymentCompleter*); 32 PaymentResponse(payments::mojom::blink::PaymentResponsePtr,
33 PaymentCompleter*);
33 virtual ~PaymentResponse(); 34 virtual ~PaymentResponse();
34 35
35 ScriptValue toJSONForBinding(ScriptState*) const; 36 ScriptValue toJSONForBinding(ScriptState*) const;
36 37
37 const String& methodName() const { return m_methodName; } 38 const String& methodName() const { return m_methodName; }
38 ScriptValue details(ScriptState*, ExceptionState&) const; 39 ScriptValue details(ScriptState*, ExceptionState&) const;
39 PaymentAddress* shippingAddress() const { return m_shippingAddress.get(); } 40 PaymentAddress* shippingAddress() const { return m_shippingAddress.get(); }
40 const String& shippingOption() const { return m_shippingOption; } 41 const String& shippingOption() const { return m_shippingOption; }
41 const String& payerName() const { return m_payerName; } 42 const String& payerName() const { return m_payerName; }
42 const String& payerEmail() const { return m_payerEmail; } 43 const String& payerEmail() const { return m_payerEmail; }
(...skipping 10 matching lines...) Expand all
53 String m_shippingOption; 54 String m_shippingOption;
54 String m_payerName; 55 String m_payerName;
55 String m_payerEmail; 56 String m_payerEmail;
56 String m_payerPhone; 57 String m_payerPhone;
57 Member<PaymentCompleter> m_paymentCompleter; 58 Member<PaymentCompleter> m_paymentCompleter;
58 }; 59 };
59 60
60 } // namespace blink 61 } // namespace blink
61 62
62 #endif // PaymentResponse_h 63 #endif // PaymentResponse_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698