| Index: third_party/WebKit/Source/platform/payments/PlatformShippingOption.cpp
|
| diff --git a/third_party/WebKit/Source/platform/payments/PlatformShippingOption.cpp b/third_party/WebKit/Source/platform/payments/PlatformShippingOption.cpp
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..e2074685f5aadd3d39dba266a75942eec688023b
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/platform/payments/PlatformShippingOption.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/PlatformShippingOption.h"
|
| +
|
| +#include "mojo/public/cpp/bindings/string.h"
|
| +#include "platform/payments/BlinkTypeConverters.h"
|
| +
|
| +namespace mojo {
|
| +
|
| +payments::mojom::ShippingOptionPtr
|
| +TypeConverter<payments::mojom::ShippingOptionPtr, blink::PlatformShippingOption>::Convert(
|
| + const blink::PlatformShippingOption& input)
|
| +{
|
| + payments::mojom::ShippingOptionPtr output = payments::mojom::ShippingOption::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
|
|
|