Bug 814637 - Part 2: Add iccChangeEvent using event generator. f=hsinyi. r=smaug

This commit is contained in:
Edgar Chen 2013-10-30 14:05:30 +08:00
parent 4968c7d3f1
commit fab68d299c
4 changed files with 23 additions and 0 deletions

View File

@ -171,6 +171,10 @@ const kEventConstructors = {
return new HashChangeEvent(aName, aProps);
},
},
IccChangeEvent: { create: function (aName, aProps) {
return new IccChangeEvent(aName, aProps);
},
},
IDBVersionChangeEvent: { create: function (aName, aProps) {
return new IDBVersionChangeEvent(aName, aProps);
},

View File

@ -296,6 +296,7 @@ var interfaceNamesInGlobalScope =
"HTMLUListElement",
"HTMLUnknownElement",
"HTMLVideoElement",
{name: "IccChangeEvent", b2g: true, pref: "dom.icc.enabled"},
{name: "IccCardLockError", b2g: true, pref: "dom.icc.enabled"},
"IDBCursor",
"IDBCursorWithValue",

View File

@ -0,0 +1,17 @@
/* -*- 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/.
*/
[Pref="dom.icc.enabled",
Constructor(DOMString type, optional IccChangeEventInit eventInitDict)]
interface IccChangeEvent : Event
{
readonly attribute DOMString iccId;
};
dictionary IccChangeEventInit : EventInit
{
DOMString iccId = "";
};

View File

@ -565,6 +565,7 @@ GENERATED_EVENTS_WEBIDL_FILES = [
'DeviceLightEvent.webidl',
'DeviceProximityEvent.webidl',
'ErrorEvent.webidl',
'IccChangeEvent.webidl',
'MediaStreamEvent.webidl',
'MozContactChangeEvent.webidl',
'MozInterAppMessageEvent.webidl',