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

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

Issue 2615093002: Typemap WebBluetoothDeviceId to WTF::String (Closed)
Patch Set: merge master 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 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
index 905fcd5928c5d0efd8b3bfe5fbb57069e4e99674..0234b3d409d8dc91ff62c8946f5bca80fc6cae5f 100644
--- a/third_party/WebKit/Source/platform/mojo/BluetoothStructTraits.h
+++ b/third_party/WebKit/Source/platform/mojo/BluetoothStructTraits.h
@@ -6,11 +6,22 @@
#define BluetoothStructTraits_h
#include "device/bluetooth/public/interfaces/uuid.mojom-blink.h"
+#include "public/platform/modules/bluetooth/web_bluetooth.mojom-blink.h"
#include "wtf/text/WTFString.h"
namespace mojo {
template <>
+struct StructTraits<::blink::mojom::WebBluetoothDeviceIdDataView, WTF::String> {
+ static const WTF::String& device_id(const WTF::String& input) {
+ return input;
+ }
+
+ static bool Read(::blink::mojom::WebBluetoothDeviceIdDataView,
+ WTF::String* output);
+};
+
+template <>
struct StructTraits<bluetooth::mojom::UUIDDataView, WTF::String> {
static const WTF::String& uuid(const WTF::String& input) { return input; }

Powered by Google App Engine
This is Rietveld 408576698