Search completed in 0.92 seconds.
JSNewEnumerateOp
the type of objectops::
enumerate.
... this callback overrides a portion of spidermonkey's default [[
enumerate]] internal method.
... syntax typedef bool (* jsnew
enumerateop)(jscontext *cx, js::handleobject obj, js::autoidvector &properties); // added in spidermonkeysidebar 38 typedef bool (* jsnew
enumerateop)(jscontext *cx, js::handleobject obj, jsiterateop enum_op, js::mutablehandlevalue statep, js::mutablehandleid idp); // obsolete since jsapi 37 name type description cx jscontext * the context in which the enumeration is taking place.
...And 14 more matches
JS_Enumerate
syntax jsidarray * js_
enumerate(jscontext *cx, js::handleobject obj); name type description cx jscontext * the context in which to
enumerate object properties.
... obj js::handleobject the object whose properties are to be
enumerated.
... description js_
enumerate gets the ids of all own properties of the specified object, obj, that have the jsprop_
enumerate attribute.
...And 5 more matches
JSEnumerateOp
js
enumerateop is the type of the jsclass.
enumerate callback.
... syntax typedef bool (* js
enumerateop)(jscontext *cx, js::handleobject obj); name type description cx jscontext * pointer to the js context in which the enumeration is taking place.
... obj js::handleobject pointer to the object to be
enumerated.
...And 4 more matches
handler.enumerate() - Archive of obsolete content
the handler.
enumerate() method used to be a trap for for...in statements, but has been removed from the ecmascript standard in es2016 and is deprecated in browsers.
... syntax var p = new proxy(target, {
enumerate(target) { } }); parameters the following parameter is passed to the
enumerate method.
... description the handler.
enumerate method is a trap for for...in statements.
...And 3 more matches
MediaDevices.enumerateDevices() - Web APIs
the mediadevices method
enumeratedevices() requests a list of the available media input and output devices, such as microphones, cameras, headsets, and so forth.
... syntax var enumeratorpromise = navigator.mediadevices.
enumeratedevices(); return value a promise that receives an array of mediadeviceinfo objects when the promise is fulfilled.
... example here's an example of using
enumeratedevices().
...And 3 more matches
JSObjectOps.enumerate
the jsobjectops.
enumerate callback implements iteration over object properties.
... the type of the callback is jsnew
enumerateop.
... for native objects, the
enumerate callback first checks the jsclass_new_
enumerate flag of the object's class.
...And 2 more matches
JS_EnumerateDiagnosticMemoryRegions
this article covers features introduced in spidermonkey 17
enumerate memory regions that contain diagnostic information..
... syntax void js_
enumeratediagnosticmemoryregions(js
enumeratediagnosticmemorycallback callback); name type description callback js
enumeratediagnosticmemorycallback pointer to the new callback function to use.
... callback syntax typedef bool (* js
enumeratediagnosticmemorycallback)(void *ptr, size_t length); name type description ptr void * pointer to the allocated memory.
...And 2 more matches
JS_EnumerateStandardClasses
enumerate standard class in an object.
... syntax bool js_
enumeratestandardclasses(jscontext *cx, js::handleobject obj); name type description cx jscontext * pointer to the executable script context for which to initialize js function and object classes.
... obj js::handleobject an object to
enumerate standard classes.
...And 2 more matches
Reflect.enumerate() - Archive of obsolete content
the static reflect.
enumerate() method used to return an iterator with the enumerable own and inherited properties of the target object, but has been removed in ecmascript 2016 and is deprecated in browsers.
... syntax reflect.
enumerate(target) parameters target the target object on which to get the property.
... description the reflect.
enumerate method returns an iterator with the enumerable own and inherited properties of the target object.
... examples using reflect.
enumerate() var obj = { x: 1, y: 2 }; for (var name of reflect.
enumerate(obj)) { console.log(name); } // logs "x" and "y" specifications not part of any standard.
PL_HashTableEnumerateEntries
enumerates all the entries in the hash table, invoking a specified function on each entry.
... syntax #include <plhash.h> printn pl_hashtable
enumerateentries( plhashtable *ht, plhashenumerator f, void *arg); parameters the function has the following parameters: ht a pointer to the hash table whose entries are to be
enumerated.
... returns the number of entries
enumerated.
... description the entries are
enumerated in an unspecified order.
PR EnumerateAddrInfo
enumerates each of the possible network addresses of a praddrinfo structure, acquired from pr_getaddrinfobyname.
... syntax #include <prnetdb.h> void *pr_
enumerateaddrinfo( void *enumptr, const praddrinfo *addrinfo, pruint16 port, prnetaddr *result); parameters the function has the following parameters: enumptr the index pointer of the enumeration.
... description pr_
enumerateaddrinfo is a stateless enumerator.
JS_EnumerateResolvedStandardClasses
enumerate any already-resolved standard class ids.
... syntax jsidarray * js_
enumerateresolvedstandardclasses(jscontext *cx, jsobject *obj, jsidarray *ida); name type description description js_
enumerateresolvedstandardclasses
enumerates any already-resolved standard class ids into ida, or into a new jsidarray if ida is null.
... see also js_
enumerateresolvedstandardclasses bug 884410 ...
NPN_Enumerate - Archive of obsolete content
syntax #include <npruntime.h> bool npn_
enumerate(npp npp, npobject *npobj, npidentifier **identifiers, uint32_t *identifiercount); parameters the function has the following parameters: npp the npp indicating which plugin instance is making the request.
... note: the caller must call npn_memfree() on the pointer received through the identifiers parameter of a successful call to npn_
enumerate to release the array of string identifiers when it is no longer needed.
PR_EnumerateHostEnt
syntax #include <prnetdb.h> printn pr_
enumeratehostent( printn enumindex, const prhostent *hostent, pruint16 port, prnetaddr *address); parameters the function has the following parameters: enumindex the index of the enumeration.
... description pr_
enumeratehostent is a stateless enumerator.
enumerateCategory
this content is now available at nsicategorymanager.
enumeratecategory().
enumerateCIDs
this content is now available at nsicomponentregistrar.
enumeratecids().
enumerateObservers
this content is now available at nsiobserverservice.
enumerateobservers().
Index - Web APIs
75 animation.playstate api, animation, property, reference, web animations, playstate, web animations api the animation.playstate property of the web animations api returns and sets an
enumerated value describing the playback state of an animation.
... 136 audiocontextlatencycategory api, audio, audio context, audiocontextlatencycategory, enum, interface, media, reference, type, web audio, web audio api, latency the audiocontextlatencycategory type is an
enumerated set of strings which are used to select one of a number of default values for acceptable maximum latency of an audio context.
... 487 cssunparsedvalue.entries() api, css typed object model api, cssunparsedvalue, constructor, entries, experimental, houdini, method, needsexample, reference the cssunparsedvalue.entries() method returns an array of a given object's own enumerable property [key, value] pairs in the same order as that provided by a for...in loop (the difference being that a for-in loop
enumerates properties in the prototype chain as well).
...And 27 more matches
Index
96 js
enumerateop jsapi reference, spidermonkey js
enumerateop is called just before an object is
enumerated (via a for...in statement, an array comprehension, or a call to js_
enumerate).
...this hook does not implement iteration: once the properties are defined, the javascript engine can
enumerate them.
... 122 jsidarray jsapi reference, spidermonkey jsidarray is used to hold ids for
enumerated properties associated with an object.
...And 14 more matches
nsIWindowMediator
nsisimpleenumerator getenumerator( in wstring awindowtype ); parameters awindowtype the returned enumerator will
enumerate only windows of this type.
... ("type" is the |windowtype| attribute of the xml <window> element.) if null, all windows will be
enumerated.
... nsisimpleenumerator getxulwindowenumerator( in wstring awindowtype ); parameters awindowtype the returned enumerator will
enumerate only windows of this type; that is, the windowtype attribute of the xul window element.
...And 9 more matches
nsIXPCScriptable
p); prbool delproperty(in nsixpconnectwrappednative wrapper, in jscontextptr cx, in jsobjectptr obj, in jsval id, in jsvalptr vp); prbool getproperty(in nsixpconnectwrappednative wrapper, in jscontextptr cx, in jsobjectptr obj, in jsval id, in jsvalptr vp); prbool setproperty(in nsixpconnectwrappednative wrapper, in jscontextptr cx, in jsobjectptr obj, in jsval id, in jsvalptr vp); prbool
enumerate(in nsixpconnectwrappednative wrapper, in jscontextptr cx, in jsobjectptr obj); prbool new
enumerate(in nsixpconnectwrappednative wrapper, in jscontextptr cx, in jsobjectptr obj, in pruint32 enum_op, in jsvalptr statep, out jsid idp); prbool newresolve(in nsixpconnectwrappednative wrapper, in jscontextptr cx, in jsobjectptr obj, in jsval id, in pruint32 flags, out jsobjectptr objp); prbool co...
... constants constant value description want_precreate 1 << 0 want_create 1 << 1 want_postcreate 1 << 2 want_addproperty 1 << 3 want_delproperty 1 << 4 want_getproperty 1 << 5 want_setproperty 1 << 6 want_
enumerate 1 << 7 want_new
enumerate 1 << 8 indicates that the object wants to have its new
enumerate method called.
...
enumerate() prbool
enumerate( in nsixpconnectwrappednative wrapper, in jscontextptr cx, in jsobjectptr obj ); parameters wrapper cx obj return value new
enumerate() this method is called when the want_new
enumerate flag is set.
...And 8 more matches
JSAPI reference
js_setversionforcompartment added in spidermonkey 31 js_stringtoversion js_versiontostring js_setversion obsolete since jsapi 25 js::currentglobalornull added in spidermonkey 31 js_getglobalforscopechain obsolete since jsapi 25 js_getglobalobject obsolete since jsapi 24 js_setglobalobject obsolete since jsapi 25 js_initclass js_initstandardclasses js_resolvestandardclass js_
enumeratestandardclasses js_
enumerateresolvedstandardclasses obsolete since jsapi 24 js_isrunning js_saveframechain js_restoreframechain js_isassigning obsolete since javascript 1.8.5 js_isconstructing obsolete since jsapi 26 js_isconstructing_possiblywithgiventhisobject obsolete since jsapi 17 js_getscopechain obsolete since javascript 1.8.7 compartments: class jsautocompartment ad...
...monkey 1.8 obsolete since jsapi 23 js_call_double_tracer added in spidermonkey 1.8 obsolete since javascript 1.8.5 js_printtracethinginfo (debug-only) added in spidermonkey 1.8 obsolete since jsapi 16 miscellaneous gc apis: js_updatemalloccounter added in spidermonkey 17 js::setlargeallocationfailurecallback added in spidermonkey 31 js::setoutofmemorycallback added in spidermonkey 31 js_
enumeratediagnosticmemoryregions added in spidermonkey 17 jsval_lock obsolete since jsapi 18 jsval_unlock obsolete since jsapi 18 js_lockgcthing obsolete since jsapi 21 js_lockgcthingrt obsolete since jsapi 22 js_unlockgcthing obsolete since jsapi 21 js_unlockgcthingrt obsolete since jsapi 22 numbers js_numbervalue added in spidermonkey 17 js_defineconstdoubles struct jsconstdoublespec...
... struct jspropertydescriptor added in spidermonkey 1.8 property attributes jsprop_
enumerate jsprop_readonly jsprop_permanent jsprop_propop_accessors added in spidermonkey 38 jsprop_getter jsprop_setter jsprop_shared jsprop_index jsprop_define_late added in spidermonkey 38 jsfun_stub_gsops added in spidermonkey 17 jsfun_constructor added in spidermonkey 17 jsprop_redefine_nonconfigurable added in spidermonkey 38 jsprop_resolving added in spidermonkey 4...
...And 5 more matches
Index
284 role
enumerated accessible role for the associated element.
... 383
enumeratecategories no summary!
... 384
enumeratecategory no summary!
...And 5 more matches
nsICategoryManager
.getservice(components.interfaces.nsicategorymanager); method overview string addcategoryentry(in string acategory, in string aentry, in string avalue, in boolean apersist, in boolean areplace); void deletecategory(in string acategory); void deletecategoryentry(in string acategory, in string aentry, in boolean apersist); nsisimpleenumerator
enumeratecategories(); nsisimpleenumerator
enumeratecategory(in string acategory); string getcategoryentry(in string acategory, in string aentry); methods addcategoryentry() this method sets the value for the given entry on the given category.
...
enumeratecategories()
enumerate all existing categories.
... nsisimpleenumerator
enumeratecategories(); parameters none.
...And 5 more matches
HTML documentation index - HTML: Hypertext Markup Language
9 autocapitalize autocapitalize, global attributes, html, reference the autocapitalize global attribute is an
enumerated attribute that controls whether and how text input is automatically capitalized as it is entered/edited by the user.
... 11 contenteditable editing, global attributes, html, reference, text editing, contenteditable, text entry, text input the contenteditable global attribute is an
enumerated attribute indicating if the element should be editable by the user.
... 14 dir bidi, global attributes, html, reference the dir global attribute is an
enumerated attribute that indicates the directionality of the element's text.
...And 5 more matches
JSClass
syntax struct jsclass { const char *name; uint32_t flags; /* optional since spidermonkey 37 */ jspropertyop addproperty; jsdeletepropertyop delproperty; jspropertyop getproperty; jsstrictpropertyop setproperty; js
enumerateop
enumerate; jsresolveop resolve; jsconvertop convert; /* obsolete since spidermonkey 44 */ /* optional since spidermonkey 25 */ jsfinalizeop finalize; /* optional */ jsclassinternal reserved0; /* obsolete since spidermonkey 13 */ jscheckaccessop checkaccess; /* obsolete since spidermonkey 29 */ jsnative c...
...
enumerate js
enumerateop method for enumerating object properties.
... use null or js_
enumeratestub (spidermonkey 31 or older) for default behavior.
...And 4 more matches
Property attributes
see js_defineproperty, js_fs, and js_fn flag description jsprop_
enumerate the property is visible to javascript for...in and for each ...
... in loops, as well as to js_
enumerate.
... mxr id search for jsprop_
enumerate jsprop_readonly the property's value cannot be set.
...And 4 more matches
XPCOM array guide
for example: // handlelist cannot modify the array because of const void handlelist(const nstarray<t>&); in-place enumeration most of the arrays presented here provide callback-style means to
enumerate members of an array.
... enumerators most arrays provide access to an object which is used to
enumerate members of the array.
...the method
enumerate() returns a nsisimpleenumerator which accesses all the elements in the array.
...And 4 more matches
Starting WebLock
in this section, we
enumerate the basic functionality the component should expose and create the single interface that organizes and provides this functionality.
...
enumeratesites - allows the enumeration of all sites in the white list.
...
enumeratesites might be used in the user interface to provide something like an editable listbox of all sites in the white list.
...And 4 more matches
Global attributes - HTML: Hypertext Markup Language
contenteditable an
enumerated attribute indicating if the element should be editable by the user.
... dir an
enumerated attribute indicating the directionality of the element's text.
... draggable an
enumerated attribute indicating whether the element can be dragged, using the drag and drop api.
...And 3 more matches
JSAPI Cookbook
the property attribute jsprop_readonly corresponds to writeable: false, jsprop_
enumerate to enumerable: true, and jsprop_permanent to configurable: false.
... /* jsapi */ if (!js_defineproperty(cx, obj, "prop", int_to_jsval(123), js_propertystub, js_strictpropertystub, jsprop_readonly | jsprop_
enumerate | jsprop_permanent)) { return false; } defining a property with a getter and setter object.defineproperty() can be used to define properties in terms of two accessor functions.
... /* jsapi */ if (!js_defineproperty(cx, obj, "prop", js::undefinedvalue(), (jspropertyop) getpropfunc, (jsstrictpropertyop) setpropfunc, jsprop_shared | jsprop_native_accessors | jsprop_
enumerate)) { return false; } defining a read-only property with only a getter // javascript object.defineproperty(obj, "prop", {get: getpropfunc, enumerable: true}); in the jsapi version, to signify that the property is read-only, pass null for the setter.
...And 2 more matches
nsIComponentRegistrar
inherits from: nsisupports last changed in gecko 1.0 method overview void autoregister(in nsifile aspec); void autounregister(in nsifile aspec); string cidtocontractid(in nscidref aclass); nscidptr contractidtocid(in string acontractid); nsisimpleenumerator
enumeratecids(); nsisimpleenumerator
enumeratecontractids(); boolean iscidregistered(in nscidref aclass); boolean iscontractidregistered(in string acontractid); void registerfactory(in nscidref aclass, in string aclassname, in string acontractid, in nsifactory afactory); void registerfactorylocation(in nscidref aclass, in string aclassname, in string acontractid, in nsifile afile, in string aload...
...
enumeratecids() this method returns an enumerator over the list of registered classids.
...nsisimpleenumerator
enumeratecids(); parameters none.
...And 2 more matches
nsIMemoryReporterManager
method overview nsisimpleenumerator
enumeratemultireporters(); nsisimpleenumerator
enumeratereporters(); void init(); void registermultireporter(in nsimemorymultireporter reporter); void registerreporter(in nsimemoryreporter reporter); void unregistermultireporter(in nsimemorymultireporter reporter); void unregisterreporter(in nsimemoryreporte...
... methods
enumeratemultireporters() returns an enumerator for looking at the installed memory multi-reporters.
... nsisimpleenumerator
enumeratemultireporters(); parameters none.
...And 2 more matches
MediaDeviceInfo - Web APIs
the list of devices obtained by calling navigator.mediadevices.
enumeratedevices() is an array of mediadeviceinfo objects, one per media device.
... mediadeviceinfo.kindread only returns an
enumerated value that is either "videoinput", "audioinput" or "audiooutput".
... example here's an example that uses
enumeratedevices() to get a list of devices.
...And 2 more matches
Index - Archive of obsolete content
67 windows add-on sdk
enumerate and examine open browser windows, open new windows, and listen for window events.
... 2074 reflect.
enumerate() ecmascript 2015, javascript, method, obsolete, reflect the static reflect.
enumerate() method used to return an iterator with the enumerable own and inherited properties of the target object, but has been removed in ecmascript 2016 and is deprecated in browsers.
... 2078 handler.
enumerate() ecmascript 2015, javascript, method, obsolete, proxy the handler.
enumerate() method used to be a trap for for...in statements, but has been removed from the ecmascript standard in es2016 and is deprecated in browsers.
... 3634 npn_
enumerate gets the names of the properties and methods of the specified npobject.
PLHashEnumerator
syntax #include <plhash.h> typedef printn (pr_callback *plhashenumerator)(plhashentry *he, printn index, void *arg); /* return value */ #define ht_
enumerate_next 0 /* continue enumerating entries */ #define ht_
enumerate_stop 1 /* stop enumerating entries */ #define ht_
enumerate_remove 2 /* remove and free the current entry */ #define ht_
enumerate_unhash 4 /* just unhash the current entry */ description plhashenumerator is a function type used in the enumerating a hash table.
... when all the table entries are
enumerated, each entry is passed to a user-specified function of type plhashenumerator with the hash table entry, an integer index, and an arbitrary piece of user data as argument.
... remark the meaning of ht_
enumerate_unhash is not clear.
... see also pl_hashtable
enumerateentries ...
JSAPI User Guide
static jsclass globalclass = { "global", jsclass_global_flags, js_propertystub, js_deletepropertystub, js_propertystub, js_strictpropertystub, js_
enumeratestub, js_resolvestub, js_convertstub, nullptr, nullptr, nullptr, nullptr, js_globalobjecttracehook }; // the error reporter callback.
...*/ my_addproperty, my_delproperty, my_getproperty, my_setproperty, my_
enumerate, my_resolve, my_convert, my_finalize }; jsobject *obj; /* * define an object named in the global scope that can be
enumerated by * for/in loops.
... */ obj = js_defineobject(cx, globalobj, "myobject", &my_class, nullptr, jsprop_
enumerate); /* * define a bunch of properties with a jspropertyspec array statically * initialized and terminated with a null-name entry.
... */ enum my_tinyid { my_color, my_height, my_width, my_funny, my_array, my_rdonly }; static jspropertyspec my_props[] = { {"color", my_color, jsprop_
enumerate}, {"height", my_height, jsprop_
enumerate}, {"width", my_width, jsprop_
enumerate}, {"funny", my_funny, jsprop_
enumerate}, {"array", my_array, jsprop_
enumerate}, {"rdonly", my_rdonly, jsprop_readonly}, {0} }; js_defineproperties(cx, obj, my_props); /* * given the above definitions and call to js_defineproperties, obj will * need this sort of "getter" method in its class (my...
nsIMsgDatabase
nsisimpleenumerator
enumeratemessages(); nsisimpleenumerator
enumeratethreads(); void synccounts; nsimsgthread getthreadcontainingmsghdr(in nsimsgdbhdr msghdr); void markhdrread(in nsimsgdbhdr msghdr, in boolean bread, in nsidbchangelistener instigator); void markhdrreplied(in nsimsgdbhdr msghdr, in boolean breplied, in nsidbchangelistener instigator); void markhdrmarked(in nsimsgdbhdr msghdr, in boolean mark,in n...
...nsettings(in nsimsgretentionsettings amsgretentionsettings, in boolean adeleteviafolder); boolean hasnew(); void clearnewlist(in boolean notify); void addtonewlist(in nsmsgkey key); void startbatch(); void endbatch(); nsimsgofflineimapoperation getofflineopforkey(in nsmsgkey messagekey, in boolean create); void removeofflineop(in nsimsgofflineimapoperation op); nsisimpleenumerator
enumerateofflineops(); void listallofflineopids(in nsmsgkeyarrayptr offlineopids); native code only!
... nsimsgdbhdr createnewhdr(in nsmsgkey key); addnewhdrtodb() void addnewhdrtodb(in nsimsgdbhdr newhdr, in boolean notify); copyhdrfromexistinghdr() nsimsgdbhdr copyhdrfromexistinghdr(in nsmsgkey key, in nsimsgdbhdr existinghdr, in boolean addhdrtodb); listallkeys() [noscript] void listallkeys(in nsmsgkeyarrayref outputkeys);
enumeratemessages() nsisimpleenumerator
enumeratemessages();
enumeratethreads() nsisimpleenumerator
enumeratethreads(); synccounts() count the total and unread msgs, and adjust global count if needed.
... nsimsgofflineimapoperation getofflineopforkey(in nsmsgkey messagekey, in boolean create); removeofflineop() void removeofflineop(in nsimsgofflineimapoperation op);
enumerateofflineops() nsisimpleenumerator
enumerateofflineops(); listallofflineopids() [noscript] void listallofflineopids(in nsmsgkeyarrayptr offlineopids); listallofflinedeletes() [noscript] void listallofflinedeletes(in nsmsgkeyarrayptr offlinedeletes); listallofflinemsgs() [noscript] void listallofflinemsgs(in nsmsgkeyarrayptr offlinemsgs); setattributesonpendinghdr() void setattributesonpendi...
nsIObserverService
xpcom/ds/nsiobserverservice.idlscriptable this interface provides methods to add, remove, notify, and
enumerate observers of various notifications.
... implemented by @mozilla.org/observer-service;1 as a service: var observerservice = components.classes["@mozilla.org/observer-service;1"] .getservice(components.interfaces.nsiobserverservice); method overview void addobserver( in nsiobserver anobserver, in string atopic, in boolean ownsweak); nsisimpleenumerator
enumerateobservers( in string atopic ); void notifyobservers( in nsisupports asubject, in string atopic, in wstring somedata ); void removeobserver( in nsiobserver anobserver, in string atopic ); methods addobserver() registers a given listener for a notifications regarding the specified topic.
...(in most cases, you should use false.)
enumerateobservers() called to
enumerate all observers registered for a particular topic.
... nsisimpleenumerator
enumerateobservers( in string atopic ); parameters atopic the notification topic or subject.
MediaDevices.ondevicechange - Web APIs
you can at any time use
enumeratedevices() to get the updated list of available devices.
...there is no information about the change included in the event object; to get the updated list of devices, you'll have to use
enumeratedevices().
... function updatedevicelist() { navigator.mediadevices.
enumeratedevices() .then(function(devices) { audiolist.innerhtml = ""; videolist.innerhtml = ""; devices.foreach(function(device) { let elem = document.createelement("li"); let [kind, type, direction] = device.kind.match(/(\w+)(input|output)/i); elem.innerhtml = "<strong>" + device.label + "</strong> (" + direction + ")"; if (type === "audio") { audiolist.app...
...endchild(elem); } else if (type === "video") { videolist.appendchild(elem); } }); }); } updatedevicelist() consists entirely of a call to the function
enumeratedevices() on the mediadevices object referenced in the navigator.mediadevices property, as well as the code that's run when the promise returned by
enumeratedevices() is fulfilled.
RTCIceTransport - Web APIs
the value is one of the strings from the rtcicetransport
enumerated type: "rtp" or "rtsp".
...the value is one of those included in the rtcicegathererstate
enumerated type: "new", "gathering", or "complete".
... role read only returns a domstring whose value is one of the members of the rtcicerole
enumerated type: "controlling" or "controlled"; this indicates whether the ice agent is the one that makes the final decision as to the candidate pair to use or not.
...see the rtcicetransportstate
enumerated type for a complete list of states.
Mozilla accessibility architecture
for example, they all expose an accessible name, or text representation, of each object, and they all use an
enumerated integer value from a finite list, to expose the role of an object.
...each of these accessible nodes supports at minimum the generic cross-platform accessibility interface nsiaccessible (which provides a text name,
enumerated role identifier and a set of state flags) and sometimes additional interfaces.
...accessible events accessible events are dom events translated into the event mechanism of the given platform, using the
enumerated event numbers listed in nsiaccessibleeventreceiver.idl.
JS_PropertyStub
js::handleid id, bool strict, js::mutablehandlevalue vp); // obsolete since jsapi 39 bool js_resolvestub(jscontext *cx, js::handleobject obj, js::handleid id, bool *resolvedp); // obsolete since jsapi 37 bool js_deletepropertystub(jscontext *cx, js::handleobject obj, js::handleid id, bool *succeeded); // obsolete since jsapi 37 bool js_
enumeratestub(jscontext *cx, js::handleobject obj); // obsolete since jsapi 37 bool js_convertstub(jscontext *cx, js::handleobject obj, jstype type, js::mutablehandlevalue vp); // obsolete since jsapi 37 void js_finalizestub(jscontext *cx, jsobject *obj); // obsolete since jsapi 14 description the stub functions are not designed to be called directly by a jsapi application.
... js_
enumeratestub is a stub for jsclass.
enumerate.
... see also mxr id search for js_propertystub mxr id search for js_strictpropertystub jspropertyop jsstrictpropertyop bug 1103152 - removed js_deletepropertystub, js_
enumeratestub, js_resolvestub, and js_convertstub bug 736978 - removed js_finalizestub bug 1113369 -- added result parameter ...
SpiderMonkey 38
ytoprimitive (bug 1103152) js::propertyspecnameequalsid (bug 1082672) js::propertyspecnameissymbol (bug 1082672) js::propertyspecnametopermanentid (bug 1082672) js::protokeytoid (bug 987669) js::rootedsymbol (bug 645416) js::truehandlevalue (bug 959787) jsconstintegerspec (bug 1066020) jsid_is_symbol (bug 645416) jsid_to_symbol (bug 645416) jsprop_define_late (bug 825199) jsprop_ignore_
enumerate (bug 1037770) jsprop_ignore_permanent (bug 1037770) jsprop_ignore_readonly (bug 1037770) jsprop_ignore_value (bug 1037770) jsprop_propop_accessors (bug 1088002) jsprop_redefine_nonconfigurable (bug 1101123) js_addfinalizecallback (bug 996785) js_defineconstintegers (bug 1066020) js_getflatstringcharat (bug 1034627) js_getfunctionscript (bug 1069694) js_getlatin1flatstringchars (bug 1037...
...addobjectroot (bug 1107639) js::addstringroot (bug 1107639) js::addvalueroot (bug 1107639) js::removeobjectroot (bug 1107639) js::removeobjectrootrt (bug 1107639) js::removescriptroot (bug 1107639) js::removescriptrootrt (bug 1107639) js::removestringroot (bug 1107639) js::removestringrootrt (bug 1107639) js::removevalueroot (bug 1107639) js::removevaluerootrt (bug 1107639) jsclass_new_
enumerate (bug 1097267) jsclass_new_resolve (bug 993026) jsid_is_object (bug 915482) jsnewresolveop (bug 993026) jsval_is_boolean (bug 952650) jsval_is_double (bug 952650) jsval_is_gcthing (bug 952650) jsval_is_int (bug 952650) jsval_is_null (bug 952650) jsval_is_number (bug 952650) jsval_is_primitive (bug 952650) jsval_is_string (bug 952650) jsval_is_void (bug 952650) jsval_to_boolean (bug 95...
... 952650) js_clearnonglobalobject (bug 1043281) js_clonefunctionobject (bug 1089026) js_compilefunction (bug 1089026) js_compileucfunction (bug 1089026) js_convertarguments (bug 1125784) js_convertargumentsva (bug 1125784) js_convertstub (bug 1103152) js_defineownproperty (bug 1017323) js_deletepropertystub (bug 1103152) js_doubletoint32 (bug 1112774) js_doubletouint32 (bug 1112774) js_
enumeratestub (bug 1103152) js_evaluatescript (bug 1100579) js_evaluateucscript (bug 1100579) js_executescriptversion (bug 1095660) js_getflatstringchars (bug 1037869) js_getfunctioncallback (bug 1103269) js_getinternedstringchars (bug 1037869) js_getinternedstringcharsandlength (bug 1037869) js_getstringcharsandlength (bug 1037869) js_getstringcharsz (bug 1037869) js_getstringcharszandlength (bu...
nsIArray
method overview nsisimpleenumerator
enumerate(); unsigned long indexof(in unsigned long startindex, in nsisupports element); void queryelementat(in unsigned long index, in nsiidref uuid, [iid_is(uuid), retval] out nsqiresult result); attributes attribute type description length unsigned long the number of elements in the array.
... methods
enumerate()
enumerate the array.
... nsisimpleenumerator
enumerate(); parameters none.
nsICollection
inherits from: nsiserializable last changed in gecko 1.7 method overview void appendelement(in nsisupports item); void clear(); pruint32 count(); nsienumerator
enumerate(); nsisupports getelementat(in pruint32 index); void queryelementat(in pruint32 index, in nsiidref uuid, [iid_is(uuid),retval] out nsqiresult result); void removeelement(in nsisupports item); void setelementat(in pruint32 index, in nsisupports item); methods appendelement() appends a new item to the collection.
...
enumerate() returns an nsienumerator that lets you iterate over the items in the collection.
... nsienumerator
enumerate(); parameters none.
nsIDocShell
enumerate_forwards 0 used by getdocshellenumerator()to determine the direction of the enumeration.
...
enumerate_backwards 1 used by getdocshellenumerator()to determine the direction of the enumeration.
... adirection whether to
enumerate forwards or backwards.
nsIMicrosummarySet
66 introduced gecko 1.8 obsolete gecko 6.0 inherits from: nsisupports last changed in gecko 1.8 (firefox 1.5 / thunderbird 1.5 / seamonkey 1.0) warning: microsummary support was removed in gecko 6.0 (firefox 6.0 / thunderbird 6.0 / seamonkey 2.3) method overview void addobserver(in nsimicrosummaryobserver observer); nsisimpleenumerator
enumerate(); void removeobserver(in nsimicrosummaryobserver observer); methods addobserver() add a microsummary observer to this microsummary set.
...
enumerate() retrieve an nsisimpleenumerator of microsummaries in the set.
... nsisimpleenumerator
enumerate(); parameters none.
nsIPrinterEnumerator
inherits from: nsisupports last changed in gecko 1.9 (firefox 3) method overview void displaypropertiesdlg(in wstring aprinter, in nsiprintsettings aprintsettings); void
enumerateprinters(out pruint32 acount,[retval, array, size_is(acount)] out wstring aresult); obsolete since gecko 1.9 void initprintsettingsfromprinter(in wstring aprintername, in nsiprintsettings aprintsettings); attributes attribute type description defaultprintername wstring the name of the system default printer.
... methods displaypropertiesdlg() void displaypropertiesdlg( in wstring aprinter, in nsiprintsettings aprintsettings ); parameters aprinter aprintsettings
enumerateprinters() obsolete since gecko 1.9 (firefox 3) returns an array of the names of all installed printers.
... void
enumerateprinters( out pruint32 acount, [retval, array, size_is(acount)] out wstring aresult ); parameters acount returns number of printers returned.
nsIRadioInterfaceLayer
asses["@mozilla.org/telephony/system-worker-manager;1"] .getservice(components.interfaces.nsiinterfacerequestor) .createinstance(components.interfaces.nsiradiointerfacelayer); method overview void answercall(in unsigned long callindex); void deactivatedatacall(in domstring cid, in domstring reason); void dial(in domstring number); void
enumeratecalls(in nsiriltelephonycallback callback); void getdatacalllist(); unsigned short getnumberofmessagesfortext(in domstring text); void hangup(in unsigned long callindex); void registercallback(in nsiriltelephonycallback callback); void registerdatacallcallback(in nsirildatacallback callback); void rejectcall(in unsigned long callindex); void sendsms(in domstring number, in domstring ...
...void dial( in domstring number ); parameters number missing description exceptions thrown missing exception missing description
enumeratecalls() will continue calling callback.
enumeratecallstate until the callback returns false.
... void
enumeratecalls( in nsiriltelephonycallback callback ); parameters callback missing description exceptions thrown missing exception missing description getdatacalllist() void getdatacalllist(); parameters none.
MediaDeviceInfo.groupId - Web APIs
const getdevicegroup = maindevinfo => { let devlist = []; navigator.mediadevices.
enumeratedevices() .then(devices => { devices.foreach(device => { if (device.groupid === maindevinfo.groupid) { devlist.push(device); } }); }); return devlist; }; the getdevicegroup() function takes as input the mediadeviceinfo object describing the device for which a group list is to be built.
... then navigator.mediadevices.
enumeratedevices() is called to get the list of all media devices.
... this version of the example puts the passed-in device at the top of the result list, then adds any other members of the group that are found: const getdevicegroup = maindevinfo => { let devlist = [maindevinfo]; navigator.mediadevices.
enumeratedevices() .then(devices => { devices.foreach(device => { if ((device.groupid === maindevinfo.groupid) && (device.deviceid !== maindevinfo.deviceid)) { devlist.push(device); } }); }); return devlist; }; ...
MediaStream Recording API - Web APIs
to do so, you'll need to call navigator.mediadevices.
enumeratedevices() to get a list of the available media devices.
... in this code snippet,
enumeratedevices() is used to examine the available input devices, locate those which are audio input devices, and create <option> elements that are then added to a <select> element representing an input source picker.
... navigator.mediadevices.
enumeratedevices() .then(function(devices) { devices.foreach(function(device) { let menu = document.getelementbyid("inputdevices"); if (device.kind == "audioinput") { let item = document.createelement("option"); item.innerhtml = device.label; item.value = device.deviceid; menu.appendchild(item); } }); }); code similar to this can be used to let the user restrict the set of devices they wish to use.
RTCIceCandidate - Web APIs
the permitted values are listed in the rtcicecomponent
enumerated type.
...the string is one of those in the
enumerated type rtciceprotocol.
... type read only a domstring indicating the type of candidate as one of the strings from the rtcicecandidatetype
enumerated type.
WaveShaperNode.oversample - Web APIs
the oversample property of the waveshapernode interface is an
enumerated value indicating if oversampling must be used.
... syntax distortion.oversample =
enumeratedvalue; values distortion is a waveshapernode.
...
enumeratedvalue is one of 'none', '2x', or '4x'.
<audio>: The Embed Audio element - HTML: Hypertext Markup Language
crossorigin this
enumerated attribute indicates whether to use cors to fetch the related audio file.
...if invalid, it is handled as if the
enumerated keyword anonymous was used.
... preload this
enumerated attribute is intended to provide a hint to the browser about what the author thinks will lead to the best user experience.
<table>: The Table element - HTML: Hypertext Markup Language
deprecated attributes align this
enumerated attribute indicates how the table must be aligned inside the containing document.
... frame this
enumerated attribute defines which side of the frame surrounding the table must be displayed.
... rules this
enumerated attribute defines where rules, i.e.
<video>: The Video Embed element - HTML: Hypertext Markup Language
crossorigin this
enumerated attribute indicates whether to use cors to fetch the related image.
...if invalid, it is handled as if the
enumerated keyword anonymous was used.
... preload this
enumerated attribute is intended to provide a hint to the browser about what the author thinks will lead to the best user experience with regards to what content is loaded before the video is played.
JavaScript data types and data structures - JavaScript
false [[enumerable]] boolean if true, the property will be
enumerated in for...in loops.
... undefined [[enumerable]] boolean if true, the property will be
enumerated in for...in loops.
... the difference between maps and weakmaps is that in the former, object keys can be
enumerated over.
tabs - Archive of obsolete content
in particular, you can
enumerate it: var tabs = require('sdk/tabs'); for (let tab of tabs) console.log(tab.title); you can also access individual tabs by index: var tabs = require('sdk/tabs'); tabs.on('ready', function () { console.log('first: ' + tabs[0].title); console.log('last: ' + tabs[tabs.length-1].title); }); you can access the currently active tab: var tabs = require('sdk/tabs'); tabs.on('activate', functio...
... tabs hosted by private browser windows won't be seen if you
enumerate the tabs module itself, and you won't receive any events for them.
windows - Archive of obsolete content
enumerate and examine open browser windows, open new windows, and listen for window events.
...with this module, you can:
enumerate the currently opened browser windows open new browser windows listen for common window events such as open and close private windows if your add-on has not opted into private browsing, then you won't see any private browser windows.
NPClass - Archive of obsolete content
unctionptr allocate; npdeallocatefunctionptr deallocate; npinvalidatefunctionptr invalidate; nphasmethodfunctionptr hasmethod; npinvokefunctionptr invoke; npinvokedefaultfunctionptr invokedefault; nphaspropertyfunctionptr hasproperty; npgetpropertyfunctionptr getproperty; npsetpropertyfunctionptr setproperty; npremovepropertyfunctionptr removeproperty; npenumerationfunctionptr
enumerate; npconstructfunctionptr construct; }; warning: don't call these routines directly.
...
enumerate called by npn_
enumerate.
Archived JavaScript Reference - Archive of obsolete content
do not use it!handler.
enumerate()the handler.
enumerate() method used to be a trap for for...in statements, but has been removed from the ecmascript standard in es2016 and is deprecated in browsers.legacy generator functionthe legacy generator function statement declares legacy generator functions with the specified parameters.legacy generator function expressionthe function keyword can be used to define a legacy generator funct...
...you can use the more general proxy object instead.reflect.
enumerate()the static reflect.
enumerate() method used to return an iterator with the enumerable own and inherited properties of the target object, but has been removed in ecmascript 2016 and is deprecated in browsers.string.prototype.quote()the non-standard quote() method returns a copy of the string, replacing various special characters in the string with their escape sequences and wrapping the result in ...
Old Proxy API - Archive of obsolete content
for(prop in proxy){...}
enumerate: function() -> string array function() { return this.getpropertynames().filter( function (name) { return this.getpropertydescriptor(name).enumerable } ); } from the proxy user point of view, properties appear in the for..in loop in the same order as they are in the returned array.
...or to be thrown }, // derived traps has: function(name) { return name in obj; }, hasown: function(name) { return object.prototype.hasownproperty.call(obj, name); }, get: function(receiver, name) { return obj[name]; }, set: function(receiver, name, val) { obj[name] = val; return true; }, // bad behavior when set fails in non-strict mode
enumerate: function() { var result = []; for (name in obj) { result.push(name); }; return result; }, keys: function() { return object.keys(obj) } }; } // ...
XPCOMUtils.jsm
return value a generator yielding
enumerated objects.
... return value a generator yielding
enumerated strings.
Python binding for NSS
enumerated constants used in the nss/nspr api's are available in the python module under the exact same name as they appear in the c header files of nss/nspr.
... convenience functions are provided to translate between the numeric value of an
enumerated constant and it's string representation and visa versa.
How to embed the JavaScript engine
*/ static jsclass global_class = { "global", jsclass_global_flags, js_propertystub, js_deletepropertystub, js_propertystub, js_strictpropertystub, js_
enumeratestub, js_resolvestub, js_convertstub, }; int main(int argc, const char *argv[]) { jsruntime *rt = js_newruntime(8l * 1024 * 1024, js_use_helper_threads); if (!rt) return 1; jscontext *cx = js_newcontext(rt, 8192); if (!cx) return 1; { // scope for our various stack objects (jsautorequest, rootedobject), so they all go // out of scope before we j...
...*/ static jsclass global_class = { "global", jsclass_global_flags, js_propertystub, js_deletepropertystub, js_propertystub, js_strictpropertystub, js_
enumeratestub, js_resolvestub, js_convertstub, nullptr, nullptr, nullptr, nullptr, js_globalobjecttracehook }; int main(int argc, const char *argv[]) { js_init(); jsruntime *rt = js_newruntime(8l * 1024 * 1024, js_use_helper_threads); if (!rt) return 1; jscontext *cx = js_newcontext(rt, 8192); if (!cx) return 1; { // scope for our vari...
JS::AutoIdArray
examples { js::autoidarray ids(cx, js_
enumerate(cx, obj)); if (!ids) // check the returned value from js_
enumerate return false; for (int32_t i = 0, len = ids.length(); i < len; i++) { somefunc(cx, ids[i]); } /* when leaving this scope, the jsidarray returned by js_
enumerate is freed.
... */ } see also mxr id search for js::autoidarray jsidarray js_destroyidarray js_
enumerate bug 332648 ...
JSClass.flags
jsclass_new_
enumerate obsolete since jsapi 37 this class's
enumerate hook is actually a jsnew
enumerateop, not a js
enumerateop.
...g 571789 - removed jsclass_is_extended bug 638291 - removed jsclass_mark_is_trace bug 641025 - added jsclass_implements_barriers bug 702507 - removed jsclass_construct_prototype bug 758913 - removed jsclass_new_resolve_gets_start bug 766447 - added jsclass_is_domjsclass bug 792108 - added jsclass_emulates_undefined bug 993026 - removed jsclass_new_resolve bug 1097267 - removed jsclass_new_
enumerate ...
JSIdArray
description jsidarray is used to hold ids for
enumerated properties associated with an object.
...see also mxr id search for jsidarray js_idarraylength js_idarrayget jsproperty js_
enumerate js_destroyidarray js::autoidarray ...
JSPropertyDescriptor
a descriptor is used to declare whether an attribute can be written to whether it can delete an object that can
enumerate and specify content.
... value describes the value of the specified property, which can be any valid javascript value (function, object, string...) configurable declare that the property can be modified and deleted enumerable declare that the property can be
enumerated, and the enumerable genus can be traversed by the for...in loop.
JSTraceOp
description jstraceop is the function type for trace operation of the class called to
enumerate all traceable things reachable from obj's private data structure.
... jsclass hooks jsclass offers the following hook: the jsclass.trace callback is called to
enumerate all traceable things reachable.
JSVersion
the values of the jsversion
enumerated type stand for particular versions of the javascript run-time.
... description the jsversion
enumerated type includes the following values.
JS_DestroyIdArray
id arrays are primarily the result of js_
enumerate.
... see also mxr id search for js_destroyidarray jsidarray js_
enumerate ...
JS_NewPropertyIterator
syntax jsobject * js_newpropertyiterator(jscontext *cx, js::handle<jsobject*> obj); name type description cx jscontext * the js context in which to
enumerate properties.
... obj js::handle<jsobject*> the object whose properties are to be
enumerated.
JS_ResolveStandardClass
the class's
enumerate op should call js_
enumeratestandardclasses(cx, obj), to define eagerly during for...in loops any classes not yet resolved lazily.
... see also mxr id search for js_resolvestandardclass js_
enumeratestandardclasses ...
JS_SetProperty
the new property is jsprop_
enumerate.
...its getter and setter are the jsclass.getproperty and setproperty hooks of obj's class, and its property attributes are exactly jsprop_
enumerate.
Accessing the Windows Registry Using XPCOM
en(wrk.root_key_local_machine, "software\\microsoft", wrk.access_read); if (wrk.haschild("windows")) { var subkey = wrk.openchild("windows\\currentversion", wrk.access_read); var id; if (subkey.hasvalue("productid")) id = subkey.readstringvalue("productid"); subkey.close(); } wrk.close(); enumerating registry keys and values in some situations, you may want to
enumerate a number of keys or values whose names you do not know.
...in that case you must manually
enumerate the children and remove them individually.
nsICookieManager
by the @mozilla.org/cookiemanager;1 component, but should generally be accessed via services.cookies method overview void remove(in autf8string ahost, in acstring aname, in autf8string apath, in boolean ablocked, in jsval aoriginattributes); void removeall(); attributes attribute type description enumerator nsisimpleenumerator called to
enumerate through each cookie in the cookie list.
... the objects
enumerated over are of type nsicookie.
nsIMsgThread
nsimsgdbhdr getchild(in nsmsgkey msgkey); nsimsgdbhdr getchildhdrat(in long index); nsimsgdbhdr getroothdr(out long index); void removechildat(in long index); void removechildhdr(in nsimsgdbhdr child, in nsidbchangeannouncer announcer); void markchildread(in boolean bread); nsimsgdbhdr getfirstunreadchild(); nsisimpleenumerator
enumeratemessages(in nsmsgkey parent); attributes attribute type description threadkey nsmsgkey unsigned long key designating this thread.
... getfirstunreadchild() nsimsgdbhdr getfirstunreadchild();
enumeratemessages() nsisimpleenumerator
enumeratemessages(in nsmsgkey parent); parameters parent a key representing the message to start enumerating with.
nsIStringBundleOverride
method overview nsisimpleenumerator
enumeratekeysinbundle(in autf8string url); astring getstringfromname(in autf8string url, in acstring key); methods
enumeratekeysinbundle() get all override keys for a given string bundle.
... nsisimpleenumerator
enumeratekeysinbundle( in autf8string url ); parameters url the url of the original string bundle whose keys are to be overridden.
nsISupportsArray
icollection last changed in gecko 1.7 method overview boolean appendelements(in nsisupportsarray aelements); violates the xpcom interface guidelines nsisupportsarray clone(); void compact(); void deleteelementat(in unsigned long aindex); void deletelastelement(in nsisupports aelement); nsisupports elementat(in unsigned long aindex); violates the xpcom interface guidelines boolean
enumeratebackwards(in nsisupportsarrayenumfunc afunc, in voidptr adata); violates the xpcom interface guidelines boolean
enumerateforwards(in nsisupportsarrayenumfunc afunc, in voidptr adata); violates the xpcom interface guidelines boolean equals([const] in nsisupportsarray other); violates the xpcom interface guidelines long getindexof(in nsisupports apossibleelement); long getindexofstartingat(i...
...deleteelementat() void deleteelementat( in unsigned long aindex ); parameters aindex deletelastelement() void deletelastelement( in nsisupports aelement ); parameters aelement violates the xpcom interface guidelines elementat() nsisupports elementat( in unsigned long aindex ); parameters aindex return value
enumeratebackwards() [notxpcom, noscript] boolean
enumeratebackwards( in nsisupportsarrayenumfunc afunc, in voidptr adata ); parameters afunc adata return value
enumerateforwards() [notxpcom, noscript] boolean
enumerateforwards( in nsisupportsarrayenumfunc afunc, in voidptr adata ); parameters afunc adata return value violates the xpcom interface guidelines equals() boolean equals...
nsIWindowsRegKey
constant value description access_basic 0x00020000 access_query_value 0x00000001 access_set_value 0x00000002 access_create_sub_key 0x00000004 access_
enumerate_sub_keys 0x00000008 access_notify 0x00000010 access_read access_basic | access_query_value | access_
enumerate_sub_keys | access_notify access_write access_basic | access_set_value | access_create_sub_key access_all access_read | access_write wow64_32 0x00000200 wow64_64 0x00000100 t...
...it is still possible to
enumerate values that have other types (that is, getvaluetype() may return a type not defined below).
Demo Addon
to list some messages of the folder we use: for each (let msghdr in fixiterator(inbox.msgdatabase.
enumeratemessages(), ci.nsimsgdbhdr)) { if (++i >= 10 && lastmsghdr != null) break; messages.push({ author: msghdr.mime2decodedauthor, subject: msghdr.mime2decodedsubject, date: new date(msghdr.date/1000), }); //...
... } to get a collection of messages in the inbox, we use inbox.msgdatabase.
enumeratemessages().
AudioNode.channelCountMode - Web APIs
the channelcountmode property of the audionode interface represents an
enumerated value describing the way channels must be matched between the node's inputs and outputs.
... syntax var oscillator = audioctx.createoscillator(); oscillator.channelcountmode = 'explicit'; value a
enumerated value representing a channelcountmode.
AudioNode.channelInterpretation - Web APIs
the channelinterpretation property of the audionode interface represents an
enumerated value describing the meaning of the channels.
... syntax var oscillator = audioctx.createoscillator(); oscillator.channelinterpretation = 'discrete'; value an
enumerated value representing a channelinterpretation.
AudioNode - Web APIs
audionode.channelcountmode represents an
enumerated value describing the way channels must be matched between the node's inputs and outputs.
... audionode.channelinterpretation represents an
enumerated value describing the meaning of the channels.
AudioNodeOptions - Web APIs
channelcountmode optional represents an
enumerated value describing the way channels must be matched between the node's inputs and outputs.
... (see audionode.channelcountmode for more information including default values.) channelinterpretation optional represents an
enumerated value describing the meaning of the channels.
HTMLTableCellElement - Web APIs
htmltablecellelement.align a domstring containing an
enumerated value reflecting the align attribute.
... htmltablecellelement.valign a domstring representing an
enumerated value indicating how the content of the cell must be vertically aligned.
HTMLTableRowElement - Web APIs
htmltablerowelement.align is a domstring containing an
enumerated value reflecting the align attribute.
... htmltablerowelement.valign is a domstring representing an
enumerated value indicating how the content of the cell must be vertically aligned.
HTMLTableSectionElement - Web APIs
htmltablesectionelement.align is a domstring containing an
enumerated value reflecting the align attribute.
... htmltablesectionelement.valign is a domstring representing an
enumerated value indicating how the content of the cell must be vertically aligned.
Media Session action types - Web APIs
the specific type of media session action to be handled on a mediasession is identified using a string from the mediasessionaction
enumerated type.
... syntax a media session action's type is specified using a string from the mediasessionaction
enumerated type.
MediaSessionActionDetails - Web APIs
properties action a media session action type string taken from the mediasessionaction
enumerated type, indicating which type of action needs to be performed.
... media action types a media session action's type is specified using a string from the mediasessionaction
enumerated type.
PannerNode - Web APIs
pannernode.distancemodel an
enumerated value determining which algorithm to use to reduce the volume of the audio source as it moves away from the listener.
... pannernode.panningmodel an
enumerated value determining which spatialisation algorithm to use to position the audio in 3d space.
RTCIceCandidateStats - Web APIs
candidatetype optional a string matching one of the values in the rtcicecandidatetype
enumerated type, indicating what kind of candidate the object provides statistics for.
... networktype optional a string from the rtcnetworktype
enumerated type which indicates the type of interface used for a local candidate.
RTCIceTransport.gatheringState - Web APIs
the read-only rtcicetransport property gatheringstate returns a domstring from the
enumerated type rtcicegathererstate that indicates what gathering state the ice agent is currently in: "new", "gathering", or "complete".
... syntax gatherstate = rtcicetransport.gatheringstate; value a string from the rtcicegathererstate
enumerated type whose value indicates the current state of the ice agent's candidate gathering process: "new" the rtcicetransport is newly created and has not yet started to gather ice candidates.
RTCRtpSendParameters - Web APIs
degradationpreference specifies the preferred way the webrtc layer should handle optimizing bandwidth against quality in constrained-bandwidth situations; the value comes from the rtcdegradationpreference
enumerated string type, and the default is balanced.
... priority a string from the rtcprioritytype
enumerated type which indicates the encoding's priority.
RTCRtpSender.setParameters() - Web APIs
the available options are: degradationpreference specifies the preferred way the webrtc layer should handle optimizing bandwidth against quality in constrained-bandwidth situations; the value comes from the rtcdegradationpreference
enumerated string type, and the default is balanced.
... priority a string from the rtcprioritytype
enumerated type which indicates the encoding's priority.
Request.destination - Web APIs
the string must be one of those found in the requestdestination
enumerated type or the empty string, which is the default value.
... syntax var destination = request.destination; value a string from the requestdestination
enumerated type which indicates the type of content the request is asking for.
Screen Capture API - Web APIs
cursorcaptureconstraint an
enumerated string type used to provide the value for the cursor property for the settings and constraints.
... displaycapturesurfacetype an
enumerated string type which is used to identify the kind of display surface to capture.
Inputs and input sources - Web APIs
to manage input sources, then, you need to be able to
enumerate input sources, examine profile information about each input source, and decide how to use each input controller.
...the most notable—but not the only—difference is that webxr adds the xr-standard gamepad mapping, expanding the gamepadmappingtype
enumerated type.
Migrating from webkitAudioContext - Web APIs
for example, if we have code that looks like this: var gainnode = context.creategain(); gainnode.gain.settargetvalueattime(0.0, 10.0, 1.0); you can rename the method, and be compliant with the standard, like so: var gainnode = context.creategain(); gainnode.gain.settargetattime(0.0, 10.0, 1.0);
enumerated values that changed the original webkitaudiocontext api used c-style number based
enumerated values in the api.
... those values have since been changed to use the web idl based
enumerated values, which should be familiar because they are similar to things like the the htmlinputelement property type.
XRPermissionDescriptor.mode - Web APIs
the mode property of the xrpermissiondescriptor dictionary is a string taken from the xrsessionmode
enumerated type, specifying which web xr session mode (inline, immersive-vr, or immersive-ar) the described permissions will be used for.
... syntax xrpermissiondescriptor = { mode: xrsessionmode, requiredfeatures: reqfeaturelist, optionalfeatures: optfeaturelist }; xrpermissiondescriptor.mode = xrsessionmode; xrmode = xrpermissiondescriptor.mode; value a domstring whose value is one of the strings found in the xrsessionmode
enumerated type: immersive-ar the session's output will be given exclusive access to the immersive device, but the rendered content will be blended with the real-world environment.
XRPermissionDescriptor.optionalFeatures - Web APIs
syntax xrpermissiondescriptor = { mode: xrsessionmode, requiredfeatures: reqfeaturelist, optionalfeatures: optfeaturelist }; xrpermissiondescriptor.optionalfeatures = optfeaturelist; optfeaturelist = xrpermissiondescriptor.optionalfeatures; value an array of strings taken from the xrreferencespacetype
enumerated type, indicating set of features that your app would like to use, but can operate without if permission to use them isn't available.
... while further features may be defined in future editions of webxr, currently all permitted values come from the xrreferencespacetype
enumerated type, indicating reference spaces the app rquires to be available.
XRSession.environmentBlendMode - Web APIs
the value is a domstring which contains one of the values defined by the xrenvironmentblendmode
enumerated type.
... syntax blendmode = xrsession.environmentblendmode; value a domstring whose value is one of the strings found in the
enumerated type xrenvironmentblendmode, defining if—and if so, how—virtual, rendered content is overlaid atop the image of the real world.
XRView.eye - Web APIs
the xrview interface's read-only eye property is a string taken from the xreye
enumerated type, indicating which eye's viewpoint the xrview represents: left or right.
... syntax let eye = xrview.eye; value a domstring whose value is one of the strings
enumerated by the xreye type: left the xrview represents the point-of-view of the viewer's left eye.
<link>: The External Resource Link element - HTML: Hypertext Markup Language
s with srcset or imageset attributes, svg <image> elements, css *-image rules object <object> elements script <script> elements, worker importscripts style <link rel=stylesheet> elements, css @import track <track> elements video <video> elements worker worker, sharedworker crossorigin this
enumerated attribute indicates whether cors must be used when fetching the resource.
...if invalid, it is handled as if the
enumerated keyword anonymous was used.
<th> - HTML: Hypertext Markup Language
scope this
enumerated attribute defines the cells that the header (defined in the <th>) element relates to.
... deprecated attributes align obsolete since html5 this
enumerated attribute specifies how the cell content's horizontal alignment will be handled.
contenteditable - HTML: Hypertext Markup Language
the contenteditable global attribute is an
enumerated attribute indicating if the element should be editable by the user.
... note that although its allowed values include true and false, this attribute is an
enumerated one and not a boolean one.
draggable - HTML: Hypertext Markup Language
the draggable global attribute is an
enumerated attribute that indicates whether the element can be dragged, either with native browser behavior or the html drag and drop api.
... this attribute is
enumerated and not boolean.
spellcheck - HTML: Hypertext Markup Language
the spellcheck global attribute is an
enumerated attribute defines whether the element may be checked for spelling errors.
... note: the spellcheck attribute is an
enumerated one and not a boolean one.
Working with Events - Archive of obsolete content
for example, the following add-on registers a listener with the tabs module to listen for the ready event, and logs a string to the console reporting the event: var tabs = require("sdk/tabs"); tabs.on("ready", function () { console.log("tab loaded"); }); it is not possible to
enumerate the set of listeners for a given event.
system - Archive of obsolete content
hether a property with that name exists: var system = require("sdk/system"); if ('path' in system.env) { console.log("path is set"); } you can set a variable by setting the property: var system = require("sdk/system"); system.env.foo = "bar"; console.log(system.env.foo); you can unset a variable by deleting the property: var system = require("sdk/system"); delete system.env.foo; you can't
enumerate environment variables.
system/environment - Archive of obsolete content
ce of an environment variable by checking whether a property with that variable name exists: console.log('path' in env); // true console.log('foo' in env); // false you can set the value of an environment variable by setting the property: env.foo = 'foo'; env.path += ':/my/path/' you can unset an environment variable by deleting the property: delete env.foo; limitations there is no way to
enumerate existing environment variables, also env won't have any enumerable properties: console.log(object.keys(env)); // [] environment variable will be unset, show up as non-existing if it's set to null, undefined or ''.
util/list - Archive of obsolete content
list is composed out of iterable, therefore it provides custom enumeration behavior that is similar to array (
enumerates only on the elements of the list).
Cookies - Archive of obsolete content
reading existing cookies cookies for a given host, represented as nsicookie2 objects, can be
enumerated as such: let enum = services.cookies.getcookiesfromhost("example.com"); while (enum.hasmoreelements()) { var cookie = enum.getnext().queryinterface(ci.nsicookie2); dump(cookie.host + ";" + cookie.name + "=" + cookie.value + "\n"); } all cookies, regardless of host, can be
enumerated using services.cookies.enumerator rather than getcookiesfromhost().
File I/O - Archive of obsolete content
however, you can
enumerate available drives using the following code: components.utils.import("resource://gre/modules/fileutils.jsm"); var root = new fileutils.file("\\\\."); var drivesenum = root.directoryentries, drives = []; while (drivesenum.hasmoreelements()) { drives.push(drivesenum.getnext().
JavaScript Debugger Service - Archive of obsolete content
created: function(script) { // your function here }, onscriptdestroyed: function(script) { // your function here } }; jsd.errorhook = { onerror: function(message, filename, lineno, colno, flags, errnum, exc) { // your function here } }; // triggered when jsd.errorhook[onerror] returns false jsd.debughook = { onexecute: function(frame, type, rv) { // your function here } }; jsd.
enumeratescripts({ // the
enumeratescript method will be called once for every script jsd knows about
enumeratescript: function(script) { // your function here } }); a simple stack trace here, we will show how to implement a simple javascript stack trace using the jsd.
Observer Notifications - Archive of obsolete content
example code shows you what an implementation of the nsiobserver interface looks like: let testobserver = { observe : function(asubject, atopic, adata) { if (atopic == "xulschoolhello-test-topic") { window.alert("data received: " + adata); } } } in order for this observer to work, you need to use the observer service that provides methods for you to add, remove, notify and
enumerate observers.
Index of archived content - Archive of obsolete content
api plugin reference browser-side plug-in api npapi plug-in side api npanycallbackstruct npbyterange npclass npembedprint npevent npfullprint npidentifier npn newstream npnvariable npn_createobject npn_destroystream npn_
enumerate npn_evaluate npn_forceredraw npn_getauthenticationinfo npn_getintidentifier npn_getproperty npn_getstringidentifier npn_getstringidentifiers npn_geturl npn_geturlnotify npn_getvalue npn_getvalueforurl npn_hasmethod npn_hasproperty ...
XUL Explorer - Archive of obsolete content
support attribute value checking where appropriate (boolean and
enumerated values) - xul checker support “best practice” checks such as: using of commands and keys, strings in dtds and so on - xul checker multi-tabbed editor support support wizards to generate common projects - extensions support extension testing using firefox extension test mode venkman support dom inspector support future: support more “best practice” checks such as: more a11y che...
JavaPackage - Archive of obsolete content
although the packages and classes contained in a javapackage are its properties, you cannot use a for...in statement to
enumerate them as you can
enumerate the properties of other objects.
Mozilla XForms Specials - Archive of obsolete content
instead of using digest('abc', 'sha-1') explicitly use the third parameter (the results are equal): digest('abc', 'sha-1', 'base64') (limitation tracked in bug 477857) extensions enumerating instances the standardized nsixformsmodelelement does not allow one to
enumerate over all possible instances, but only to retrieve instances by their name.
IPDL Tutorial
apsubexampleparent->send__delete__(); will trigger the following ordered function calls: psubexampleparent::actordestroy(deletion) /* deletion is an
enumerated value indicating that the destruction was intentional */ pexampleparent::deallocpsubexample() psubexamplechild::recv__delete__() psubexamplechild::actordestroy(deletion) pexamplechild::deallocpsubexample() actordestroy is a generated function that allows code to run with the knowledge that actor deallocation is imminent.
Log.jsm
(); length: 1 keys of prototype: doappend(); getinputstream(); newoutputstream(); outputstream reset(); structuredformatter(); length: 0 keys of prototype: format(); method overview
enumerateinterfaces(); length: 0
enumerateproperties(); length: 2 member fields variable type description level object contains the following fields: field name value all 0 config 30 debug 20 desc { 0: "all", 10:...
Hash Tables
hash table types and constants hash table functions hash table types and constants plhashentry plhashtable plhashnumber plhashfunction plhashcomparator plhashenumerator plhashallocops hash table functions pl_newhashtable pl_hashtabledestroy pl_hashtableadd pl_hashtableremove pl_hashtablelookup pl_hashtable
enumerateentries pl_hashstring pl_comparestrings pl_comparevalues see also xpcom hashtable guide ...
Network Addresses
pr_initializenetaddr converting between a string and a network address pr_stringtonetaddr pr_netaddrtostring converting address formats pr_convertipv4addrtoipv6 getting host names and addresses pr_gethostbyname pr_gethostbyaddr pr_
enumeratehostent pr_getaddrinfobyname pr_
enumerateaddrinfo pr_getcanonnamefromaddrinfo pr_freeaddrinfo getting protocol entries pr_getprotobyname pr_getprotobynumber ...
PRAddrInfo
typically, a praddrinfo object will be found via pr_getaddrinfobyname, iterated through using pr_
enumerateaddrinfo, and finally freed with pr_freeaddrinfo.
PRHostEnt
this structure is output from pr_gethostbyname and pr_gethostbyaddr and passed to pr_
enumeratehostent.
PRLogModuleLevel
the
enumerated type prlogmodulelevel defines levels of logging available to application programs.
PR FreeAddrInfo
syntax #include <prnetdb.h> void pr_
enumerateaddrinfo(praddrinfo *addrinfo); parameters the function has the following parameters: addrinfo a pointer to a praddrinfo structure returned by a successful call to pr_getaddrinfobyname.
PR GetAddrInfoByName
use pr_
enumerateaddrinfo to inspect the prnetaddr values stored in this structure.
PR_GetHostByAddr
this buffer is referenced by the runtime during a call to pr_
enumeratehostent.
PR_GetHostByName
this buffer is referenced by the runtime during a call to pr_
enumeratehostent.
NSS 3.20 release notes
new types in sslt.h ssldhegrouptype -
enumerates the set of dhe parameters embedded in nss that can be used with function ssl_dhegroupprefset new macros in ssl.h ssl_enable_server_dhe - a socket option user to enable or disable dhe ciphersuites for a server socket notable changes in nss 3.20 the tls library has been extended to support dhe ciphersuites in server applications.
NSS 3.35 release notes
for the sslsignaturescheme enum, the
enumerated values ssl_sig_rsa_pss_sha* are deprecated in response to a change in tls 1.3.
Enc Dec MAC Output Public Key as CSR
rypt, it takes as an input file and produces\n", "note :"); fprintf(stderr, "%-7s .enc and .header as intermediate output files.\n\n", ""); fprintf(stderr, "%-7s for decrypt, it takes .enc and .header\n", ""); fprintf(stderr, "%-7s as input files and produces as a final output file.\n\n", ""); exit(-1); } /* map option letter
enumerated commad type */ static commandtype option2command(const char* c) { switch (*c) { case 'g': return gen_csr; case 'e': return encrypt; case 'd': return decrypt; default: return unknown; } } /* * wrap the symkey using public key */ secstatus wrapkey(pk11symkey* key, seckeypublickey *pubkey, secitem **wrappedkey) { secstatus rv; secitem *data = (secitem *)port_zall...
nss tech note1
the following macros are provided for tag numbers within the universal class : sec_asn1_boolean, sec_asn1_integer, sec_asn1_bit_string, sec_asn1_octet_string, sec_asn1_null, sec_asn1_object_id, sec_asn1_object_descriptor,† sec_asn1_real, sec_asn1_
enumerated, sec_asn1_embedded_pdv, sec_asn1_utf8_string, sec_asn1_sequence, sec_asn1_set, sec_asn1_numeric_string, sec_asn1_printable_string, sec_asn1_t61_string, sec_asn1_teletex_string, sec_asn1_t61_string, sec_asn1_videotex_string, sec_asn1_ia5_string, sec_asn1_utc_time, sec_asn1_generalized_time, sec_asn1_graphic_string, sec_asn1_visible_string, sec_asn1_general_string, sec_asn1_universal_string, sec_a...
PKCS11 FAQ
nss may
enumerate all the permanment certificates in a token (cka_token set to true).
PKCS11 module installation
provisioning pkcs #11 modules using the pkcs11 api starting with firefox 58, extensions can use the pkcs11 browser extension api to
enumerate pkcs #11 modules and make them accessible to the browser as sources of keys and certificates.
sslintro.html
a server application typically uses these functions to establish a connection: pr_bind pr_listen pr_accept pr_getsockname a client application typically uses these functions to establish a connection: pr_gethostbyname pr_
enumeratehostent pr_connect pr_getconnectstatus when an application imports a socket into ssl after the tcp connection on that socket has already been established, it must call ssl_resethandshake to determine whether ssl should behave like an ssl client or an ssl server.
JSConstDoubleSpec
obsolete since jsapi 35 currently these can be 0 or more of the following values or'd: jsprop_
enumerate: property is visible in for loops.
JS_InitClass
(if your constructor function requires property attributes, such as jsprop_
enumerate, use js_setpropertyattributes to modify the attributes of the property created by js_initclass.) after building the constructor and prototype, js_initclass adds properties and methods.
JS_MapGCRoots
the map function should return js_map_gcroot_remove to cause the currently
enumerated root to be removed.
JS_NextProperty
syntax bool js_nextproperty(jscontext *cx, js::handleobject iterobj, js::mutablehandleid idp); name type description cx jscontext * the js context in which to
enumerate properties.
JS_SetPropertyAttributes
it is the bitwise or of zero or more of the following values: flag purpose jsprop_
enumerate property is visible in for and in loops.
JS_SetVersion
the version comes from the jsversion
enumerated type.
jsid
a few jsapi functions use jsids instead of js::values for property names: js_nextproperty, js_
enumerate, and all functions with names ending in byid.
JSDBGAPI
eturnvalue js_getframecalleeobject js_getscriptfilename js_getscriptbaselinenumber js_getscriptlineextent js_getscriptversion js_gettopscriptfilenameflags js_getscriptfilenameflags js_flagscriptfilenameprefix jsfilename_null jsfilename_system jsfilename_protected evaluating debug code js_evaluateinstackframe examining object properties typedef jspropertydesc jspd_
enumerate jspd_readonly jspd_permanent jspd_alias jspd_argument jspd_variable jspd_exception jspd_error typedef jspropertydescarray js_propertyiterator js_getpropertydesc js_getpropertydescarray js_putpropertydescarray hooks js_setdebuggerhandler js_setsourcehandler js_setexecutehook js_setcallhook js_setobjecthook js_setthrowhook js_setdebugerrorhook js_setnewscripthook js_s...
SpiderMonkey 1.8.8
jsclass callback changes many of the jsclass callbacks such as jsresolveop, js
enumerateop and jspropertyop, have a type change on their arguments to jshandleobject, jshandleid, jshandlemutableobject etc.
SpiderMonkey 17
jsclass callback changes many of the jsclass callbacks such as jsresolveop, js
enumerateop and jspropertyop, have a type change on their arguments to jshandleobject, jshandleid, jshandlemutableobject etc.
SpiderMonkey 24
deleted apis js_get_class (use js_getclass instead) js_
enumerateresolvedstandardclasses js_getglobalobject js_setcstringsareutf8 ...list other deleted apis...
Web Replay
when taking the first snapshot all addressable memory in the process is
enumerated and write-protected, and as faults occur a special exception handler thread unprotects the memory, copies its contents and marks it as dirty.
Places Developer Guide
the example below shows how to
enumerate a bookmark folder's contents, and how to access the properties of the items themselves.
Receiving startup notifications
what happens next once you've registered with the category manager, at mozilla startup time (or when the embedding application's ns_initembedding() function is called), the appstartupnotifier component is instantiated, and its observe() method is called; this in turn
enumerates all components in the app-startup category and sends them the appropriate notifications.
Components.classes
the properties of the components.classes object can be
enumerated using a for...in loop.
Components.interfaces
the properties of the components.interfaces object can be
enumerated using a for...in loop.
Components.results
if(something_unexpected_happened) throw components.results.ns_error_unexpected; the elements of the components.results object can be
enumerated using a for-in loop.
nsIRegistry
rs.openwellknownregistry(2); // 2 signifies the applicationregistry, if i understand right var st = rs.
enumerateallsubtrees(2); // 2 signifies "common", see libreg source (reg.h) for info now you have an nsienumerator that can report the subtrees.
XPCShell Reference
-v version this allows you to specify a specific version of js to use, and should be set to an integral value specified by the jsversion
enumerated type.
imgIContainer
constants constant value description type_raster 0
enumerated values for the 'type' attribute (below).
mozIStorageStatementParams
enumeration of properties you can also
enumerate all the properties on this object with a for..in enumeration: // valuestobind is an object that contains key-value pairs // to bind to the statement before executing it.
Role
« nsiaccessible page summary
enumerated accessible role for the associated element.
nsIAccessible
role
enumerated accessible role for the associated element.
nsIAccessibleEvent
eventtype unsigned long the type of event, based on the
enumerated event values defined in this interface.
nsIFile
on linux and other unix platforms, it is the value returned from nl_langinfo (codeset), which usually corresponds to the value of the lc_all, lc_ctype and lang environment variables (with the precedence the same as the order they're
enumerated).
nsIINIParser
nsiutf8stringenumerator getkeys( in autf8string asection ); parameters asection the name of the section whose keys you wish to
enumerate.
nsIMemoryReporter
once that has been done, the reporter will be found by any client accessing the enumerator returned by nsimemoryreportermanager.
enumeratereporters().
nsINavHistoryService
this is much better than using browserhistory.count since that can be very slow if there is a lot of history (it must
enumerate each item).
nsIObserver
you should not modify, add, remove, or
enumerate notifications in the implementation of this method.
nsIPermissionManager
mission(in nsiuri uri, in string type); pruint32 testexactpermissionfromprincipal(in nsiprincipal principal, in string type); pruint32 testpermission(in nsiuri uri, in string type); pruint32 testpermissionfromprincipal(in nsiprincipal principal, in string type); attributes attribute type description enumerator nsisimpleenumerator
enumerates all stored permissions.
nsITelemetry
histogram_categorical 5 for storing
enumerated values by label.
nsIXFormsNSModelElement
x 1.5 / thunderbird 1.5 / seamonkey 1.0) interface code [scriptable, uuid(85fd60c7-1db7-40c0-ae8d-f723fdd1eea8)] interface nsixformsnsmodelelement : nsisupports { nsidomnodelist getinstancedocuments(); }; methods getinstancedocuments nsidomnodelist getinstancedocuments(); getinstancedocuments returns a nsidomnodelist containing all the instance documents for the model, making it possible to
enumerate over instances in the model without knowing their names.
nsIXPConnect
flags property flags for the quick stub properties--should be either jsprop_
enumerate or 0.
nsMsgSearchTerm
at the start of this macro, which means the macro // needs to
enumerate the non-string attributes.
Storage
this function allows you to
enumerate all the results produced by the statement.
XPIDL Syntax
the following is a list of potential features which are parseable but may not result in expected code: struct, union, and
enumerated types array declarators (appears to be supported in xpidl_header.c but not xpidl_typelib.c) exception declarations module declarations variable arguments (that makes the abnf get more wonky) sequence types max-length strings fixed-point numbers "any" and "long double" types.
Address Book examples
formulate a boolean search string (see nsiabcard for built-in property names): var searchquery = "(or(primaryemail,bw,@v)(nickname,bw,@v)(and(ismaillist,=,true)(notes,bw,@v)))"; searchquery = searchquery.replace(/@v/g, encodeuricomponent("mystr") the search queries use lisp syntax with operators
enumerated in nsabquerystringtoexpression.cpp.
WebIDL bindings
this method will be called by the js engine's
enumerate hook and must provide a superset of all the property names that doresolve might resolve.
Constants - Plugins
npvers_has_npobject_enum 18 the npclass in question has an
enumerate field, which lets you
enumerate the properties of an npobject of that class.
Plug-in Basics - Plugins
when the browser starts, it
enumerates the available plug-ins (this step varies according to platform), reads resources from each plug-in file to determine the mime types for that plug-in, and registers each plug-in library for its mime types.
Scripting plugins - Plugins
are based on four new structs: npstring npvariant npn_releasevariantvalue npn_getstringidentifier npn_getstringidentifiers npn_getintidentifier npn_identifierisstring npn_utf8fromidentifier npn_intfromidentifier npobject npn_construct (since firefox 3.0b1) npn_createobject npn_retainobject npn_releaseobject npn_invoke npn_invokedefault npn_
enumerate (since mozilla 1.9a1) npn_evaluate npn_getproperty npn_setproperty npn_removeproperty npn_hasproperty npn_hasmethod npn_setexception npclass « previousnext » ...
Animation.playState - Web APIs
the animation.playstate property of the web animations api returns and sets an
enumerated value describing the playback state of an animation.
Animation - Web APIs
animation.playstate read only returns an
enumerated value describing the playback state of an animation.
AudioContextLatencyCategory - Web APIs
the audiocontextlatencycategory type is an
enumerated set of strings which are used to select one of a number of default values for acceptable maximum latency of an audio context.
AudioContextOptions - Web APIs
constants standard values for latencyhint the latencyhint property can be number specifying a preferred maximum latency in seconds or a string from the audiocontextlatencycategory
enumerated string, which selects a standard value for a given type of audio usage: value description "balanced" the user agent should balance audio output latency and power consumption when selecting a latency value.
CSSUnparsedValue.entries() - Web APIs
the cssunparsedvalue.entries() method returns an array of a given object's own enumerable property [key, value] pairs in the same order as that provided by a for...in loop (the difference being that a for-in loop
enumerates properties in the prototype chain as well).
CSSUnparsedValue - Web APIs
methods cssunparsedvalue.entries() returns an array of a given object's own enumerable property [key, value] pairs in the same order as that provided by a for...in loop (the difference being that a for-in loop
enumerates properties in the prototype chain as well).
CSS Typed Object Model API - Web APIs
cssunparsedvalue.entries() method returning an array of a given object's own enumerable property [key, value] pairs in the same order as that provided by a for...in loop (the difference being that a for-in loop
enumerates properties in the prototype chain as well).
Console.table() - Web APIs
ples", "oranges", "bananas"]); // an object whose properties are strings function person(firstname, lastname) { this.firstname = firstname; this.lastname = lastname; } var me = new person("john", "smith"); console.table(me); collections of compound types if the elements in the array, or properties in the object, are themselves arrays or objects, then their elements or properties are
enumerated in the row, one per column: // an array of arrays var people = [["john", "smith"], ["jane", "doe"], ["emily", "jones"]] console.table(people); // an array of objects function person(firstname, lastname) { this.firstname = firstname; this.lastname = lastname; } var john = new person("john", "smith"); var jane = new person("jane", "doe"); var emily = new person("emily", "jones"); conso...
Document.compatMode - Web APIs
syntax const mode = document.compatmode value an
enumerated value that can be: "backcompat" if the document is in quirks mode.
FontFace.status - Web APIs
the status read-only property of the fontface interface returns an
enumerated value indicating the status of the font, one of "unloaded", "loading", "loaded", or "error".
FontFace - Web APIs
fontface.status read only returns an
enumerated value indicating the status of the font, one of "unloaded", "loading", "loaded", or "error".
HTMLDivElement - Web APIs
htmldivelement.align is a domstring representing an
enumerated property indicating alignment of the element's contents with respect to the surrounding context.
HTMLEmbedElement - Web APIs
htmlembedelement.align is a domstring representing an
enumerated property indicating alignment of the element's contents with respect to the surrounding context.
HTMLHRElement - Web APIs
htmlhrelement.align is a domstring, an
enumerated attribute indicating alignment of the rule with respect to the surrounding context.
HTMLHeadingElement - Web APIs
htmlheadingelement.align is a domstring representing an
enumerated attribute indicating alignment of the heading with respect to the surrounding context.
HTMLMediaElement.setSinkId() - Web APIs
exceptions exception explanation domexception no permission to use the requested device examples const devices = await navigator.mediadevices.
enumeratedevices(); const audiodevices = devices.filter(device => device.kind === 'audiooutput'); const audio = document.createelement('audio'); await audio.setsinkid(audiodevices[0].deviceid); console.log('audio is being played on ' + audio.sinkid); specifications specification status comment audio output devices apithe definition of 'sinkid' in that specification.
HTMLMediaElement.sinkId - Web APIs
this id should be one of the mediadeviceinfo.deviceid values returned from mediadevices.
enumeratedevices(), id-multimedia, or id-communications.
HTMLMediaElement - Web APIs
this id should be one of the mediadeviceinfo.deviceid values returned from mediadevices.
enumeratedevices(), id-multimedia, or id-communications.
HTMLObjectElement - Web APIs
htmlobjectelement.align is a domstring representing an
enumerated property indicating alignment of the element's contents with respect to the surrounding context.
HTMLParagraphElement - Web APIs
htmlparagraphelement.align a domstring representing an
enumerated property indicating alignment of the element's contents with respect to the surrounding context.
HTMLTableCaptionElement - Web APIs
htmltablecaptionelement.align is a domstring which represents an
enumerated attribute indicating alignment of the caption with respect to the table.
KeyboardLayoutMap.entries - Web APIs
the entries read-only property of the keyboardlayoutmap interface returns an array of a given object's own enumerable property [key, value] pairs, in the same order as that provided by a for...in loop (the difference being that a for-in loop
enumerates properties in the prototype chain as well).
KeyboardLayoutMap - Web APIs
properties keyboardlayoutmap.entries read only returns an array of a given object's own enumerable property [key, value] pairs, in the same order as that provided by a for...in loop (the difference being that a for-in loop
enumerates properties in the prototype chain as well).
MediaDeviceInfo.kind - Web APIs
the kind readonly property of the mediadeviceinfo interface returns an
enumerated value, that is either "videoinput", "audioinput" or "audiooutput".
MediaDevices.getUserMedia() - Web APIs
if you have a deviceid from mediadevices.
enumeratedevices(), you can use it to request a specific device: { video: { deviceid: mypreferredcameradeviceid } } the above will return the camera you requested, or a different camera if that specific camera is no longer available.
MediaDevices - Web APIs
enumeratedevices() obtains an array of information about the media input and output devices available on the system.
MediaTrackSettings.cursor - Web APIs
syntax cursorsetting = mediatracksettings.cursor; value the value of cursor comes from the cursorcaptureconstraint
enumerated string type, and may have one of the following values: always the mouse should always be visible in the video content of the {domxref("mediastream"), unless the mouse has moved outside the area of the content.
MediaTrackSettings.displaySurface - Web APIs
syntax displaysurface = mediatracksettings.displaysurface; value the value of displaysurface is a string that comes from the displaycapturesurfacetype
enumerated type, and is one of the following: application the stream's video track contains all of the windows belonging to the application chosen by the user.
Capabilities, constraints, and settings - Web APIs
to collect a list of the available devices, you can call navigator.mediadevices.
enumeratedevices(), then for each device which meets the desired criteria, add its deviceid to the mediaconstraints object that eventually gets passed into getusermedia().
Microdata DOM API - Web APIs
this attribute returns an htmlpropertiescollection, which can be
enumerated to go through each element that adds one or more properties to the item.
Navigator - Web APIs
navigator.mediadevices returns a reference to a mediadevices object which can then be used to get information about available media devices (mediadevices.
enumeratedevices()), find out what constrainable properties are supported for media on the user's computer and user agent (mediadevices.getsupportedconstraints()), and to request access to media using mediadevices.getusermedia().
NetworkInformation.type - Web APIs
syntax var type = netinfo.type return value an
enumerated value that is one of the following values: "bluetooth" "cellular" "ethernet" "none" "wifi" "wimax" "other" "unknown" specifications specification status comment network information apithe definition of 'type' in that specification.
NodeList - Web APIs
example it's possible to loop over the items in a nodelist using a for loop: for (let i = 0; i < mynodelist.length; i++) { let item = mynodelist[i]; } don't use for...in to
enumerate the items in nodelists, since they will also
enumerate its length and item properties and cause errors if your script assumes it only has to deal with element objects.
PannerNode.distanceModel - Web APIs
the distancemodel property of the pannernode interface is an
enumerated value determining which algorithm to use to reduce the volume of the audio source as it moves away from the listener.
PannerNode.panningModel - Web APIs
the panningmodel property of the pannernode interface is an
enumerated value determining which spatialisation algorithm to use to position the audio in 3d space.
RTCIceCandidate.protocol - Web APIs
these values are defined by the
enumerated type rtciceprotocol: tcp the candidate, if selected, would use tcp as the transport protocol for its data.
RTCIceCandidate.tcpType - Web APIs
syntax var tcptype = rtcicecandidate.tcptype; value a domstring whose value is one of those defined by the rtcicetcpcandidatetype
enumerated type.
RTCIceCandidate.type - Web APIs
syntax var type = rtcicecandidate.type; value a domstring whose value is one of those defined by the rtcicecandidatetype
enumerated type.
RTCIceCandidateStats.candidateType - Web APIs
syntax candidatetype = rtcicecandidatestats.candidatetype; value a domstring whose value is one of the strings found in the rtcicecandidatetype
enumerated type:host the candidate is a host candidate, whose ip address as specified in the rtcicecandidate.ip property is in fact the true address of the remote peer.
RTCIceCandidateStats.protocol - Web APIs
syntax protocol = rtcicecandidatestats.protocol; value the value is one of the members of the rtciceprotocol
enumerated string type: tcp the candidate, if selected, would use tcp as the transport protocol for its data.
RTCIceCandidateType - Web APIs
the webrtc api's rtcicecandidatetype
enumerated type provides a set of domstring values representing the types of ice candidate that can arrive.
RTCIceComponent - Web APIs
the webrtc api's rtcicecomponent
enumerated type contains domstring values that each identify a specific ice component; these are "rtp" and "rtcp".
RTCIceCredentialType - Web APIs
the webrtc api's rtcicecredentialtype
enumerated string type defines the authentication method used to gain access to an ice server identified by an rtciceserver object.
RTCIceGathererState - Web APIs
the rtcicegathererstate
enumerated type provides the string values which can be returned by an rtcicetransport object's gatheringstate.
RTCIceProtocol - Web APIs
the webrtc api's rtciceprotocol
enumerated type provides a set of domstring values representing the names of the transport protocols ice candidates can use.
RTCIceRole - Web APIs
the rtcicerole
enumerated type lists the string values that identify whether a connection's ice agent is serving as the controlling agent or the controlled agent, as indicated by rtcicetransport.role.
RTCIceServer.credentialType - Web APIs
}; var credentialtype = iceserver.credentialtype; iceserver.credentialtype = newcredentialtype; value the permitted values are found in the rtcicecredentialtype
enumerated string type: oauth the rtciceserver requires the use of oauth 2.0 to authenticate in order to use the ice server described.
RTCIceTcpCandidateType - Web APIs
the webrtc api's rtcicetcpcandidatetype
enumerated type provides a set of domstring values representing the types of tcp candidates.
RTCIceTransport.component - Web APIs
syntax icecomponent = rtcicetransport.component; value a domstring whose value comes from the
enumerated type rtcicecomponent: "rtp" identifies an ice transport which is being used for the real-time transport protocol (rtp), or for rtp multiplexed with the rtp control protocol (rtcp).
RTCIceTransport.role - Web APIs
the value must be one of those found in the
enumerated type rtcicerole: "controlling" the rtcicetransport object is serving as the controlling agent.
RTCIceTransport.state - Web APIs
syntax icestate = icetransport.state; value a domstring, whose value is one of those found in the
enumerated type rtcicetransportstate, which indicates the stage of ice gathering that's currently underway.
RTCIceTransportState - Web APIs
the rtcicetransportstate
enumerated type defines the string values which may be returned by the state property on rtcicetransport objects.
RTCNetworkType - Web APIs
the webrtc rtcnetworktype
enumerated type defines a set of strings used to identify the type of network used by a connection between two peers.
RTCOutboundRtpStreamStats.qualityLimitationReason - Web APIs
syntax var qualitylimitationreason = rtcoutboundrtpstreamstats.qualitylimitationreason; value a map whose keys are domstrings whose values come from the rtcqualitylimitationreason
enumerated type, and whose values are the duration of the media, in seconds, whose quality was reduced for that reason.
RTCOutboundRtpStreamStats - Web APIs
qualitylimitationreason a value from the rtcqualitylimitationreason
enumerated type explaining why the resolution and/or frame rate is being limited for this rtp stream.
RTCRemoteOutboundRtpStreamStats.localId - Web APIs
for id ${endremoteoutbound.id}.</div>` } } statsbox.scrollto(0, statsbox.scrollheight); } } } here's what's going on in the networkteststop() function: after calling the rtcpeerconnection method getstats() to get the latest statistics report for the connection and storing it in endreport, this is an rtcstatsreport object, which maps strings taken from the rtcstatstype
enumerated type to objects of the corresponding rtcstats-based type.
RTCRtpTransceiver.currentDirection - Web APIs
syntax var direction = rtcrtptransceiver.currentdirection value a domstring whose value is one of the strings which are a member of the rtcrtptransceiverdirection
enumerated type.
RTCRtpTransceiver.direction - Web APIs
syntax var direction = rtcrtptransceiver.direction value a domstring whose value is one of the strings which are a member of the rtcrtptransceiverdirection
enumerated type, indicating the transceiver's preferred direction.
RTCStatsIceCandidatePairState - Web APIs
the rtcstatsicecandidatepairstate
enumerated type represents the set of string values which are possible for the rtcicecandidatepairstats object's state property.
RTCStatsReport - Web APIs
the statistic category names are members of the
enumerated type rtcstatstype, as follows: candidate-pair an rtcicecandidatepairstats object providing statistics related to an rtcicetransport.
RTCStatsType - Web APIs
the rtcstatstype
enumerated type (enum) is a set of strings which define the type of statistics reported in a record found in the rtcstatsreport object.
SVGRenderingIntent - Web APIs
the svgrenderingintent interface defines the
enumerated list of possible values for rendering-intent attributes or descriptors.
StylePropertyMapReadOnly.entries() - Web APIs
the stylepropertymapreadonly.entries() method returns an array of a given object's own enumerable property [key, value] pairs, in the same order as that provided by a for...in loop (the difference being that a for-in loop
enumerates properties in the prototype chain as well).
StylePropertyMapReadOnly - Web APIs
methods stylepropertymapreadonly.entries() returns an array of a given object's own enumerable property [key, value] pairs, in the same order as that provided by a for...in loop (the difference being that a for-in loop
enumerates properties in the prototype chain as well).
Signaling and video calling - Web APIs
note: we could restrict the set of permitted media inputs to a specific device or set of devices by calling navigator.mediadevices.
enumeratedevices() to get a list of devices, filtering the resulting list based on our desired criteria, then using the selected devices' deviceid values in the deviceid field of the the mediaconstraints object passed into getusermedia().
XMLHttpRequestResponseType - Web APIs
the xmlhttprequestresponsetype type is an
enumerated set of strings which are used to specify the type of data contained in the response of an xmlhttprequest.
XREnvironmentBlendMode - Web APIs
the webxr api's
enumerated type xrenvironmentblendmode defines strings used to identify if and how to blend the rendered virtual content with the real world.
XREye - Web APIs
the xreye
enumerated type is used to identify which eye a particular xrview represents: left or right; or, if the view doesn't represent a single eye, the value may be none.
XRHandedness - Web APIs
the webxr
enumerated type xrhandedness provides values which identify which of a user's hands is being used to operate a particular input controller attached to the xr input device being used.
XRInputSource.handedness - Web APIs
the value, which comes from the xrhandedness
enumerated type, is one of the following: none the input controller is not associated with one of the user's hands.
XRInputSource.targetRayMode - Web APIs
syntax let raymode = xrinputsource.targetraymode; value a domstring taken from the xrtargetraymode
enumerated type, indicating which method to use when generating and presenting the target ray to the user.
XRReferenceSpaceType - Web APIs
the xrreferencespacetype
enumerated type defines the strings which identify the types of reference spaces supported by webxr.
XRSession.visibilityState - Web APIs
syntax visibilitystate = xrsession.visibilitystate; value a domstring containing one of the values defined in the
enumerated type xrvisibilitystate; this string indicates whether or not the xr content is visible to the user and if it is, whether or not it's currently the primary focus.
XRSession - Web APIs
visibilitystate read only a domstring whose value is one of those found in the xrvisibilitystate
enumerated type, indicating whether or not the session's imagery is visible to the user, and if so, if it's being visible but not currently the target for user events.
XRSessionMode - Web APIs
the webxr device api's xrsessionmode
enumerated type defines the string values used to identify the possible kinds of session mode that can be used.
XRTargetRayMode - Web APIs
the webxr device api
enumerated type xrtargetraymode describes the method by an input controller's targeting ray is being produced.
XRVisibilityState - Web APIs
the xrvisibilitystate
enumerated type defines the string values which are valid for the xrsession interface's visibilitystate property, which indicates whether or not an xr session is currently visible to the user, and if it is, whether or not it's currently the primary focus.
translate - HTML: Hypertext Markup Language
the translate global attribute is an
enumerated attribute that is used to specify whether an element's translateable attribute values and its text node children should be translated when the page is localized, or whether to leave them unchanged.
Meta programming - JavaScript
handler.
enumerate() property enumeration / for...in: for (let name in proxy) {...} reflect.
enumerate() the
enumerate method must return an object.
Working with objects - JavaScript
j, objname) { var result = ``; for (var i in obj) { // obj.hasownproperty() is used to filter out properties from the object's prototype chain if (obj.hasownproperty(i)) { result += `${objname}.${i} = ${obj[i]}\n`; } } return result; } so, the function call showprops(mycar, "mycar") would return the following: mycar.make = ford mycar.model = mustang mycar.year = 1969
enumerate the properties of an object starting with ecmascript 5, there are three native ways to list/traverse object properties: for...in loops this method traverses all enumerable properties of an object and its prototype chain.
Object.values() - JavaScript
(the only difference is that a for...in loop
enumerates properties in the prototype chain as well.) the source for this interactive example is stored in a github repository.
Proxy - JavaScript
ookies = new proxy(doccookies, { get: function (otarget, skey) { return otarget[skey] || otarget.getitem(skey) || undefined; }, set: function (otarget, skey, vvalue) { if (skey in otarget) { return false; } return otarget.setitem(skey, vvalue); }, deleteproperty: function (otarget, skey) { if (skey in otarget) { return false; } return otarget.removeitem(skey); },
enumerate: function (otarget, skey) { return otarget.keys(); }, ownkeys: function (otarget, skey) { return otarget.keys(); }, has: function (otarget, skey) { return skey in otarget || otarget.hasitem(skey); }, defineproperty: function (otarget, skey, odesc) { if (odesc && 'value' in odesc) { otarget.setitem(skey, odesc.value); } return otarget; }, getownpropertydescripto...
<math> - MathML
display this
enumerated attribute specifies how the enclosed mathml markup should be rendered.