blob: c6db1b9b8c644e70bce28a39bd2da8daa1bd1351 [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/mojom/gamepad.mojom"
public_headers = [ "//device/gamepad/public/cpp/gamepad.h" ]
traits_headers = [ "//device/gamepad/public/cpp/gamepad_mojom_traits.h" ]
deps = [
"//device/gamepad/public/cpp:shared_with_blink",
"//mojo/public/cpp/bindings",
"//third_party/blink/public:blink_headers",
]
public_deps = [
"//device/gamepad/public/cpp:shared_typemap_traits",
]
# 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]",
]