blob: e50d9f9767177d2090ba5a141d9600bf3e23cbf3 [file] [log] [blame]
// Copyright 2017 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.
enum GamepadHapticActuatorType {
enum GamepadHapticEffectType {
enum GamepadHapticsResult {
// Gamepad vibration is proposed as an extension to the Gamepad API.
interface GamepadHapticActuator {
readonly attribute GamepadHapticActuatorType type;
[CallWith=ScriptState] Promise<GamepadHapticsResult> playEffect(
GamepadHapticEffectType type,
GamepadEffectParameters params);
[CallWith=ScriptState] Promise<GamepadHapticsResult> reset();