Bug 1465923 [wpt PR 9785] - Update the gamepad IDL file, a=testonly

Automatic update from web-platform-testsUpdate the gamepad IDL file (#9785)

--

wpt-commits: 3443ff6e255454aa23182b3765a1f9a2841c6a90
wpt-pr: 9785
This commit is contained in:
Luke Bjerring 2018-05-31 19:31:47 +00:00 коммит произвёл James Graham
Родитель 5e7e2f1b01
Коммит 029b99a764
2 изменённых файлов: 22 добавлений и 18 удалений

Просмотреть файл

@ -586301,7 +586301,7 @@
"support"
],
"interfaces/gamepad.idl": [
"89fa62f6e0d1fdb497ce6550804b57a5d4ee0d0f",
"f112b177a27816085e46d4949b404f2d5666881a",
"support"
],
"interfaces/geolocation-sensor.idl": [

Просмотреть файл

@ -1,33 +1,37 @@
// GENERATED CONTENT - DO NOT EDIT
// Content of this file was automatically extracted from the Gamepad spec.
// See https://w3c.github.io/gamepad/
interface Gamepad {
readonly attribute DOMString id;
readonly attribute long index;
readonly attribute boolean connected;
readonly attribute DOMHighResTimeStamp timestamp;
readonly attribute GamepadMappingType mapping;
readonly attribute FrozenArray<double> axes;
readonly attribute FrozenArray<GamepadButton> buttons;
readonly attribute DOMString id;
readonly attribute long index;
readonly attribute boolean connected;
readonly attribute DOMHighResTimeStamp timestamp;
readonly attribute GamepadMappingType mapping;
readonly attribute FrozenArray<double> axes;
readonly attribute FrozenArray<GamepadButton> buttons;
};
interface GamepadButton {
readonly attribute boolean pressed;
readonly attribute boolean touched;
readonly attribute double value;
readonly attribute boolean pressed;
readonly attribute boolean touched;
readonly attribute double value;
};
enum GamepadMappingType {
"",
"standard",
"",
"standard",
};
partial interface Navigator {
sequence<Gamepad?> getGamepads();
sequence<Gamepad?> getGamepads();
};
[Constructor(GamepadEventInit eventInitDict)]
interface GamepadEvent : Event {
readonly attribute Gamepad gamepad;
interface GamepadEvent: Event {
readonly attribute Gamepad gamepad;
};
dictionary GamepadEventInit : EventInit {
required Gamepad gamepad;
dictionary GamepadEventInit: EventInit {
required Gamepad gamepad;
};