mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-27 07:34:20 +00:00
Bug 814637 - Part 2: Add iccChangeEvent using event generator. f=hsinyi. r=smaug
This commit is contained in:
parent
4968c7d3f1
commit
fab68d299c
@ -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);
|
||||
},
|
||||
|
@ -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",
|
||||
|
17
dom/webidl/IccChangeEvent.webidl
Normal file
17
dom/webidl/IccChangeEvent.webidl
Normal 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 = "";
|
||||
};
|
@ -565,6 +565,7 @@ GENERATED_EVENTS_WEBIDL_FILES = [
|
||||
'DeviceLightEvent.webidl',
|
||||
'DeviceProximityEvent.webidl',
|
||||
'ErrorEvent.webidl',
|
||||
'IccChangeEvent.webidl',
|
||||
'MediaStreamEvent.webidl',
|
||||
'MozContactChangeEvent.webidl',
|
||||
'MozInterAppMessageEvent.webidl',
|
||||
|
Loading…
x
Reference in New Issue
Block a user