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

Side by Side Diff: third_party/WebKit/Source/platform/payments/PlatformShippingAddress.cpp

Issue 1753543002: PaymentRequest Mojo bindings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@interface
Patch Set: Rename WebStuff into PlatformStuff Created 4 years, 9 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
(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/PlatformShippingAddress.h"
6
7 #include "platform/payments/BlinkTypeConverters.h"
8
9 namespace mojo {
10
11 blink::PlatformShippingAddress
12 TypeConverter<blink::PlatformShippingAddress, payments::mojom::ShippingAddress>: :Convert(
13 const payments::mojom::ShippingAddress& input)
14 {
15 blink::PlatformShippingAddress output;
16 output.regionCode = input.region_code.To<WTF::String>();
17 output.addressLine = input.address_line.To<WTF::Vector<WTF::String>>();
18 output.administrativeArea = input.administrative_area.To<WTF::String>();
19 output.locality = input.locality.To<WTF::String>();
20 output.dependentLocality = input.dependent_locality.To<WTF::String>();
21 output.postalCode = input.postal_code.To<WTF::String>();
22 output.sortingCode = input.sorting_code.To<WTF::String>();
23 output.languageCode = input.language_code.To<WTF::String>();
24 output.organization = input.organization.To<WTF::String>();
25 output.recipient = input.recipient.To<WTF::String>();
26 return output;
27 }
28
29 } // namespace mojo
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698