| OLD | NEW |
| 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 |
| OLD | NEW |