blob: 43b3c0f554c9127d92241fe1dcc53a9e579e519b [file] [log] [blame]
# 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 = [ "//device/gamepad/public/cpp/gamepad.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",
]
# Use typemaps for device::Gamepad and its member types. Gamepad data is
# intentionally POD and fixed size so that it can be stored in shared memory
# between hardware polling threads and the rest of the browser.
type_mappings = [
"device.mojom.Gamepad=device::Gamepad",
"device.mojom.GamepadButton=device::GamepadButton",
"device.mojom.GamepadHand=device::GamepadHand",
"device.mojom.GamepadHapticActuator=device::GamepadHapticActuator[nullable_is_same_type]",
"device.mojom.GamepadHapticActuatorType=device::GamepadHapticActuatorType",
"device.mojom.GamepadPose=device::GamepadPose[nullable_is_same_type]",
"device.mojom.GamepadQuaternion=device::GamepadQuaternion[nullable_is_same_type]",
"device.mojom.GamepadVector=device::GamepadVector[nullable_is_same_type]",
]