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

Unified Diff: content/renderer/bluetooth/bluetooth_type_converters.h

Issue 1775953004: bluetooth: Move writeValue to mojo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@my-origin
Patch Set: Moar cleanup Created 4 years, 9 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: content/renderer/bluetooth/bluetooth_type_converters.h
diff --git a/content/renderer/bluetooth/bluetooth_type_converters.h b/content/renderer/bluetooth/bluetooth_type_converters.h
new file mode 100644
index 0000000000000000000000000000000000000000..4accc6089bcc70bf84017f3acb2169389c720d9a
--- /dev/null
+++ b/content/renderer/bluetooth/bluetooth_type_converters.h
@@ -0,0 +1,17 @@
+// 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.
+
+#include "mojo/public/cpp/bindings/type_converter.h"
+
+#include "content/common/bluetooth/bluetooth_service.mojom.h"
+#include "third_party/WebKit/public/platform/WebString.h"
+
+namespace mojo {
+
+template <>
+struct TypeConverter<String, blink::WebString> {
Ken Rockot(use gerrit already) 2016/03/09 19:31:26 This should move somewhere more generic (somewhere
ortuno 2016/03/16 16:29:45 Done.
+ static String Convert(const blink::WebString& web_string);
+};
+
+} // namespace mojo

Powered by Google App Engine
This is Rietveld 408576698