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

Unified Diff: third_party/WebKit/Source/platform/mojo/BluetoothStructTraits.h

Issue 2565913002: [Onion Soup] Move WebBluetoothImpl from //content/renderer/bluetooth to Blink's bluetooth module (Closed)
Patch Set: renamed BluetoothUUID.typemap to Bluetooth.typemap Created 3 years, 12 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: third_party/WebKit/Source/platform/mojo/BluetoothStructTraits.h
diff --git a/third_party/WebKit/Source/platform/mojo/BluetoothStructTraits.h b/third_party/WebKit/Source/platform/mojo/BluetoothStructTraits.h
new file mode 100644
index 0000000000000000000000000000000000000000..905fcd5928c5d0efd8b3bfe5fbb57069e4e99674
--- /dev/null
+++ b/third_party/WebKit/Source/platform/mojo/BluetoothStructTraits.h
@@ -0,0 +1,22 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef BluetoothStructTraits_h
+#define BluetoothStructTraits_h
+
+#include "device/bluetooth/public/interfaces/uuid.mojom-blink.h"
+#include "wtf/text/WTFString.h"
+
+namespace mojo {
+
+template <>
+struct StructTraits<bluetooth::mojom::UUIDDataView, WTF::String> {
+ static const WTF::String& uuid(const WTF::String& input) { return input; }
+
+ static bool Read(bluetooth::mojom::UUIDDataView, WTF::String* output);
+};
+
+} // namespace mojo
+
+#endif // BluetoothStructTraits_h

Powered by Google App Engine
This is Rietveld 408576698