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

Side by Side Diff: third_party/WebKit/Source/platform/mojo/BluetoothStructTraits.cpp

Issue 2615093002: Typemap WebBluetoothDeviceId to WTF::String (Closed)
Patch Set: merge master Created 3 years, 11 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
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 "platform/mojo/BluetoothStructTraits.h" 5 #include "platform/mojo/BluetoothStructTraits.h"
6 6
7 #include "mojo/public/cpp/bindings/string_traits_wtf.h" 7 #include "mojo/public/cpp/bindings/string_traits_wtf.h"
8 8
9 namespace mojo { 9 namespace mojo {
10 10
11 // static 11 // static
12 bool StructTraits<::blink::mojom::WebBluetoothDeviceIdDataView, WTF::String>::
13 Read(::blink::mojom::WebBluetoothDeviceIdDataView data,
14 WTF::String* output) {
15 return data.ReadDeviceId(output);
16 }
17
18 // static
12 bool StructTraits<bluetooth::mojom::UUIDDataView, WTF::String>::Read( 19 bool StructTraits<bluetooth::mojom::UUIDDataView, WTF::String>::Read(
13 bluetooth::mojom::UUIDDataView data, 20 bluetooth::mojom::UUIDDataView data,
14 WTF::String* output) { 21 WTF::String* output) {
15 return data.ReadUuid(output); 22 return data.ReadUuid(output);
16 } 23 }
17 24
18 } // namespace mojo 25 } // namespace mojo
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698