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

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

Issue 2038423002: Adding support for phone and email. (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 PaymentRequest_h 5 #ifndef PaymentRequest_h
6 #define PaymentRequest_h 6 #define PaymentRequest_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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 void OnError() override; 81 void OnError() override;
82 void OnComplete() override; 82 void OnComplete() override;
83 83
84 // Clears the promise resolvers and closes the Mojo connection. 84 // Clears the promise resolvers and closes the Mojo connection.
85 void clearResolversAndCloseMojoConnection(); 85 void clearResolversAndCloseMojoConnection();
86 86
87 Vector<String> m_supportedMethods; 87 Vector<String> m_supportedMethods;
88 PaymentDetails m_details; 88 PaymentDetails m_details;
89 PaymentOptions m_options; 89 PaymentOptions m_options;
90 String m_stringifiedData; 90 String m_stringifiedData;
91 String m_payerEmail;
please use gerrit instead 2016/06/06 15:43:42 No need for m_payerEmail and m_payerPhone here. Re
92 String m_payerPhone;
91 Member<PaymentAddress> m_shippingAddress; 93 Member<PaymentAddress> m_shippingAddress;
92 String m_shippingOption; 94 String m_shippingOption;
93 Member<ScriptPromiseResolver> m_showResolver; 95 Member<ScriptPromiseResolver> m_showResolver;
94 Member<ScriptPromiseResolver> m_completeResolver; 96 Member<ScriptPromiseResolver> m_completeResolver;
95 mojom::blink::PaymentRequestPtr m_paymentProvider; 97 mojom::blink::PaymentRequestPtr m_paymentProvider;
96 mojo::Binding<mojom::blink::PaymentRequestClient> m_clientBinding; 98 mojo::Binding<mojom::blink::PaymentRequestClient> m_clientBinding;
97 }; 99 };
98 100
99 } // namespace blink 101 } // namespace blink
100 102
101 #endif // PaymentRequest_h 103 #endif // PaymentRequest_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698