Bug 1178664 - Part 2 - webidl for AnimationPlaybackEvent. r=smaug

This commit is contained in:
Hiroyuki Ikezoe 2015-07-14 03:44:00 +02:00
parent 4b19a7af6c
commit c0bbc7e7da
4 changed files with 31 additions and 0 deletions

View File

@ -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) {

View File

@ -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!

View 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;
};

View File

@ -735,6 +735,7 @@ if CONFIG['MOZ_B2G_FM']:
]
GENERATED_EVENTS_WEBIDL_FILES = [
'AnimationPlaybackEvent.webidl',
'AutocompleteErrorEvent.webidl',
'BlobEvent.webidl',
'CallEvent.webidl',