OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
dcheng
2016/12/30 09:19:06
Name this file with StructTraits.h suffix instead
juncai
2017/01/03 19:57:42
Done.
| |
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 BluetoothUUIDTraits_h | |
6 #define BluetoothUUIDTraits_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 // BluetoothUUIDTraits_h | |
OLD | NEW |