OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2017 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 DEVICE_BLUETOOTH_GATT_RESULT_STRUCT_TRAITS_H_ | |
dcheng
2017/01/26 19:32:25
Please name this file _struct_traits.h so OWNERS r
| |
6 #define DEVICE_BLUETOOTH_GATT_RESULT_STRUCT_TRAITS_H_ | |
7 | |
8 #include "device/bluetooth/bluetooth_gatt_service.h" | |
9 #include "device/bluetooth/public/interfaces/device.mojom.h" | |
10 #include "mojo/public/cpp/bindings/enum_traits.h" | |
11 | |
12 namespace mojo { | |
13 | |
14 template <> | |
15 struct EnumTraits<bluetooth::mojom::GattResult, | |
16 device::BluetoothGattService::GattErrorCode> { | |
17 static bluetooth::mojom::GattResult ToMojom( | |
18 const device::BluetoothGattService::GattErrorCode& input); | |
19 }; | |
20 | |
21 } // namespace mojo | |
22 | |
23 #endif // DEVICE_BLUETOOTH_GATT_RESULT_STRUCT_TRAITS_H_ | |
OLD | NEW |