mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1178664 - Part 2 - webidl for AnimationPlaybackEvent. r=smaug
This commit is contained in:
parent
4b19a7af6c
commit
c0bbc7e7da
@ -32,6 +32,10 @@ const kEventConstructors = {
|
||||
return new AnimationEvent(aName, aProps);
|
||||
},
|
||||
},
|
||||
AnimationPlaybackEvent: { create: function (aName, aProps) {
|
||||
return new AnimationPlaybackEvent(aName, aProps);
|
||||
},
|
||||
},
|
||||
AudioProcessingEvent: { create: null, // Cannot create untrusted event from JS.
|
||||
},
|
||||
BeforeAfterKeyboardEvent: { create: function (aName, aProps) {
|
||||
|
@ -139,6 +139,8 @@ var interfaceNamesInGlobalScope =
|
||||
{name: "AnimationEffectReadOnly", release: false},
|
||||
// IMPORTANT: Do not change this list without review from a DOM peer!
|
||||
"AnimationEvent",
|
||||
// IMPORTANT: Do not change this list without review from a DOM peer!
|
||||
"AnimationPlaybackEvent",
|
||||
// IMPORTANT: Do not change this list without review from a DOM peer!
|
||||
{name: "AnimationTimeline", release: false},
|
||||
// IMPORTANT: Do not change this list without review from a DOM peer!
|
||||
|
24
dom/webidl/AnimationPlaybackEvent.webidl
Normal file
24
dom/webidl/AnimationPlaybackEvent.webidl
Normal file
@ -0,0 +1,24 @@
|
||||
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
||||
* You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* The origin of this IDL file is
|
||||
* http://w3c.github.io/web-animations/#the-animationplaybackevent-interface
|
||||
*
|
||||
* Copyright © 2015 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
|
||||
* liability, trademark and document use rules apply.
|
||||
*/
|
||||
|
||||
[Func="nsDocument::IsWebAnimationsEnabled",
|
||||
Constructor(DOMString type,
|
||||
optional AnimationPlaybackEventInit eventInitDict)]
|
||||
interface AnimationPlaybackEvent : Event {
|
||||
readonly attribute double? currentTime;
|
||||
readonly attribute double? timelineTime;
|
||||
};
|
||||
|
||||
dictionary AnimationPlaybackEventInit : EventInit {
|
||||
double? currentTime = null;
|
||||
double? timelineTime = null;
|
||||
};
|
@ -735,6 +735,7 @@ if CONFIG['MOZ_B2G_FM']:
|
||||
]
|
||||
|
||||
GENERATED_EVENTS_WEBIDL_FILES = [
|
||||
'AnimationPlaybackEvent.webidl',
|
||||
'AutocompleteErrorEvent.webidl',
|
||||
'BlobEvent.webidl',
|
||||
'CallEvent.webidl',
|
||||
|
Loading…
Reference in New Issue
Block a user