OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "platform/payments/PlatformPaymentResponse.h" |
| 6 |
| 7 #include "mojo/public/cpp/bindings/string.h" |
| 8 #include "platform/payments/BlinkTypeConverters.h" |
| 9 |
| 10 namespace mojo { |
| 11 |
| 12 blink::PlatformPaymentResponse |
| 13 TypeConverter<blink::PlatformPaymentResponse, payments::mojom::PaymentResponse>:
:Convert( |
| 14 const payments::mojom::PaymentResponse& input) |
| 15 { |
| 16 blink::PlatformPaymentResponse output; |
| 17 output.methodName = input.method_name.To<WTF::String>(); |
| 18 output.stringifiedDetails = input.stringified_details.To<WTF::String>(); |
| 19 return output; |
| 20 } |
| 21 |
| 22 } // namespace mojo |
OLD | NEW |