Bug 803414 - Part 0: Add RecordErrorEvent. r=smaug

This commit is contained in:
Randy Lin 2013-06-20 14:06:39 +08:00
Родитель e9eb4eff0a
Коммит 1163c249a3
5 изменённых файлов: 50 добавлений и 0 удалений

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

@ -44,6 +44,7 @@ XPIDL_SOURCES += [
'nsIDOMPopStateEvent.idl',
'nsIDOMPopupBlockedEvent.idl',
'nsIDOMProgressEvent.idl',
'nsIDOMRecordErrorEvent.idl',
'nsIDOMScrollAreaEvent.idl',
'nsIDOMSimpleGestureEvent.idl',
'nsIDOMSmartCardEvent.idl',

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

@ -0,0 +1,31 @@
/* -*- 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/. */
#include "nsIDOMEvent.idl"
/**
* The nsIDOMRecordErrorEvent interface is used for media recorder sent events
* and for indeciate what's wrong in the object
* The name value is defined in the
* http://www.w3.org/TR/2012/WD-dom-20121206/#error-names-table
*/
[scriptable, builtinclass, uuid(606e6f94-bf02-11e2-8a01-e722108c6d66)]
interface nsIDOMRecordErrorEvent : nsIDOMEvent
{
/**
* The error name in this event.
*/
readonly attribute DOMString name;
[noscript]
void initRecordErrorEvent(in DOMString aType,
in boolean aCanBubble,
in boolean aCancelable,
in DOMString aName);
};
dictionary RecordErrorEventInit : EventInit {
DOMString name;
};

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

@ -0,0 +1,16 @@
/* -*- 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/.
*/
[Constructor(DOMString type, optional RecordErrorEventInit eventInitDict), HeaderFile="GeneratedEventClasses.h"]
interface RecordErrorEvent : Event
{
readonly attribute DOMString name;
};
dictionary RecordErrorEventInit : EventInit
{
DOMString name = "";
};

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

@ -441,6 +441,7 @@ webidl_files += \
DeviceStorageChangeEvent.webidl \
PopupBlockedEvent.webidl \
BlobEvent.webidl \
RecordErrorEvent.webidl \
$(NULL)
ifdef MOZ_B2G_BT

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

@ -50,6 +50,7 @@ simple_events = [
'DeviceStorageChangeEvent',
'PopupBlockedEvent',
'BlobEvent',
'RecordErrorEvent',
#ifdef MOZ_GAMEPAD
'GamepadEvent',
'GamepadButtonEvent',