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

Side by Side Diff: device/bluetooth/public/interfaces/gatt_result_enum_traits.h

Issue 2627243002: bluetooth: Add control for reading/writing of characteristics to internals page. (Closed)
Patch Set: Remove TypeConverter, add EnumTraits for GattResult 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
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698