| 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
|
|
|