OLD | NEW |
(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 #ifndef BluetoothStructTraits_h |
| 6 #define BluetoothStructTraits_h |
| 7 |
| 8 #include "device/bluetooth/public/interfaces/uuid.mojom-blink.h" |
| 9 #include "wtf/text/WTFString.h" |
| 10 |
| 11 namespace mojo { |
| 12 |
| 13 template <> |
| 14 struct StructTraits<bluetooth::mojom::UUIDDataView, WTF::String> { |
| 15 static const WTF::String& uuid(const WTF::String& input) { return input; } |
| 16 |
| 17 static bool Read(bluetooth::mojom::UUIDDataView, WTF::String* output); |
| 18 }; |
| 19 |
| 20 } // namespace mojo |
| 21 |
| 22 #endif // BluetoothStructTraits_h |
OLD | NEW |