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

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

Issue 2492183002: Add struct_traits and typemap for blink::WebGamepad (Closed)
Patch Set: code rebase 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/gamepad.typemap
diff --git a/device/gamepad/public/interfaces/gamepad.typemap b/device/gamepad/public/interfaces/gamepad.typemap
new file mode 100644
index 0000000000000000000000000000000000000000..531b5d0027fc483daf45c4b84ddefffa89c84cc8
--- /dev/null
+++ b/device/gamepad/public/interfaces/gamepad.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/gamepad_struct_traits.h" ]
+sources = [
+ "//device/gamepad/public/interfaces/gamepad_struct_traits.cc",
+]
+deps = [
+ "//mojo/public/cpp/bindings",
+ "//third_party/WebKit/public:blink_headers",
+]
+
+type_mappings = [
+ "device.mojom.Gamepad=blink::WebGamepad",
+ "device.mojom.GamepadButton=blink::WebGamepadButton",
+ "device.mojom.GamepadHand=blink::WebGamepadHand",
+ "device.mojom.GamepadPose=blink::WebGamepadPose[nullable_is_same_type]",
+ "device.mojom.GamepadQuaternion=blink::WebGamepadQuaternion[nullable_is_same_type]",
+ "device.mojom.GamepadVector=blink::WebGamepadVector[nullable_is_same_type]",
+]
« no previous file with comments | « device/gamepad/public/interfaces/gamepad.mojom ('k') | device/gamepad/public/interfaces/gamepad_struct_traits.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698