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

Unified Diff: components/arc/bluetooth/bluetooth_type_converters.h

Issue 1927803002: arc: bluetooth: Add gatt client functionality (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: components/arc/bluetooth/bluetooth_type_converters.h
diff --git a/components/arc/bluetooth/bluetooth_type_converters.h b/components/arc/bluetooth/bluetooth_type_converters.h
index 756edb28643c7f09f2bdf7a5effbfdb2ba61dac9..5c282dae78b523e4538f03f2f11d93b259c444e0 100644
--- a/components/arc/bluetooth/bluetooth_type_converters.h
+++ b/components/arc/bluetooth/bluetooth_type_converters.h
@@ -11,6 +11,7 @@
#include <utility>
#include "components/arc/common/bluetooth.mojom.h"
+#include "device/bluetooth/bluetooth_gatt_service.h"
#include "mojo/public/cpp/bindings/type_converter.h"
namespace device {
@@ -35,6 +36,19 @@ struct TypeConverter<arc::mojom::BluetoothUUIDPtr, device::BluetoothUUID> {
const device::BluetoothUUID& uuid);
};
+template <>
+struct TypeConverter<device::BluetoothUUID, arc::mojom::BluetoothUUIDPtr> {
+ static device::BluetoothUUID Convert(
+ const arc::mojom::BluetoothUUIDPtr& uuid);
+};
+
+template <>
+struct TypeConverter<arc::mojom::BluetoothGattStatus,
+ device::BluetoothGattService::GattErrorCode> {
+ static arc::mojom::BluetoothGattStatus Convert(
+ const device::BluetoothGattService::GattErrorCode& error_code);
+};
+
} // namespace mojo
#endif // COMPONENTS_ARC_BLUETOOTH_BLUETOOTH_TYPE_CONVERTERS_H_

Powered by Google App Engine
This is Rietveld 408576698