Index: third_party/WebKit/Source/platform/payments/PlatformPaymentItem.cpp |
diff --git a/third_party/WebKit/Source/platform/payments/PlatformPaymentItem.cpp b/third_party/WebKit/Source/platform/payments/PlatformPaymentItem.cpp |
new file mode 100644 |
index 0000000000000000000000000000000000000000..cac7066b9347dd16f08912e706e5480e09f01e4c |
--- /dev/null |
+++ b/third_party/WebKit/Source/platform/payments/PlatformPaymentItem.cpp |
@@ -0,0 +1,23 @@ |
+// Copyright 2016 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "platform/payments/PlatformPaymentItem.h" |
+ |
+#include "mojo/public/cpp/bindings/string.h" |
+#include "platform/payments/BlinkTypeConverters.h" |
+ |
+namespace mojo { |
+ |
+payments::mojom::PaymentItemPtr |
+TypeConverter<payments::mojom::PaymentItemPtr, blink::PlatformPaymentItem>::Convert( |
+ const blink::PlatformPaymentItem& input) |
+{ |
+ payments::mojom::PaymentItemPtr output = payments::mojom::PaymentItem::New(); |
+ output->id = String::From(input.id); |
+ output->label = String::From(input.label); |
+ output->amount = payments::mojom::CurrencyAmount::From(input.amount); |
+ return output; |
+} |
+ |
+} // namespace mojo |