OLD | NEW |
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 #include "modules/payments/PaymentRequest.h" | 5 #include "modules/payments/PaymentRequest.h" |
6 | 6 |
7 #include "bindings/core/v8/ExceptionState.h" | 7 #include "bindings/core/v8/ExceptionState.h" |
8 #include "bindings/core/v8/JSONValuesForV8.h" | 8 #include "bindings/core/v8/JSONValuesForV8.h" |
9 #include "bindings/core/v8/ScriptPromiseResolver.h" | 9 #include "bindings/core/v8/ScriptPromiseResolver.h" |
10 #include "bindings/core/v8/ScriptState.h" | 10 #include "bindings/core/v8/ScriptState.h" |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 | 96 |
97 return output; | 97 return output; |
98 } | 98 } |
99 }; | 99 }; |
100 | 100 |
101 template <> | 101 template <> |
102 struct TypeConverter<PaymentOptionsPtr, blink::PaymentOptions> { | 102 struct TypeConverter<PaymentOptionsPtr, blink::PaymentOptions> { |
103 static PaymentOptionsPtr Convert(const blink::PaymentOptions& input) | 103 static PaymentOptionsPtr Convert(const blink::PaymentOptions& input) |
104 { | 104 { |
105 PaymentOptionsPtr output = PaymentOptions::New(); | 105 PaymentOptionsPtr output = PaymentOptions::New(); |
| 106 output->request_payer_email = input.requestPayerEmail(); |
| 107 output->request_payer_phone = input.requestPayerPhone(); |
106 output->request_shipping = input.requestShipping(); | 108 output->request_shipping = input.requestShipping(); |
107 return output; | 109 return output; |
108 } | 110 } |
109 }; | 111 }; |
110 | 112 |
111 template <> | 113 template <> |
112 struct TypeConverter<WTFArray<PaymentMethodDataPtr>, WTF::Vector<blink::PaymentR
equest::MethodData>> { | 114 struct TypeConverter<WTFArray<PaymentMethodDataPtr>, WTF::Vector<blink::PaymentR
equest::MethodData>> { |
113 static WTFArray<PaymentMethodDataPtr> Convert(const WTF::Vector<blink::Payme
ntRequest::MethodData>& input) | 115 static WTFArray<PaymentMethodDataPtr> Convert(const WTF::Vector<blink::Payme
ntRequest::MethodData>& input) |
114 { | 116 { |
115 WTFArray<PaymentMethodDataPtr> output(input.size()); | 117 WTFArray<PaymentMethodDataPtr> output(input.size()); |
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
535 { | 537 { |
536 m_completeResolver.clear(); | 538 m_completeResolver.clear(); |
537 m_showResolver.clear(); | 539 m_showResolver.clear(); |
538 m_abortResolver.clear(); | 540 m_abortResolver.clear(); |
539 if (m_clientBinding.is_bound()) | 541 if (m_clientBinding.is_bound()) |
540 m_clientBinding.Close(); | 542 m_clientBinding.Close(); |
541 m_paymentProvider.reset(); | 543 m_paymentProvider.reset(); |
542 } | 544 } |
543 | 545 |
544 } // namespace blink | 546 } // namespace blink |
OLD | NEW |