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

Unified Diff: device/gamepad/public/interfaces/webgamepad.typemap

Issue 2492183002: Add struct_traits and typemap for blink::WebGamepad (Closed)
Patch Set: fixed "un-aligned warning" in windows x64 build Created 4 years, 1 month 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: device/gamepad/public/interfaces/webgamepad.typemap
diff --git a/device/gamepad/public/interfaces/webgamepad.typemap b/device/gamepad/public/interfaces/webgamepad.typemap
new file mode 100644
index 0000000000000000000000000000000000000000..a4e3cfe31e770b07fc5e196e2bd45290297bed59
--- /dev/null
+++ b/device/gamepad/public/interfaces/webgamepad.typemap
@@ -0,0 +1,24 @@
+# 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.
+
+mojom = "//device/gamepad/public/interfaces/gamepad.mojom"
+public_headers = [ "//third_party/WebKit/public/platform/WebGamepad.h" ]
+traits_headers =
+ [ "//device/gamepad/public/interfaces/webgamepad_struct_traits.h" ]
+sources = [
+ "//device/gamepad/public/interfaces/webgamepad_struct_traits.cc",
+]
+deps = [
+ "//mojo/public/cpp/bindings",
+ "//third_party/WebKit/public:blink_headers",
+]
+
+type_mappings = [
+ "device.mojom.WebGamepad=blink::WebGamepad",
+ "device.mojom.WebGamepadButton=blink::WebGamepadButton",
+ "device.mojom.WebGamepadHand=blink::WebGamepadHand",
+ "device.mojom.WebGamepadPose=blink::WebGamepadPose",
+ "device.mojom.WebGamepadQuaternion=blink::WebGamepadQuaternion",
+ "device.mojom.WebGamepadVector=blink::WebGamepadVector",
+]

Powered by Google App Engine
This is Rietveld 408576698