Search completed in 0.96 seconds.
<meter>: The HTML Meter element - HTML: Hypertext Markup Language
the html <
meter> element represents either a scalar value within a known range or a fractional value.
... permitted content phrasing content, but there must be no <
meter> element among its descendants.
... implicit aria role no corresponding role permitted aria roles no role permitted dom interface html
meterelement attributes this element includes the global attributes.
...And 6 more matches
Accelerometer.Accelerometer() - Web APIs
the accelero
meter constructor creates a new accelero
meter object which returns the acceleration of the device along all three axes at the time it is read.
... syntax var accelero
meter = new accelero
meter([options]) para
meters options optional options are as follows: frequency: the desired number of times per second a sample should be taken, meaning the number of times per second that sensor.onerror will be called.
... accelero
meterthe definition of 'accelero
meter' in that specification.
Magnetometer.Magnetometer() - Web APIs
the magneto
meter constructor creates a new magneto
meter object which returns information about the magnetic field as detected by a device’s primary magneto
meter sensor.
... syntax var magneto
meter = new magneto
meter([options]) para
meters options optional options are as follows: frequency: the desired number of times per second a sample should be taken, meaning the number of times per second that sensor.onreading will be called.
... magneto
meterthe definition of 'magneto
meter' in that specification.
The "codecs" parameter in common media types - Web media technologies
for that reason, the codecs para
meter can be added to the mime type describing media content.
... this guide briefly examines the syntax of the media type codecs para
meter and how it's used with the mime type string to provide details about the contents of audio or video media beyond simply indicating the container type.
...for this reason, you can add the codecs para
meter to the media type.
...And 22 more matches
Progress Meters - Archive of obsolete content
« previousnext » in this section, we'll look at creating progress
meters.
... adding a progress
meter a progress
meter is a bar that indicates how much of a task has been completed.
...xul has a progress
meter element which can be used to create these.
...And 15 more matches
PI Parameters - XSLT: Extensible Stylesheet Language Transformations
overview xslt supports the concept of passing para
meters to a stylesheet when executing it.
...however when using an <?xml-stylesheet?> processing instruction (pi) there used to be no way to provide para
meters.
... the following document passes the two para
meters "color" and "size" to the stylesheet "style.xsl".
...And 12 more matches
HTMLMeterElement - Web APIs
the html <
meter> elements expose the html
meterelement interface, which provides special properties and methods (beyond the htmlelement object interface they also have available to them by inheritance) for manipulating the layout and presentation of <
meter> elements.
...aco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmlelement</text></a><polyline points="491,25 501,20 501,30 491,25" stroke="#d4dde4" fill="none"/><line x1="501" y1="25" x2="509" y2="25" stroke="#d4dde4"/><line x1="509" y1="25" x2="509" y2="90" stroke="#d4dde4"/><line x1="509" y1="90" x2="492" y2="90" stroke="#d4dde4"/><a xlink:href="/docs/web/api/html
meterelement" target="_top"><rect x="331" y="65" width="160" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="411" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">html
meterelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties also inher...
... html
meterelement.high a double representing the value of the high boundary, reflecting the high attribute.
...And 9 more matches
Default parameters - JavaScript
default function para
meters allow named para
meters to be initialized with default values if no value or undefined is passed.
... syntax function [name]([param1[ = defaultvalue1 ][, ..., paramn[ = defaultvaluen ]]]) { statements } description in javascript, function para
meters default to undefined.
...this is where default para
meters can help.
...And 9 more matches
JS_GetGCParameter
adjust performance para
meters related to garbage collection.
... syntax uint32_t js_getgcpara
meter(jsruntime *rt, jsgcparamkey key); void js_setgcpara
meter(jsruntime *rt, jsgcparamkey key, uint32_t value); uint32_t js_getgcpara
meterforthread(jscontext *cx, jsgcparamkey key); // added in spidermonkeysidebar 17 void js_setgcpara
meterforthread(jscontext *cx, jsgcparamkey key, uint32_t value); // added in spidermonkeysidebar 17 name type description rt jsruntime * the runtime to configure.
... key jsgcparamkey specifies which garbage collection para
meter to get or set.
...And 7 more matches
AudioWorkletProcessor.parameterDescriptors (static getter) - Web APIs
the read-only para
meterdescriptors property of an audioworkletprocessor-derived class is a static getter, which returns an iterable of audioparamdescriptor-based objects.
... the property is not a part of the audioworkletprocessor interface, but, if defined, it is called internally by the audioworkletprocessor constructor to create a list of custom audioparam objects in the para
meters property of the associated audioworkletnode.
... syntax audioworkletprocessorsubclass.para
meterdescriptors; value an iterable of audioparamdescriptor-based objects.
...And 7 more matches
AudioWorkletNode.parameters - Web APIs
the read-only para
meters property of the audioworkletnode interface returns the associated audioparammap — that is, a map-like collection of audioparam objects.
... they are instantiated during creation of the underlying audioworkletprocessor according to its para
meterdescriptors static getter.
... syntax audioworkletnodeinstance.para
meters value the audioparammap object containing audioparam instances.
...And 6 more matches
Magnetometer - Web APIs
the magneto
meter interface of the sensor apis provides information about the magnetic field as detected by the device’s primary magneto
meter sensor.
... to use this sensor, the user must grant permission to the 'magneto
meter' device sensor through the permissions api.
... constructor magneto
meter.magneto
meter() creates a new magneto
meter object.
...And 6 more matches
RTCRtpSender.setParameters() - Web APIs
the setpara
meters() method of the rtcrtpsender interface applies changes the configuration of sender's track, which is the mediastreamtrack for which the rtcrtpsender is responsible.
... in other words, setpara
meters() updates the configuration of the rtp transmission as well as the encoding configuration for a specific media track on the webrtc connection.
... syntax var promise = rtcrtpsender.setpara
meters(para
meters) para
meters para
meters an object conforming with the rtcrtpsendpara
meters dictionary, specifying options for the rtcrtpsender; these include potential codecs that could be use for encoding the sender's track.
...And 6 more matches
WebGLRenderingContext.getParameter() - Web APIs
the webglrenderingcontext.getpara
meter() method of the webgl api returns a value for the passed para
meter name.
... syntax any gl.getpara
meter(pname); para
meters pname a glenum specifying which para
meter value to return.
... return value depends on the para
meter.
...And 6 more matches
progressmeter - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] a
meter which can be used to display the progress of a lengthy operation.
...in addition, an indeterminate progress
meter may be created by setting the mode attribute to undetermined.
... attributes max, mode, value properties accessibletype, max, mode, value examples <progress
meter mode="determined" value="82"/> <progress
meter mode="undetermined"/> <!-- switching modes while the mouse is over a button --> <progress
meter mode="determined" id="myprogress"/> <button label="example" onmouseover="setloading(true)" onmouseout="setloading(false)"/> function setloading(state){ document.getelementbyid('myprogress').mode = (state) ?
...And 5 more matches
Accelerometer - Web APIs
the accelero
meter interface of the sensor apis provides on each reading the acceleration applied to the device along all three axes.
... to use this sensor, the user must grant permission to the 'accelero
meter', device sensor through the permissions api.
... constructor accelero
meter.accelero
meter() creates a new accelero
meter object.
...And 5 more matches
RTCRtpParameters - Web APIs
the rtcrtppara
meters dictionary is the basic object describing the para
meters of an rtp transport.
... it is extended separately for senders and receivers in the form of the rtcrtpsendpara
meters and rtcrtpreceivepara
meters dictionaries.
... to obtain the para
meters of a sender or receiver, call its getpara
meters() method: getpara
meters() getpara
meters() properties codecs an array of rtcrtpcodecpara
meters objects describing the set of codecs from which the sender or receiver will choose.
...And 5 more matches
WebGLRenderingContext.texParameter[fi]() - Web APIs
the webglrenderingcontext.texpara
meter[fi]() methods of the webgl api set texture para
meters.
... syntax void gl.texpara
meterf(glenum target, glenum pname, glfloat param); void gl.texpara
meteri(glenum target, glenum pname, glint param); para
meters target a glenum specifying the binding point (target).
... the pname para
meter is a glenum specifying the texture para
meter to set.
...And 5 more matches
SyntaxError: missing formal parameter - JavaScript
the javascript exception "missing formal para
meter" occurs when your function declaration is missing valid para
meters.
... message syntaxerror: missing formal para
meter (firefox) error type syntaxerror what went wrong?
... "formal para
meter" is a fancy way of saying "function para
meter".
...And 5 more matches
Rest parameters - JavaScript
the rest para
meter syntax allows us to represent an indefinite number of arguments as an array.
...} description a function's last para
meter can be prefixed with ...
... only the last para
meter can be a "rest para
meter".
...And 5 more matches
Parameter - MDN Web Docs Glossary: Definitions of Web-related terms
a para
meter is a named variable passed into a function.
... para
meter variables are used to import arguments into functions.
... note the difference between para
meters and arguments: function para
meters are the names listed in the function's definition.
...And 4 more matches
WebGLRenderingContext.getFramebufferAttachmentParameter() - Web APIs
the webglrenderingcontext.getframebufferattachmentpara
meter() method of the webgl api returns information about a framebuffer's attachment.
... syntax any gl.getframebufferattachmentpara
meter(target, attachment, pname); para
meters target a glenum specifying the binding point (target).
... pname para
meter return value gl.framebuffer_attachment_object_type a glenum indicating the type of the texture.
...And 4 more matches
RTCIceTransport.getLocalParameters() - Web APIs
the rtcicetransport method getlocalpara
meters() returns an rtcicepara
meters object which provides information uniquely identifying the local peer for the duration of the ice session.
... the local peer's para
meters are obtained during ice signaling and delivered to the transport when the client calls rtcpeerconnection.setlocaldescription().
... syntax para
meters = rtcicetransport.getlocalpara
meters(); para
meters none.
...And 3 more matches
RTCIceTransport.getRemoteParameters() - Web APIs
the rtcicetransport method getremotepara
meters() returns an rtcicepara
meters object which provides information uniquely identifying the remote peer for the duration of the ice session.
... the remote peer's para
meters are received during ice signaling and delivered to the transport when the client calls rtcpeerconnection.setremotedescription().
... syntax para
meters = rtcicetransport.getremotepara
meters(); para
meters none.
...And 3 more matches
RTCRtpEncodingParameters - Web APIs
an instance of the webrtc api's rtcrtpencodingpara
meters dictionary describes a single configuration of a codec for an rtcrtpsender.
... it's used in the rtcrtpsendpara
meters describing the configuration of an rtp sender's encodings; rtcrtpdecodingpara
meters is used to describe the configuration of an rtp receiver's encodings.
... codecpayloadtype when describing a codec for an rtcrtpsender, codecpayloadtype is a single 8-bit byte (or octet) specifying the codec to use for sending the stream; the value matches one from the owning rtcrtppara
meters object's codecs para
meter.
...And 3 more matches
RTCRtpSendParameters.encodings - Web APIs
the rtcrtpsendpara
meters dictionary's encodings property is an rtcrtpencodingpara
meters object providing configuration settings for the encoder being used for the rtcrtpsender's track.
... syntax sendpara
meters.encodings = encodingpara
meterlist; encodingpara
meterlist = sendpara
meters.encodings; value an array of objects conforming to the rtcrtpencodingpara
meters dictionary, each of which contains properties which provide settings and para
meters that describe and configure a single codec that could be used to encode the track.
... codecpayloadtype when describing a codec for an rtcrtpsender, codecpayloadtype is a single 8-bit byte (or octet) specifying the codec to use for sending the stream; the value matches one from the owning rtcrtppara
meters object's codecs para
meter.
...And 3 more matches
VRStageParameters - Web APIs
the vrstagepara
meters interface of the webvr api represents the values describing the the stage area for devices that support room-scale experiences.
... this interface is accessible through the vrdisplay.stagepara
meters property.
... properties vrstagepara
meters.sittingtostandingtransform read only contains a matrix that transforms the sitting-space view matrices of vrframedata to standing-space.
...And 3 more matches
WebGL2RenderingContext.samplerParameter[if]() - Web APIs
the webgl2renderingcontext.samplerpara
meter[if]() methods of the webgl 2 api set webglsampler para
meters.
... syntax void gl.samplerpara
meteri(sampler, pname, param); void gl.samplerpara
meterf(sampler, pname, param); para
meters sampler a webglsampler object.
... pname a glenum specifying which para
meter to set.
...And 3 more matches
WebGLRenderingContext.getBufferParameter() - Web APIs
the webglrenderingcontext.getbufferpara
meter() method of the webgl api returns information about the buffer.
... syntax any gl.getbufferpara
meter(target, pname); para
meters target a glenum specifying the target buffer object.
... examples gl.getbufferpara
meter(gl.array_buffer, gl.buffer_size); specifications specification status comment webgl 1.0the definition of 'getbufferpara
meter' in that specification.
...And 3 more matches
WebGLRenderingContext.getRenderbufferParameter() - Web APIs
the webglrenderingcontext.getrenderbufferpara
meter() method of the webgl api returns information about the renderbuffer.
... syntax any gl.getrenderbufferpara
meter(target, pname); para
meters target a glenum specifying the target renderbuffer object.
... examples gl.getrenderbufferpara
meter(gl.renderbuffer, gl.renderbuffer_width); specifications specification status comment webgl 1.0the definition of 'getrenderbufferpara
meter' in that specification.
...And 3 more matches
WebGLRenderingContext.getTexParameter() - Web APIs
the webglrenderingcontext.gettexpara
meter() method of the webgl api returns information about the given texture.
... syntax any gl.gettexpara
meter(target, pname); para
meters target a glenum specifying the binding point (target).
... examples gl.gettexpara
meter(gl.texture_2d, gl.texture_mag_filter); specifications specification status comment webgl 1.0the definition of 'gettexpara
meter' in that specification.
...And 3 more matches
Controlling multiple parameters with ConstantSourceNode - Web APIs
this article demonstrates how to use a constantsourcenode to link multiple para
meters together so they share the same value, which can be changed by simply setting the value of the constantsourcenode.offset para
meter.
... you may have times when you want to have multiple audio para
meters be linked so they share the same value even while being changed in some way.
...since constantsourcenode's offset value is simply sent straight through to all of its outputs, it acts as a splitter for that value, sending it to each connected para
meter.
...And 3 more matches
PR_GMTParameters
syntax #include <prtime.h> prtimepara
meters pr_gmtpara
meters ( const prexplodedtime *gmt); para
meter gmt a pointer to the clock/calendar time whose offsets are to be determined.
... returns a time para
meters structure that expresses the time zone offsets at the specified time.
... description this is a frequently-used time para
meter callback function.
...And 2 more matches
Magnetometer.x - Web APIs
the x read-only property of the magneto
meter interface returns a double precision integer containing the magnetic field around the device's x axis.
... syntax var magneto
meterx = magneto
meter.x value a number.
... example the magneto
meter is typically read in the sensor.onreading event callback.
...And 2 more matches
Magnetometer.y - Web APIs
the y read-only property of the magneto
meter interface returns a double precision integer containing the magnetic field around the device's y axis.
... syntax var magneto
metery = magneto
meter.x value a number.
... example the magneto
meter is typically read in the sensor.onreading event callback.
...And 2 more matches
Magnetometer.z - Web APIs
the z read-only property of the magneto
meter interface returns a double-precision integer containing the magnetic field around the device's z axis.
... syntax var magneto
meterz = magneto
meter.z value a number.
... example the magneto
meter is typically read in the sensor.onreading event callback.
...And 2 more matches
RTCRtpSendParameters - Web APIs
the webrtc api's rtcrtpsendpara
meters dictionary is used to specify the para
meters for an rtcrtpsender when calling its setpara
meters() method.
... properties in addition to the properties below, rtcrtpsendpara
meters inherits the properties from the rtcrtppara
meters interface.
... encodings an array of rtcrtpencodingpara
meters objects, each specifying the para
meters for a single codec that could be used to encode the track's media.
...And 2 more matches
RTCRtpSender.getParameters() - Web APIs
the getpara
meters() method of the rtcrtpsender interface returns an rtcrtpsendpara
meters object describing the current configuration for the encoding and transmission of media on the sender's track.
... syntax var rtpsendpara
meters = rtpsender.getpara
meters() para
meters none.
... return value an rtcrtpsendpara
meters object indicating the current configuration of the sender.
...And 2 more matches
WebGL2RenderingContext.getSamplerParameter() - Web APIs
the webgl2renderingcontext.getsamplerpara
meter() method of the webgl 2 api returns para
meter information of a webglsampler object.
... syntax any gl.getsamplerpara
meter(sampler, pname); para
meters sampler a webglsampler object.
... return value depends on the pname para
meter, either a glenum or a glfloat.
...And 2 more matches
SyntaxError: redeclaration of formal parameter "x" - JavaScript
the javascript exception "redeclaration of formal para
meter" occurs when the same variable name occurs as a function para
meter and is then redeclared using a let assignment in a function body again.
... message syntaxerror: let/const redeclaration (edge) syntaxerror: redeclaration of formal para
meter "x" (firefox) syntaxerror: identifier "x" has already been declared (chrome) error type syntaxerror what went wrong?
... the same variable name occurs as a function para
meter and is then redeclared using a let assignment in a function body again.
...And 2 more matches
SyntaxError: "use strict" not allowed in function with non-simple parameters - JavaScript
the javascript exception "'use strict' not allowed in function" occurs when a "use strict" directive is used at the top of a function with default para
meters, rest para
meters, or destructuring para
meters.
... message edge: cannot apply strict mode on functions with non-simple para
meter list firefox: syntaxerror: "use strict" not allowed in function with default para
meter syntaxerror: "use strict" not allowed in function with rest para
meter syntaxerror: "use strict" not allowed in function with destructuring para
meter chrome: syntaxerror: illegal 'use strict' directive in function with non-simple para
meter list error type syntaxerror.
... a "use strict" directive is written at the top of a function that has one of the following para
meters: default para
meters rest para
meters destructuring para
meters a "use strict" directive is not allowed at the top of such functions per the ecmascript specification.
...And 2 more matches
progressmeter.mode - Archive of obsolete content
« xul reference home mode type: one of the values below a determinedprogress
meter is used in cases where you know how long an operation will take.
... an undeterminedprogress
meter can be used when you don't and will typically be drawn as a spinning barber pole.
... determined the progress
meter uses its value attribute to determine the amount of the bar that is filled in.
... undetermined the progress
meter is indeterminate.
PR_LocalTimeParameters
syntax #include <prtime.h> prtimepara
meters pr_localtimepara
meters ( const prexplodedtime *gmt); para
meter gmt a pointer to the clock/calendar time whose offsets are to be determined.
... returns a time para
meters structure that expresses the time zone offsets at the specified time.
... description this is a frequently-used time para
meter callback function.
... you don't normally call it directly; instead, you pass it as a para
meter to pr_explodetime() or pr_normalizetime().
JS_SetGCParametersBasedOnAvailableMemory
this article covers features introduced in spidermonkey 31 adjust performance para
meters related to garbage collection based on available memory.
... syntax void js_setgcpara
metersbasedonavailablememory(jsruntime *rt, uint32_t availmem); name type description rt jsruntime * the runtime to configure.
... description js_setgcpara
metersbasedonavailablememory adjusts the para
meters of the garbage collection based on available memory.
... see also mxr id search for js_setgcpara
metersbasedonavailablememory js_setgcpara
meter bug 950044 ...
Working with out parameters
} the gettransferdata method takes three para
meters, aflavor, adata, and adatalen, and returns nothing.
...these are so-called out para
meters.
...to get at the out para
meters, you have to pass in an object.
...implementation when implementing a method which has out para
meters in javascript, you have to set a new property called value to the out para
meter which will hold the required value.
Accelerometer.x - Web APIs
the x read-only property of the accelero
meter interface returns a double precision integer containing the acceleration of the device along the its x axis.
... syntax var xacceleration = accelero
meter.x value a number.
... let accelero
meter = new accelero
meter({frequency: 60}); accelero
meter.addeventlistener('reading', e => { console.log("acceleration along the x-axis " + accelero
meter.x); console.log("acceleration along the y-axis " + accelero
meter.y); console.log("acceleration along the z-axis " + accelero
meter.z); }); accelero
meter.start(); specifications specification status comment generic sensor api candidate recommendation defines sensors in general.
... accelero
meterthe definition of 'x' in that specification.
Accelerometer.y - Web APIs
the y read-only property of the accelero
meter interface returns a double precision integer containing the acceleration of the device along the its y axis.
... syntax var yacceleration = accelero
meter.y value a number.
... let accelero
meter = new accelero
meter({frequency: 60}); accelero
meter.addeventlistener('reading', e => { console.log("acceleration along the x-axis " + accelero
meter.x); console.log("acceleration along the y-axis " + accelero
meter.y); console.log("acceleration along the z-axis " + accelero
meter.z); }); accelero
meter.start(); specifications specification status comment generic sensor api candidate recommendation defines sensors in general.
... accelero
meterthe definition of 'y' in that specification.
Accelerometer.z - Web APIs
the z read-only property of the accelero
meter interface returns a double precision integer containing the acceleration of the device along the its z axis.
... syntax var zacceleration = accelero
meter.z value a number.
... let accelero
meter = new accelero
meter({frequency: 60}); accelero
meter.addeventlistener('reading', e => { console.log("acceleration along the x-axis " + accelero
meter.x); console.log("acceleration along the y-axis " + accelero
meter.y); console.log("acceleration along the z-axis " + accelero
meter.z); }); accelero
meter.start(); specifications specification status comment generic sensor api candidate recommendation defines sensors in general.
... accelero
meterthe definition of 'z' in that specification.
RTCRtpCodecParameters - Web APIs
the rtcrtpcodecpara
meters dictionary, part of the webrtc api, is used to describe the configuration para
meters for a single media codec.
... in addition to being the type of the rtcrtppara
meters.codecs property, it's used when calling rtcrtptransceiver.setcodecpreferences() to configure a transceiver's codecs before beginning the offer/answer process to establish a webrtc peer connection.
... sdpfmtpline optional a domstring containing the format-specific para
meters field from the "a=fmtp" line in the codec's sdp, if one is present; see section 5.8 of the ietf specification for jsep.
... note: on an rtcrtpreceiver, the format-specific para
meters come from the sdp sent by the remote peer, while for rtcrtpsender, they're provided by the local description.
RTCRtpEncodingParameters.maxBitrate - Web APIs
the rtcrtpencodingpara
meters dictionary's maxbitrate property specifies the maximum number of bits per second to allow a track encoded with this encoding to use.
... syntax rtpencodingpara
meters.maxbitrate = maxbitspersecond; rtpencodingpara
meters = { maxbitrate: maxbitspersecond }; maxbitspersecond = rtpencodingpara
meters.maxbitrate; value an unsigned long integer value specifying the maximum bandwidth this encoding is permitted to use for a track of media it encodes in terms of bits per second.
... other para
meters may further reduce the bandwidth used by the track; for example, maxframerate will, if set low enough, constrain the bandwidth as well.
... specifications specification status comment webrtc 1.0: real-time communication between browsersthe definition of 'rtcrtpencodingpara
meters.maxbitrate' in that specification.
RTCRtpEncodingParameters.scaleResolutionDownBy - Web APIs
the rtcrtpencodingpara
meters dictionary's scaleresolutiondownby property can be used to specify a factor by which to reduce the size of a video track during encoding.
... syntax rtpencodingpara
meters.scaleresolutiondownby = scalingfactor; rtpencodingpara
meters = { scaleresolutiondownby: scalingfactor }; value a double-precison floating-point number specifying the amount by which to reduce the size of the video during encoding.
...therefore, specifying a value less than 1.0 is not permitted and will cause a rangeerror exception to be thrown by rtcpeerconnection.addtransceiver() or rtcrtpsender.setpara
meters().
... specifications specification status comment webrtc 1.0: real-time communication between browsersthe definition of 'rtcrtpencodingpara
meters.scaleresolutiondownby' in that specification.
RTCRtpReceiveParameters - Web APIs
the rtcrtpreceivepara
meters dictionary, based upon the rtcrtppara
meters dictionary, is returned by the the rtcrtpreceiver method getpara
meters().
... it describes the para
meters being used by the receiver's rtp connection to the remote peer.
...it inherits all of the properties of its parent, rtcrtppara
meters.
... function getrtcpcname(receiver) { let para
meters = receiver.getpara
meters(); return para
meters.rtcp.cname; } specifications specification status comment webrtc 1.0: real-time communication between browsersthe definition of 'rtcrtpreceivepara
meters' in that specification.
RTCRtpReceiver.getParameters() - Web APIs
the getpara
meters() method of the rtcrtpreceiver interface returns an rtcrtpreceivepara
meters object describing the current configuration for the encoding and transmission of media on the receiver's track.
... syntax let rtpreceivepara
meters = rtpreceiver.getpara
meters(); para
meters none.
... return value an rtcrtpreceivepara
meters object indicating the current configuration of the receiver.
... function getrtcpcname(receiver) { let para
meters = receiver.getpara
meters(); return para
meters.rtcp.cname; } specifications specification status comment webrtc 1.0: real-time communication between browsersthe definition of 'rtcrtpreceiver.getpara
meters()' in that specification.
WebGL2RenderingContext.getActiveUniformBlockParameter() - Web APIs
the webgl2renderingcontext.getactiveuniformblockpara
meter() method of the webgl 2 api retrieves information about an active uniform block within a webglprogram.
... syntax any gl.getactiveuniformblockpara
meter(program, uniformblockindex, pname); para
meters program a webglprogram containing the active uniform block.
... return value depends on which information is requested using the pname para
meter.
... examples var blocksize = gl.getactiveuniformblockpara
meter(program, blockindex, gl.uniform_block_data_size); specifications specification status comment webgl 2.0the definition of 'getactiveuniformblockpara
meter' in that specification.
WebGL2RenderingContext.getQueryParameter() - Web APIs
the webgl2renderingcontext.getquerypara
meter() method of the webgl 2 api returns para
meter information of a webglquery object.
... syntax any gl.getquerypara
meter(query, pname); para
meters query a webglquery object.
... return value depends on the pname para
meter, either a gluint or a glboolean.
... examples var query = gl.createquery(); gl.beginquery(gl.any_samples_passed, query); var result = gl.getquerypara
meter(query, gl.query_result); specifications specification status comment webgl 2.0the definition of 'getquerypara
meter' in that specification.
WebGL2RenderingContext.getSyncParameter() - Web APIs
the webgl2renderingcontext.getsyncpara
meter() method of the webgl 2 api returns para
meter information of a webglsync object.
... syntax any gl.getsyncpara
meter(sync, pname); para
meters sync a webglsync object.
... return value depends on the pname para
meter, either a glenum or a glbitfield.
... examples var sync = gl.fencesync(gl.sync_gpu_commands_complete, 0); gl.getsyncpara
meter(sync, gl.sync_status); specifications specification status comment webgl 2.0the definition of 'getsyncpara
meter' in that specification.
WebGLRenderingContext.getProgramParameter() - Web APIs
the webglrenderingcontext.getprogrampara
meter() method of the webgl api returns information about the given program.
... syntax any gl.getprogrampara
meter(program, pname); para
meters program a webglprogram to get para
meter information from.
... examples gl.getprogrampara
meter(program, gl.delete_status); specifications specification status comment webgl 1.0the definition of 'getprogrampara
meter' in that specification.
... webgl 2.0the definition of 'getprogrampara
meter' in that specification.
::-webkit-meter-inner-element - CSS: Cascading Style Sheets
::-webkit-
meter-inner-element is a proprietary webkit css pseudo-element for selecting and applying styles to to the outer containing element of a <
meter> element.
... additional markup to render the
meter element as read-only.
... syntax ::-webkit-
meter-inner-element specifications not part of any standard.
... html <
meter min="0" max="10" value="6">score out of 10</
meter> css
meter { /* reset the default appearance */ -webkit-appearance: none; -moz-appearance: none; appearance: none; }
meter::-webkit-
meter-inner-element { -webkit-appearance: inherit; box-sizing: inherit; border: 1px solid #aaa; } result ...
Setting Parameters - XSLT: Extensible Stylesheet Language Transformations
setting para
meters while running transformations using precoded .xsl and .xml files is quite useful, configuring the .xsl file from javascript may be even more useful.
...xsltprocessor provides three javascript methods to interact with these para
meters: xsltprocessor.setpara
meter(), xsltprocessor.getpara
meter() and xsltprocessor.removepara
meter().
...setpara
meter requires a third argument - namely the value to which the para
meter will be set.
... figure 7 : para
meters /* xslt: <xsl:param name="myorder" /> */ // javascript: var sortval = xsltprocessor.getpara
meter(null, "myorder"); if (sortval == "" || sortval == "descending") xsltprocessor.setpara
meter(null, "myorder", "ascending"); else xsltprocessor.setpara
meter(null, "myorder", "descending"); ...
HTMLMeterElement.labels - Web APIs
the html
meterelement.labels read-only property returns a nodelist of the <label> elements associated with the <
meter> element.
... syntax var labelelements =
meter.labels; return value a nodelist containing the <label> elements associated with the <
meter> element.
... example html <label id="label1" for="test">label 1</label> <
meter id="test" min="0" max="100" value="70">70</
meter> <label id="label2" for="test">label 2</label> javascript window.addeventlistener("domcontentloaded", function() { const
meter = document.getelementbyid("test"); for(var i = 0; i <
meter.labels.length; i++) { console.log(
meter.labels[i].textcontent); // "label 1" and "label 2" } }); specifications specification status comment html living standardthe definition of 'labels' in that specification.
RTCIceParameters.usernameFragment - Web APIs
the rtcicepara
meters dictionary's usernamefragment property specifies the username fragment ("ufrag") that uniquely identifies the corresponding ice session for the duration of the current ice session.
... syntax ufrag = rtcicepara
meters.usernamefragment; value a domstring containing the username fragment that, in tandem with the password, uniquely identify the ice session being used by the transport.
... specifications specification status comment webrtc 1.0: real-time communication between browsersthe definition of 'rtcicepara
meters.usernamefragment' in that specification.
RTCIceParameters - Web APIs
the rtcicepara
meters dictionary specifies the username fragment and password assigned to an ice session.
... during ice negotiation, each peer's username fragment and password are recorded in an rtcicepara
meters object, which can be obtained from the rtcicetransport by calling its getlocalpara
meters() or getremotepara
meters() method, depending on which end interests you.
... specifications specification status comment webrtc 1.0: real-time communication between browsersthe definition of 'rtcicepara
meters' in that specification.
RTCRtcpParameters - Web APIs
the rtcrtcppara
meters dictionary provides para
meters of an rtcp connection.
... it's used as the value of the rtcp property of the para
meters of an rtcrtpsender or rtcrtpreceiver.
... function getrtpcname(rtpobject) { let para
meters = rtpobject.getpara
meters(); return para
meters.rtcp.cname; } specifications specification status comment webrtc 1.0: real-time communication between browsersthe definition of 'rtcrtcppara
meters' in that specification.
WebGL2RenderingContext.getIndexedParameter() - Web APIs
the webgl2renderingcontext.getindexedpara
meter() method of the webgl 2 api returns indexed information about a given target.
... syntax any gl.getindexedpara
meter(target, index); para
meters target a glenum specifying the target for which to return information.
... examples var binding = gl.getindexedpara
meter(gl.transform_feedback_buffer_binding, 0); specifications specification status comment webgl 2.0the definition of 'getindexedpara
meter' in that specification.
WebGL2RenderingContext.getInternalformatParameter() - Web APIs
the webgl2renderingcontext.getinternalformatpara
meter() method of the webgl 2 api returns information about implementation-dependent support for internal formats.
... syntax any gl.getinternalformatpara
meter(target, internalformat, pname); para
meters target a glenum specifying the target renderbuffer object.
... examples var samples = gl.getinternalformatpara
meter(gl.renderbuffer, gl.rgba8, gl.samples); specifications specification status comment webgl 2.0the definition of 'getinternalformatpara
meter' in that specification.
WebGLRenderingContext.getShaderParameter() - Web APIs
the webglrenderingcontext.getshaderpara
meter() method of the webgl api returns information about the given shader.
... syntax any gl.getshaderpara
meter(shader, pname); para
meters shader a webglshader to get para
meter information from.
... examples gl.getshaderpara
meter(shader, gl.shader_type); specifications specification status comment webgl 1.0the definition of 'getshaderpara
meter' in that specification.
::-webkit-meter-bar - CSS: Cascading Style Sheets
the ::-webkit-
meter-bar css pseudo-class is a webkit extension that represents the
meter bar in a <
meter> element.
... syntax ::-webkit-
meter-bar specifications not part of any standard.
... examples html <
meter min="0" max="10" value="6">score out of 10</
meter> css
meter { /* reset the default appearance */ -webkit-appearance: none; -moz-appearance: none; appearance: none; }
meter::-webkit-
meter-bar { background: #eee; box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2) inset; border-radius: 3px; } result ...
::-webkit-meter-even-less-good-value - CSS: Cascading Style Sheets
the ::-webkit-
meter-even-less-good-value gives a red color to a <
meter> element when the value and the optimum attributes fall outside the low-high range, but in opposite zones.
... syntax ::-webkit-
meter-even-less-good-value specifications not part of any standard.
... examples html <
meter min="0" max="10" value="6">score out of 10</
meter> css
meter::-webkit-
meter-even-less-good-value { background: linear-gradient(to bottom, #f77, #d44 45%, #d44 55%, #f77); height: 100%; box-sizing: border-box; } result ...
::-webkit-meter-optimum-value - CSS: Cascading Style Sheets
the ::-webkit-
meter-optimum-value css pseudo-element styles the <
meter> element when its value is inside the low-high range.
... syntax ::-webkit-
meter-optimum-value specifications not part of any standard.
... html <
meter min="0" max="10" value="6">score out of 10</
meter> css
meter::-webkit-
meter-bar { /* required to get rid of the default background property */ background : none; background-color : whitesmoke; box-shadow : 0 5px 5px -5px #333 inset; }
meter::-webkit-
meter-optimum-value { box-shadow: 0 5px 5px -5px #999 inset; } result ...
::-webkit-meter-suboptimum-value - CSS: Cascading Style Sheets
the ::-webkit-
meter-suboptimum-value pseudo-element gives a yellow color to the <
meter> element when the value attribute falls outside of the low-high range.
... syntax ::-webkit-
meter-suboptimum-value examples this example will only work in browsers based on webkit or blink.
... html <
meter min="0" max="10" value="6">score out of 10</
meter> css
meter::-webkit-
meter-suboptimum-value { background: -webkit-gradient linear, left top, left bottom; height: 100%; box-sizing: border-box; } result specifications not part of any standard.
Feature-Policy: accelerometer - HTTP
the http feature-policy header accelero
meter directive controls whether the current document is allowed to gather information about the acceleration of the device through the accelero
meter interface.
... syntax feature-policy: accelero
meter <allowlist>; <allowlist> an allowlist is a list of origins that takes one or more of the following values, separated by spaces: *: the feature will be allowed in this document, and all nested browsing contexts (iframes) regardless of their origin.
... accelero
meterthe definition of 'accelero
meter' in that specification.
SyntaxError: Malformed formal parameter - JavaScript
the javascript exception "malformed formal para
meter" occurs when the argument list of a function() constructor call is invalid somehow.
... message syntaxerror: expected {x} (edge) syntaxerror: malformed formal para
meter (firefox) error type syntaxerror what went wrong?
..."formal para
meter" is a fancy way of saying "function argument".
PRTimeParameters
syntax #include <prtime.h> typedef struct prtimepara
meters { print32 tp_gmt_offset; print32 tp_dst_offset; } prtimepara
meters; description each geographic location has a standard time zone, and if daylight saving time (dst) is practiced, a daylight time zone.
... the prtimepara
meters structure represents the local time zone information in terms of the offset (in seconds) from gmt.
nsIAccelerometerUpdate
xpcom/system/nsiaccelero
meter.idlnot scriptable replaced by nsidevicemotionupdate 1.0 66 introduced gecko 2.0 obsolete gecko 6.0 inherits from: nsiaccelero
meter last changed in gecko 5.0 (firefox 5.0 / thunderbird 5.0 / seamonkey 2.2) this method is only used in content tabs to receive nsiacceleration data from the chrome process.
... method overview void accelerationchanged(in double x, in double y, in double z); methods accelerationchanged() void accelerationchanged( in double x, in double y, in double z ); para
meters x y z the coordinates of the nsiacceleration data.
RTCIceParameters.password - Web APIs
the rtcicepara
meters dictionary's password property specifies the ice password that, in tandem with the usernamefragment, uniquely identifies an ice session for its entire duration.
... syntax password = rtcicepara
meters.password; value a domstring containing the password that corresponds to the transport's usernamefragment string specifications specification status comment webrtc 1.0: real-time communication between browsersthe definition of 'rtcicepara
meters.password' in that specification.
Feature-Policy: magnetometer - HTTP
the http feature-policy header magneto
meter directive controls whether the current document is allowed to gather information about the orientation of the device through the magneto
meter interface.
... syntax feature-policy: magneto
meter <allowlist>; <allowlist> an allowlist is a list of origins that takes one or more of the following values, separated by spaces: *: the feature will be allowed in this document, and all nested browsing contexts (iframes) regardless of their origin.
Index - Web APIs
24 accelero
meter api, accelero
meter, accelero
meter api, generic sensor api, interface, reference, sensor, sensor apis, sensors the accelero
meter interface of the sensor apis provides on each reading the acceleration applied to the device along all three axes.
... 25 accelero
meter.accelero
meter() api, accelero
meter, accelero
meter api, constructor, generic sensor api, reference, sensor, sensor apis, sensors the accelero
meter constructor creates a new accelero
meter object which returns the acceleration of the device along all three axes at the time it is read.
... 26 accelero
meter.x api, accelero
meter, accelero
meter api, generic sensor api, property, reference, sensor, sensor apis, sensors, x the x read-only property of the accelero
meter interface returns a double precision integer containing the acceleration of the device along the its x axis.
...And 166 more matches
sslfnc.html
syntax #include "nss.h" secstatus nss_init(char *configdir); para
meter this function has the following para
meter: configdir a pointer to a string containing the pathname of the directory where the certificate, key, and security module databases reside.
... syntax #include "nss.h" secstatus nss_initreadwrite(char *configdir); para
meter this function has the following para
meter: configdir a pointer to a string containing the pathname of the directory where the certificate, key, and security module databases reside.
... syntax #include "nss.h" secstatus nss_nodb_init(char *reserved); para
meter this function has the following para
meter: reserved should be null..
...And 75 more matches
Editor Embedding Guide - Archive of obsolete content
the first para
meter is the nsidomwindow you just retrieved, the second is the editor type you want to create, and the third is whether you want the window editable immediately or when the document is done loading.
... acommandparams could possibly be a null pointer or a pointer to a valid structure filled with relative para
meters to acommand (see list below for legal params).
...get the current command state of a given command -- getcommandstate: commandmanager->getcommandstate(acommand,acommandparams) index of commands and para
meters cmd_bold toggles bold style on selection.
...And 65 more matches
nsINavBookmarksService
void addobserver( in nsinavbookmarkobserver observer, in boolean ownsweak ); para
meters observer the bookmark observer to be added.
... void beginupdatebatch(); para
meters none.
... void changebookmarkuri( in nsiuri olduri, obsolete since gecko 1.9 in long long aitemid, in nsiuri anewuri ); para
meters olduri obsolete since gecko 1.9 the uri of the item to be changed.
...And 53 more matches
nsIDOMWindowUtils
void activatenativemenuitemat( in astring indexstring ); para
meters indexstring clearmozafterpaintevents() void clearmozafterpaintevents(); para
meters none.
... pruint32 comparecanvases( in nsidomhtmlcanvaselement acanvas1, in nsidomhtmlcanvaselement acanvas2, out unsigned long amaxdifference ); para
meters acanvas1 acanvas2 amaxdifference return value computeanimationdistance() method for testing nsstyleanimation::computedistance.
... double computeanimationdistance( in nsidomelement element, in astring property, in astring value1, in astring value2 ); para
meters element property value1 value2 return value createcompositionstringsynthesizer() obsolete since gecko 38 method for creating an instance which has nsicompositionstringsynthesizer.
...And 52 more matches
nsIHTMLEditor
void adddefaultproperty( in nsiatom aproperty, in astring aattribute, in astring avalue ); para
meters aproperty the property to set by default.
... void addinsertionlistener( in nsicontentfilter infilter ); para
meters infilter function which callers want called during insertion.
... void align( in astring aalign ); para
meters aalign breakisvisible() checks whether a br node is visible to the user.
...And 49 more matches
nsIFile
all methods with string para
meters have two forms.
... delete_on_close 0x80000000 optional para
meter used by opennsprfiledesc methods append() this function is used for constructing a descendant of the current nsifile.
... void append( in astring node ); para
meters node a string which is intended to be a child node of the nsifile.
...And 48 more matches
WebGL constants - Web APIs
standard webgl constants are installed on the webglrenderingcontext and webgl2renderingcontext objects, so that you use them as gl.constant_name: var canvas = document.getelementbyid('mycanvas'); var gl = canvas.getcontext('webgl'); gl.getpara
meter(gl.line_width); some constants are also provided by webgl extensions.
... var debuginfo = gl.getextension('webgl_debug_renderer_info'); var vendor = gl.getpara
meter(debuginfo.unmasked_vendor_webgl); the webgl tutorial has more information, examples, and resources on how to get started with webgl.
... getting gl para
meter information constants passed to webglrenderingcontext.getpara
meter() to specify what information to return.
...And 45 more matches
nsIAnnotationService
void setpageannotation( in nsiuri auri, in autf8string aname, in nsivariant avalue, in long aflags, in unsigned short aexpiration ); para
meters auri the uri on which the annotation is to be set.
... void setitemannotation( in long long aitemid, in autf8string aname, in nsivariant avalue, in long aflags, in unsigned short aexpiration ); para
meters aitemid the item on which the annotation is to be set.
... void setpageannotationstring( in nsiuri auri, in autf8string aname, in astring avalue, in long aflags, in unsigned short aexpiration ); para
meters auri the uri on which the annotation is to be set.
...And 42 more matches
nsIXPConnect
void addjsholder( in voidptr aholder, in nsscriptobjecttracerptr atracer ); para
meters aholder the object that hold the js objects that should be rooted.
... atracer missing description exceptions thrown missing exception missing description clearallwrappednativesecuritypolicies() void clearallwrappednativesecuritypolicies(); para
meters none.
... nsixpconnectjsobjectholder createsandbox( in jscontextptr cx, in nsiprincipal principal ); para
meters cx a context to use when creating the sandbox object.
...And 39 more matches
source-editor.jsm
void addbreakpoint( number alineindex, [optional] string acondition ); para
meters alineindex the 0-based line number at which to place the breakpoint.
... void addeventlistener( string aeventtype, function acallback ); para
meters aeventtype the name of the event type to listen for; see event name constants for possible values.
... boolean canredo(); para
meters none.
...And 37 more matches
mozIStorageStatement
method overview void initialize(in mozistorageconnection adbconnection, in autf8string asqlstatement); obsolete since gecko 1.9.1 void finalize(); mozistoragestatement clone(); autf8string getpara
metername(in unsigned long aparamindex); unsigned long getpara
meterindex(in autf8string aname); autf8string getcolumnname(in unsigned long acolumnindex); unsigned long getcolumnindex(in autf8string aname); void reset(); astring escapestringforlike(in astring avalue, in wchar aescapechar); void bindpara
meters(in mozistoragebindingparamsarray aparamet...
...ers); mozistoragebindingparamsarray newbindingparamsarray(); void bindutf8stringpara
meter(in unsigned long aparamindex, in autf8string avalue); void bindstringpara
meter(in unsigned long aparamindex, in astring avalue); void binddoublepara
meter(in unsigned long aparamindex, in double avalue); void bindint32para
meter(in unsigned long aparamindex, in long avalue); void bindint64para
meter(in unsigned long aparamindex, in long long avalue); void bindnullpara
meter(in unsigned long aparamindex); void bindblobpara
meter(in unsigned long aparamindex, [array,const,size_is(avaluesize)] in octet avalue, in unsigned long avaluesize); mozistoragependingstatement executeasync(mozistoragestatementcallback acallback); bo...
... para
metercount unsigned long number of para
meters.
...And 36 more matches
CustomizableUI.jsm
para
meters alistener the listener object to add removelistener() remove a listener added with addlistener.
... para
meters alistener the listener object to remove registerarea() register a customizable area with customizableui.
... para
meters aareaid the name of the area to register.
...And 33 more matches
XPIDL
the following is the correspondence table: table 1: standard idl types idl c++ in para
meter c++ out para
meter js type notes boolean bool bool* boolean char char char* string only chars in range \u0000-\u00ff permitted double double double* number float float float* number long int32_t int32_t* number long long int64_t int64_t* number oc...
... in addition to this list, nearly every idl file includes nsrootidl.idl in some fashion, which also defines the following types: table 2: types provided by nsrootidl.idl idl typedef c++ in para
meter c++ out para
meter js type notes prtime (xpidl unsigned long long typedef, 64 bits) number prtime is in microseconds, while js date assumes time in milliseconds nsresult (xpidl unsigned long typedef, 32 bits) number nsrefcnt (xpidl unsigned long typedef, 32 bits) number size_t (xpidl unsigned long typedef, 32 bits) ...
...webidl types will be passed as mozilla::dom::interfacename* when used as in-para
meters, as mozilla::dom::interfacename** when used as out or inout-para
meters, and as refptr<mozilla::dom::interfacename> when used as an array element.
...And 32 more matches
imgIContainer
void addrestoredata( [array, size_is(acount), const] in char data, in unsigned long acount ); para
meters data missing description acount missing description exceptions thrown missing exception missing description native code only!appendframe obsolete since gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1)this feature is obsolete.
...void appendframe( in print32 ax, in print32 ay, in print32 awidth, in print32 aheight, in gfximageformat aformat, [array, size_is(imagelength)] out pruint8 imagedata, out unsigned long imagelength ); para
meters ax missing description ay missing description awidth missing description aheight missing description aformat missing description imagedata missing description imagelength missing description exceptions thrown missing exception missing description native code only!appendpalettedframe obsolete since gecko 2.0 (firefox 4 / thunderbird 3.3 ...
...void appendpalettedframe( in print32 ax, in print32 ay, in print32 awidth, in print32 aheight, in gfximageformat aformat, in pruint8 apalettedepth, [array, size_is(imagelength)] out pruint8 imagedata, out unsigned long imagelength, [array, size_is(palettelength)] out pruint32 palettedata, out unsigned long palettelength ); para
meters ax missing description ay missing description awidth missing description aheight missing description aformat missing description apalettedepth missing description imagedata missing description imagelength missing description palettedata missing description palettelength missing description exceptions thrown mi...
...And 31 more matches
nsITreeView
boolean candrop( in long index, in long orientation, in nsidomdatatransfer datatransfer ); para
meters index the index of the row.
... datatransfer this para
meter, added in gecko 1.9.2, provides the data being dragged, so that it can be examined to determine if a drop is possible.
... boolean candropbeforeafter( in long index, in boolean before ); para
meters index the index of the item.
...And 31 more matches
nsDependentCString
methods constructors nsdependentcstring(const char*, const char*) - source para
meters char* start a pointer to the start of the string.
...nsdependentcstring(const char*, pruint32) - source para
meters char* data a pointer to the string.
... para
meters char* data a pointer to the string.
...And 29 more matches
DevTools API - Firefox Developer Tools
para
meters: tooldefinition {tooldefinition} - an object that contains information about the tool.
... para
meters: tool {tooldefinition|string} - the tool definition object or the id of the tool to unregister.
... para
meters: themedefinition {themedefinition} - an object that contains information about the theme.
...And 28 more matches
d - SVG: Scalable Vector Graphics
a path definition is a list of path commands where each command is composed of a command letter and numbers that represent the command para
meters.
...each command is composed of a command letter and numbers that represent the command para
meters.
... command para
meters notes m (x, y)+ move the current point to the coordinate x,y.
...And 28 more matches
nsCAutoString
methods constructors void nscautostring() - source constructors void nscautostring(char) - source para
meters char c void nscautostring(const char*, pruint32) - source para
meters char* data pruint32 length void nscautostring(const nscautostring&) - source para
meters nscautostring& str void nscautostring(const nsacstring_internal&) - source para
meters nsacstring_internal& str void nscautostring(const nscsubstringtuple&) - source para
meters nscsub...
...stringtuple& tuple operator= nscautostring& operator=(const nscautostring&) - source para
meters nscautostring& str nscstring& operator=(const nscstring&) - source para
meters nscstring& str nsacstring_internal& operator=(char) - source para
meters char c nsacstring_internal& operator=(const char*) - source para
meters char* data nsacstring_internal& operator=(const nsacstring_internal&) - source para
meters nsacstring_internal& str nsacstring_internal& operator=(const nscsubstringtuple&) - source para
meters nscsubstringtuple& tuple get char* get() const - source returns the null-terminated string find print32 find(const nscstring&, prbool, print32, print32) const - source search for the giv...
...@return offset in string, or knotfound para
meters nscstring& astring prbool aignorecase print32 aoffset print32 acount print32 find(const char*, prbool, print32, print32) const - source para
meters char* astring prbool aignorecase print32 aoffset print32 acount rfind print32 rfind(const nscstring&, prbool, print32, print32) const - source this methods scans the string backwards, looking for the given string @param astring is substring to be sought in th...
...And 26 more matches
nsXPIDLCString
class declaration nstxpidlstring extends nststring such that: (1) mdata can be null (2) objects of this type can be automatically cast to |const chart*| (3) getter_copies method is supported to adopt data allocated with ns_alloc, such as "out string" para
meters in xpidl.
... methods constructors void nsxpidlcstring() - source void nsxpidlcstring(const nsxpidlcstring&) - source para
meters nsxpidlcstring& str operator const char* char* operator const char*() const - source operator[] char operator[](print32) const - source para
meters print32 i char operator[](pruint32) const - source para
meters pruint32 i operator= nsxpidlcstring& operator=(const nsxpidlcstring&) - source para
meters nsxpidlcstring& str nscstring& operator=(const nscstring&) - s...
...ource para
meters nscstring& str nsacstring_internal& operator=(char) - source para
meters char c nsacstring_internal& operator=(const char*) - source para
meters char* data nsacstring_internal& operator=(const nsacstring_internal&) - source para
meters nsacstring_internal& str nsacstring_internal& operator=(const nscsubstringtuple&) - source para
meters nscsubstringtuple& tuple get char* get() const - source returns the null-terminated string find print32 find(const nscstring&, prbool, print32, print32) const - source search for the given substring within this string.
...And 26 more matches
IAccessibleTable
[propget] hresult accessibleat( [in] long row, [in] long column, [out] iunknown accessible ); para
meters row the 0 based row index for which to retrieve the cell.
...[propget] hresult caption( [out] iunknown accessible ); para
meters accessible if the table has a caption then a reference to it is returned, else a null pointer is returned.
...[propget] hresult childindex( [in] long rowindex, [in] long columnindex, [out] long cellindex ); para
meters rowindex 0 based row index for the cell.
...And 26 more matches
nsIWindowsRegKey
constant value description root_key_classes_root 0x80000000 root_key_current_user 0x80000001 root_key_local_machine 0x80000002 access constants values for the mode para
meter passed to the open() and create() methods.
...void close(); para
meters none.
...note: on 32-bit windows, it is valid to pass any hkey as the rootkey para
meter of this function.
...And 26 more matches
NS_ConvertUTF16toUTF8
methods constructors void ns_convertutf16toutf8(const prunichar*) - source a helper class that converts a utf-16 string to utf-8 para
meters prunichar* astring void ns_convertutf16toutf8(const prunichar*, pruint32) - source para
meters prunichar* astring pruint32 alength void ns_convertutf16toutf8(const nsastring_internal&) - source para
meters nsastring_internal& astring operator= nscautostring& operator=(const nscautostring&) - source para
meters nscautostring& str nscstring& operator=(const nscstring&) - sou...
...rce para
meters nscstring& str nsacstring_internal& operator=(char) - source para
meters char c nsacstring_internal& operator=(const char*) - source para
meters char* data nsacstring_internal& operator=(const nsacstring_internal&) - source para
meters nsacstring_internal& str nsacstring_internal& operator=(const nscsubstringtuple&) - source para
meters nscsubstringtuple& tuple get char* get() const - source returns the null-terminated string find print32 find(const nscstring&, prbool, print32, print32) const - source search for the given substring within this string.
...@return offset in string, or knotfound para
meters nscstring& astring prbool aignorecase print32 aoffset print32 acount print32 find(const char*, prbool, print32, print32) const - source para
meters char* astring prbool aignorecase print32 aoffset print32 acount rfind print32 rfind(const nscstring&, prbool, print32, print32) const - source this methods scans the string backwards, looking for the given string @param astring is substring to be sought in this @param aignorecase tells us whether or not to do caseless...
...And 25 more matches
NS_LossyConvertUTF16toASCII
methods constructors void ns_lossyconvertutf16toascii(const prunichar*) - source a helper class that converts a utf-16 string to ascii in a lossy manner para
meters prunichar* astring void ns_lossyconvertutf16toascii(const prunichar*, pruint32) - source para
meters prunichar* astring pruint32 alength void ns_lossyconvertutf16toascii(const nsastring_internal&) - source para
meters nsastring_internal& astring operator= nscautostring& operator=(const nscautostring&) - source para
meters nscautostring& str nscstring& operator=(const nscst...
...ring&) - source para
meters nscstring& str nsacstring_internal& operator=(char) - source para
meters char c nsacstring_internal& operator=(const char*) - source para
meters char* data nsacstring_internal& operator=(const nsacstring_internal&) - source para
meters nsacstring_internal& str nsacstring_internal& operator=(const nscsubstringtuple&) - source para
meters nscsubstringtuple& tuple get char* get() const - source returns the null-terminated string find print32 find(const nscstring&, prbool, print32, print32) const - source search for the given substring within this string.
...@return offset in string, or knotfound para
meters nscstring& astring prbool aignorecase print32 aoffset print32 acount print32 find(const char*, prbool, print32, print32) const - source para
meters char* astring prbool aignorecase print32 aoffset print32 acount rfind print32 rfind(const nscstring&, prbool, print32, print32) const - source this methods scans the string backwards, looking for the given string @param astring is substring to be sought in this @param aignorecase tells us whether or not to do caseless...
...And 25 more matches
nsAdoptingCString
methods constructors void nsadoptingcstring() - source void nsadoptingcstring(char*, pruint32) - source para
meters char* str pruint32 length void nsadoptingcstring(const nsadoptingcstring&) - source para
meters nsadoptingcstring& str operator= nsadoptingcstring& operator=(const nsadoptingcstring&) - source para
meters nsadoptingcstring& str nsxpidlcstring& operator=(const nsxpidlcstring&) - source para
meters nsxpidlcstring& str nscstring& operator=(const nscstring&) - source paramet...
...ers nscstring& str nsacstring_internal& operator=(char) - source para
meters char c nsacstring_internal& operator=(const char*) - source para
meters char* data nsacstring_internal& operator=(const nsacstring_internal&) - source para
meters nsacstring_internal& str nsacstring_internal& operator=(const nscsubstringtuple&) - source para
meters nscsubstringtuple& tuple operator const char* char* operator const char*() const - source operator[] char operator[](print32) const - source para
meters print32 i char operator[](pruint32) const - source para
meters pruint32 i get char* get() const - source returns the null-terminated string find print32 find(const nscstring&, prbool, print32, print32) const - source search for the given substring wi...
...@return offset in string, or knotfound para
meters nscstring& astring prbool aignorecase print32 aoffset print32 acount print32 find(const char*, prbool, print32, print32) const - source para
meters char* astring prbool aignorecase print32 aoffset print32 acount rfind print32 rfind(const nscstring&, prbool, print32, print32) const - source this methods scans the string backwards, looking for the given string @param astring is substring to be sought in this @param aignorecase tells us whether or n...
...And 25 more matches
nsCString
methods constructors void nscstring() - source constructors void nscstring(char) - source para
meters char c void nscstring(const char*, pruint32) - source para
meters char* data pruint32 length void nscstring(const nscstring&) - source para
meters nscstring& str void nscstring(const nscsubstringtuple&) - source para
meters nscsubstringtuple& tuple void nscstring(const nsacstring_internal&) - source para
meters nsacstring_internal& readable operator= nscstring& operat...
...or=(const nscstring&) - source para
meters nscstring& str nsacstring_internal& operator=(char) - source para
meters char c nsacstring_internal& operator=(const char*) - source para
meters char* data nsacstring_internal& operator=(const nsacstring_internal&) - source para
meters nsacstring_internal& str nsacstring_internal& operator=(const nscsubstringtuple&) - source para
meters nscsubstringtuple& tuple get char* get() const - source returns the null-terminated string find print32 find(const nscstring&, prbool, print32, print32) const - source search for the given substring within this string.
...@return offset in string, or knotfound para
meters nscstring& astring prbool aignorecase print32 aoffset print32 acount print32 find(const char*, prbool, print32, print32) const - source para
meters char* astring prbool aignorecase print32 aoffset print32 acount rfind print32 rfind(const nscstring&, prbool, print32, print32) const - source this methods scans the string backwards, looking for the given string @param astring is substring to be sought in this @param aignorecase tells us whether or not to do caseless...
...And 25 more matches
nsDependentString
methods constructors void nsdependentstring(const prunichar*, const prunichar*) - source constructors para
meters prunichar* start prunichar* end void nsdependentstring(const prunichar*, pruint32) - source para
meters prunichar* data pruint32 length void nsdependentstring(const prunichar*) - source para
meters prunichar* data void nsdependentstring(const nsastring_internal&) - source para
meters nsastring_internal& str void nsdependentstring() - source assertvalid void assertvalid(...
...para
meters prunichar* data void rebind(const prunichar*, pruint32) - source para
meters prunichar* data pruint32 length void rebind(const prunichar*, const prunichar*) - source para
meters prunichar* start prunichar* end operator= nsstring& operator=(const nsstring&) - source para
meters nsstring& str nsastring_internal& operator=(prunichar) - source para
meters prunichar c nsastring_internal& operator=(const prunichar*) - source para
meters prunichar* data nsastring_internal& operator=(const nsastring_internal&) - source para
meters nsastring_internal& str nsastring_internal& operator=(const nssubstringtuple&) - sourc...
...e para
meters nssubstringtuple& tuple get prunichar* get() const - source returns the null-terminated string find print32 find(const nscstring&, prbool, print32, print32) const - source search for the given substring within this string.
...And 25 more matches
nsFixedCString
methods constructors void nsfixedcstring(char*, pruint32) - source @param data fixed-size buffer to be used by the string (the contents of this buffer may be modified by the string) @param storagesize the size of the fixed buffer @param length (optional) the length of the string already contained in the buffer para
meters char* data pruint32 storagesize void nsfixedcstring(char*, pruint32, pruint32) - source para
meters char* data pruint32 storagesize pruint32 length operator= nscstring& operator=(const nscstring&) - source para
meters nscstring& str nsacstring_internal& operator=(char) - source para
meters char c nsacstring_internal& operator=(const char*) - source para
meters char* data...
... nsacstring_internal& operator=(const nsacstring_internal&) - source para
meters nsacstring_internal& str nsacstring_internal& operator=(const nscsubstringtuple&) - source para
meters nscsubstringtuple& tuple get char* get() const - source returns the null-terminated string find print32 find(const nscstring&, prbool, print32, print32) const - source search for the given substring within this string.
...@return offset in string, or knotfound para
meters nscstring& astring prbool aignorecase print32 aoffset print32 acount print32 find(const char*, prbool, print32, print32) const - source para
meters char* astring prbool aignorecase print32 aoffset print32 acount rfind print32 rfind(const nscstring&, prbool, print32, print32) const - source this methods scans the string backwards, looking for the given string @param astring is substring to be sought in this @param aignorecase tells us whether or not to do caseless...
...And 25 more matches
nsPromiseFlatCString
methods constructors void nspromiseflatcstring(const nsacstring_internal&) - source para
meters nsacstring_internal& str void nspromiseflatcstring(const nscsubstringtuple&) - source para
meters nscsubstringtuple& tuple operator= nscstring& operator=(const nscstring&) - source para
meters nscstring& str nsacstring_internal& operator=(char) - source para
meters char c nsacstring_internal& operator=(const char*) - source para
meters char* data nsacstring_internal& ...
...operator=(const nsacstring_internal&) - source para
meters nsacstring_internal& str nsacstring_internal& operator=(const nscsubstringtuple&) - source para
meters nscsubstringtuple& tuple get char* get() const - source returns the null-terminated string find print32 find(const nscstring&, prbool, print32, print32) const - source search for the given substring within this string.
...@return offset in string, or knotfound para
meters nscstring& astring prbool aignorecase print32 aoffset print32 acount print32 find(const char*, prbool, print32, print32) const - source para
meters char* astring prbool aignorecase print32 aoffset print32 acount rfind print32 rfind(const nscstring&, prbool, print32, print32) const - source this methods scans the string backwards, looking for the given string @param astring is substring to be sought in this @param aignorecase tells us whether or not to do caseless...
...And 25 more matches
nsXPIDLString
class declaration nstxpidlstring extends nststring such that: (1) mdata can be null (2) objects of this type can be automatically cast to |const chart*| (3) getter_copies method is supported to adopt data allocated with ns_alloc, such as "out string" para
meters in xpidl.
... methods constructors void nsxpidlstring() - source void nsxpidlstring(const nsxpidlstring&) - source para
meters nsxpidlstring& str operator const prunichar* prunichar* operator const prunichar*() const - source operator[] prunichar operator[](print32) const - source para
meters print32 i prunichar operator[](pruint32) const - source para
meters pruint32 i operator= nsxpidlstring& operator=(const nsxpidlstring&) - source para
meters nsxpidlstring& str nsstring& operator=(c...
...onst nsstring&) - source para
meters nsstring& str nsastring_internal& operator=(prunichar) - source para
meters prunichar c nsastring_internal& operator=(const prunichar*) - source para
meters prunichar* data nsastring_internal& operator=(const nsastring_internal&) - source para
meters nsastring_internal& str nsastring_internal& operator=(const nssubstringtuple&) - source para
meters nssubstringtuple& tuple get prunichar* get() const - source returns the null-terminated string find print32 find(const nscstring&, prbool, print32, print32) const - source search for the given substring within this string.
...And 25 more matches
mozIStorageConnection
void asyncclose( in mozistoragecompletioncallback acallback optional ); para
meters acallback optional an optional callback handler to be executed when the connection is successfully closed.
... void begintransaction(); para
meters none.
... void begintransactionas( in print32 transactiontype ); para
meters transactiontype one of the transaction constants (mozistorageconnection.transaction_deferred, mozistorageconnection.transaction_immediate, mozistorageconnection.transaction_exclusive) clone() clones a database connection, optionally making the new connection read only.
...And 25 more matches
Places utilities for JavaScript
para
meters aspec a url string that needs fixup return type returns a correct nsiuri.
... getformattedstring() string getformattedstring(string key, array string params) para
meters key the string name to get from the string bundle params strings to substitute into the bundle at designated points see xul:stringbundle for more information.
... getstring() string getstring(string key) para
meters key the name of the string to get.
...And 24 more matches
NS_ConvertASCIItoUTF16
methods constructors void ns_convertasciitoutf16(const char*) - source para
meters char* acstring void ns_convertasciitoutf16(const char*, pruint32) - source para
meters char* acstring pruint32 alength void ns_convertasciitoutf16(const nsacstring_internal&) - source para
meters nsacstring_internal& acstring operator= nsautostring& operator=(const nsautostring&) - source para
meters nsautostring& str nsstring& operator=(const nsstring&) - source paramet...
...ers nsstring& str nsastring_internal& operator=(prunichar) - source para
meters prunichar c nsastring_internal& operator=(const prunichar*) - source para
meters prunichar* data nsastring_internal& operator=(const nsastring_internal&) - source para
meters nsastring_internal& str nsastring_internal& operator=(const nssubstringtuple&) - source para
meters nssubstringtuple& tuple get prunichar* get() const - source returns the null-terminated string find print32 find(const nscstring&, prbool, print32, print32) const - source search for the given substring within this string.
...@return offset in string, or knotfound para
meters nscstring& astring prbool aignorecase print32 aoffset print32 acount print32 find(const char*, prbool, print32, print32) const - source para
meters char* astring prbool aignorecase print32 aoffset print32 acount print32 find(const nsaflatstring&, print32, print32) const - source para
meters nsaflatstring& astring print32 aoffset print32 acount print32 find(const prunichar*, print32, print32) const - source para
meters prunichar* astring print32 aoffset print32 acount...
...And 24 more matches
NS_ConvertUTF8toUTF16
methods constructors void ns_convertutf8toutf16(const char*) - source para
meters char* acstring void ns_convertutf8toutf16(const char*, pruint32) - source para
meters char* acstring pruint32 alength void ns_convertutf8toutf16(const nsacstring_internal&) - source para
meters nsacstring_internal& acstring operator= nsautostring& operator=(const nsautostring&) - source para
meters nsautostring& str nsstring& operator=(const nsstring&) - source para
meter...
...s nsstring& str nsastring_internal& operator=(prunichar) - source para
meters prunichar c nsastring_internal& operator=(const prunichar*) - source para
meters prunichar* data nsastring_internal& operator=(const nsastring_internal&) - source para
meters nsastring_internal& str nsastring_internal& operator=(const nssubstringtuple&) - source para
meters nssubstringtuple& tuple get prunichar* get() const - source returns the null-terminated string find print32 find(const nscstring&, prbool, print32, print32) const - source search for the given substring within this string.
...@return offset in string, or knotfound para
meters nscstring& astring prbool aignorecase print32 aoffset print32 acount print32 find(const char*, prbool, print32, print32) const - source para
meters char* astring prbool aignorecase print32 aoffset print32 acount print32 find(const nsaflatstring&, print32, print32) const - source para
meters nsaflatstring& astring print32 aoffset print32 acount print32 find(const prunichar*, print32, print32) const - source para
meters prunichar* astring print32 aoffset print32 acount...
...And 24 more matches
nsAdoptingString
methods constructors void nsadoptingstring() - source void nsadoptingstring(prunichar*, pruint32) - source para
meters prunichar* str pruint32 length void nsadoptingstring(const nsadoptingstring&) - source para
meters nsadoptingstring& str operator= nsadoptingstring& operator=(const nsadoptingstring&) - source para
meters nsadoptingstring& str nsxpidlstring& operator=(const nsxpidlstring&) - source para
meters nsxpidlstring& str nsstring& operator=(const nsstring&) - source para
meters n...
...sstring& str nsastring_internal& operator=(prunichar) - source para
meters prunichar c nsastring_internal& operator=(const prunichar*) - source para
meters prunichar* data nsastring_internal& operator=(const nsastring_internal&) - source para
meters nsastring_internal& str nsastring_internal& operator=(const nssubstringtuple&) - source para
meters nssubstringtuple& tuple operator const prunichar* prunichar* operator const prunichar*() const - source operator[] prunichar operator[](print32) const - source para
meters print32 i prunichar operator[](pruint32) const - source para
meters pruint32 i get prunichar* get() const - source returns the null-terminated string find print32 find(const nscstring&, prbool, print32, print32) const - source ...
...@return offset in string, or knotfound para
meters nscstring& astring prbool aignorecase print32 aoffset print32 acount print32 find(const char*, prbool, print32, print32) const - source para
meters char* astring prbool aignorecase print32 aoffset print32 acount print32 find(const nsaflatstring&, print32, print32) const - source para
meters nsaflatstring& astring print32 aoffset print32 acount print32 find(const prunichar*, print32, print32) const - source para
meter...
...And 24 more matches
nsAutoString
methods constructors void nsautostring() - source constructors void nsautostring(prunichar) - source para
meters prunichar c void nsautostring(const prunichar*, pruint32) - source para
meters prunichar* data pruint32 length void nsautostring(const nsautostring&) - source para
meters nsautostring& str void nsautostring(const nsastring_internal&) - source para
meters nsastring_internal& str void nsautostring(const nssubstringtuple&) - source para
meters nssubstringtuple& tuple opera...
...tor= nsautostring& operator=(const nsautostring&) - source para
meters nsautostring& str nsstring& operator=(const nsstring&) - source para
meters nsstring& str nsastring_internal& operator=(prunichar) - source para
meters prunichar c nsastring_internal& operator=(const prunichar*) - source para
meters prunichar* data nsastring_internal& operator=(const nsastring_internal&) - source para
meters nsastring_internal& str nsastring_internal& operator=(const nssubstringtuple&) - source para
meters nssubstringtuple& tuple get prunichar* get() const - source returns the null-terminated string find print32 find(const nscstring&, prbool, print32, print32) const - source search for the given substring within this string.
...@return offset in string, or knotfound para
meters nscstring& astring prbool aignorecase print32 aoffset print32 acount print32 find(const char*, prbool, print32, print32) const - source para
meters char* astring prbool aignorecase print32 aoffset print32 acount print32 find(const nsaflatstring&, print32, print32) const - source para
meters nsaflatstring& astring print32 aoffset print32 acount print32 find(const prunichar*, print32, print32) const - source para
meters prunichar* astring print32 aoffset print32 acount...
...And 24 more matches
nsFixedString
methods constructors void nsfixedstring(prunichar*, pruint32) - source @param data fixed-size buffer to be used by the string (the contents of this buffer may be modified by the string) @param storagesize the size of the fixed buffer @param length (optional) the length of the string already contained in the buffer para
meters prunichar* data pruint32 storagesize void nsfixedstring(prunichar*, pruint32, pruint32) - source para
meters prunichar* data pruint32 storagesize pruint32 length operator= nsstring& operator=(const nsstring&) - source para
meters nsstring& str nsastring_internal& operator=(prunichar) - source para
meters prunichar c nsastring_internal& operator=(const prunichar*) - source ...
... para
meters prunichar* data nsastring_internal& operator=(const nsastring_internal&) - source para
meters nsastring_internal& str nsastring_internal& operator=(const nssubstringtuple&) - source para
meters nssubstringtuple& tuple get prunichar* get() const - source returns the null-terminated string find print32 find(const nscstring&, prbool, print32, print32) const - source search for the given substring within this string.
...@return offset in string, or knotfound para
meters nscstring& astring prbool aignorecase print32 aoffset print32 acount print32 find(const char*, prbool, print32, print32) const - source para
meters char* astring prbool aignorecase print32 aoffset print32 acount print32 find(const nsaflatstring&, print32, print32) const - source para
meters nsaflatstring& astring print32 aoffset print32 acount print32 find(const prunichar*, print32, print32) const - source para
meters prunichar* astring print32 aoffset print32 acount...
...And 24 more matches
nsPromiseFlatString
methods constructors void nspromiseflatstring(const nsastring_internal&) - source para
meters nsastring_internal& str void nspromiseflatstring(const nssubstringtuple&) - source para
meters nssubstringtuple& tuple operator= nsstring& operator=(const nsstring&) - source para
meters nsstring& str nsastring_internal& operator=(prunichar) - source para
meters prunichar c nsastring_internal& operator=(const prunichar*) - source para
meters prunichar* data nsastring_...
...internal& operator=(const nsastring_internal&) - source para
meters nsastring_internal& str nsastring_internal& operator=(const nssubstringtuple&) - source para
meters nssubstringtuple& tuple get prunichar* get() const - source returns the null-terminated string find print32 find(const nscstring&, prbool, print32, print32) const - source search for the given substring within this string.
...@return offset in string, or knotfound para
meters nscstring& astring prbool aignorecase print32 aoffset print32 acount print32 find(const char*, prbool, print32, print32) const - source para
meters char* astring prbool aignorecase print32 aoffset print32 acount print32 find(const nsaflatstring&, print32, print32) const - source para
meters nsaflatstring& astring print32 aoffset print32 acount print32 find(const prunichar*, print32, print32) const - source para
meters prunichar* astring print32 aoffset print32 acount...
...And 24 more matches
nsString
methods constructors void nsstring() - source constructors void nsstring(prunichar) - source para
meters prunichar c void nsstring(const prunichar*, pruint32) - source para
meters prunichar* data pruint32 length void nsstring(const nsstring&) - source para
meters nsstring& str void nsstring(const nssubstringtuple&) - source para
meters nssubstringtuple& tuple void nsstring(const nsastring_internal&) - source para
meters nsastring_internal& readable operator= nsstring& op...
...erator=(const nsstring&) - source para
meters nsstring& str nsastring_internal& operator=(prunichar) - source para
meters prunichar c nsastring_internal& operator=(const prunichar*) - source para
meters prunichar* data nsastring_internal& operator=(const nsastring_internal&) - source para
meters nsastring_internal& str nsastring_internal& operator=(const nssubstringtuple&) - source para
meters nssubstringtuple& tuple get prunichar* get() const - source returns the null-terminated string find print32 find(const nscstring&, prbool, print32, print32) const - source search for the given substring within this string.
...@return offset in string, or knotfound para
meters nscstring& astring prbool aignorecase print32 aoffset print32 acount print32 find(const char*, prbool, print32, print32) const - source para
meters char* astring prbool aignorecase print32 aoffset print32 acount print32 find(const nsaflatstring&, print32, print32) const - source para
meters nsaflatstring& astring print32 aoffset print32 acount print32 find(const prunichar*, print32, print32) const - source para
meters prunichar* astring print32 aoffset print32 acount...
...And 24 more matches
nsISessionStore
void deletetabvalue( in nsidomnode atab, in astring akey ); para
meters atab the tab for which to delete the value.
... void deletewindowvalue( in nsidomwindow awindow, in astring akey ); para
meters awindow the window in which to delete the value.
... nsidomnode duplicatetab( in nsidomwindow awindow, in nsidomnode atab ); para
meters awindow the window in which the duplicated tab will be created.
...And 23 more matches
nsIVariant
methods native code only!getasacstring acstring getasacstring(); para
meters none.
... violates the xpcom interface guidelines getasarray() nsresult getasarray( out pruint16 type, out nsiid iid, out pruint32 count, out voidptr ptr ); para
meters type the type of the array elements.
...(reference counted elements are not cloned, but their reference count is increased.) return value native code only!getasastring astring getasastring(); para
meters none.
...And 23 more matches
NS ConvertASCIItoUTF16 external
methods constructors void ns_convertasciitoutf16_external(const nsacstring&) - source para
meters nsacstring& astr void ns_convertasciitoutf16_external(const char*, pruint32) - source para
meters char* adata pruint32 alength get prunichar* get() const - source operator= nsstring_external& operator=(const nsstring_external&) - source para
meters nsstring_external& astri...
...ng nsastring& operator=(const nsastring&) - source para
meters nsastring& astring nsastring& operator=(const prunichar*) - source para
meters prunichar* aptr nsastring& operator=(prunichar) - source para
meters prunichar achar adopt void adopt(const prunichar*, pruint32) - source para
meters prunichar* adata pruint32 alength beginreading pruint32 beginreading(const prunichar**, const prunichar**) const - source returns the length, beginning, and end of a string in one operation.
... para
meters prunichar** begin prunichar** end prunichar* beginreading() const - source endreading prunichar* endreading() const - source charat prunichar charat(pruint32) const - source para
meters pruint32 apos operator[] prunichar operator[](pruint32) const - source para
meters pruint32 apos first prunichar first() const - source beginwriting pruint32 beginwriting(prunichar**, prunichar**, pruint32) - source get the length, begin writing, and optionally set the length of a string all in one operation.
...And 22 more matches
NS ConvertUTF8toUTF16 external
methods constructors void ns_convertutf8toutf16_external(const nsacstring&) - source para
meters nsacstring& astr void ns_convertutf8toutf16_external(const char*, pruint32) - source para
meters char* adata pruint32 alength get prunichar* get() const - source operator= nsstring_external& operator=(const nsstring_external&) - source para
meters nsstring_external& astrin...
...g nsastring& operator=(const nsastring&) - source para
meters nsastring& astring nsastring& operator=(const prunichar*) - source para
meters prunichar* aptr nsastring& operator=(prunichar) - source para
meters prunichar achar adopt void adopt(const prunichar*, pruint32) - source para
meters prunichar* adata pruint32 alength beginreading pruint32 beginreading(const prunichar**, const prunichar**) const - source returns the length, beginning, and end of a string in one operation.
... para
meters prunichar** begin prunichar** end prunichar* beginreading() const - source endreading prunichar* endreading() const - source charat prunichar charat(pruint32) const - source para
meters pruint32 apos operator[] prunichar operator[](pruint32) const - source para
meters pruint32 apos first prunichar first() const - source beginwriting pruint32 beginwriting(prunichar**, prunichar**, pruint32) - source get the length, begin writing, and optionally set the length of a string all in one operation.
...And 22 more matches
PromiseFlatString (External)
methods get prunichar* get() const - source operator= nsstring_external& operator=(const nsstring_external&) - source para
meters nsstring_external& astring nsastring& operator=(const nsastring&) - source para
meters nsastring& astring nsastring& operator=(const prunichar*) - source para
meters prunichar* aptr nsastring& operator=(prunichar) - source para
meters prunichar achar adopt ...
...void adopt(const prunichar*, pruint32) - source para
meters prunichar* adata pruint32 alength beginreading pruint32 beginreading(const prunichar**, const prunichar**) const - source returns the length, beginning, and end of a string in one operation.
... para
meters prunichar** begin prunichar** end prunichar* beginreading() const - source endreading prunichar* endreading() const - source charat prunichar charat(pruint32) const - source para
meters pruint32 apos operator[] prunichar operator[](pruint32) const - source para
meters pruint32 apos first prunichar first() const - source beginwriting pruint32 beginwriting(prunichar**, prunichar**, pruint32) - source get the length, begin writing, and optionally set the length of a string all in one operation.
...And 22 more matches
nsAutoString (External)
methods get prunichar* get() const - source operator= nsstring_external& operator=(const nsstring_external&) - source para
meters nsstring_external& astring nsastring& operator=(const nsastring&) - source para
meters nsastring& astring nsastring& operator=(const prunichar*) - source para
meters prunichar* aptr nsastring& operator=(prunichar) - source para
meters prunichar achar adopt ...
...void adopt(const prunichar*, pruint32) - source para
meters prunichar* adata pruint32 alength beginreading pruint32 beginreading(const prunichar**, const prunichar**) const - source returns the length, beginning, and end of a string in one operation.
... para
meters prunichar** begin prunichar** end prunichar* beginreading() const - source endreading prunichar* endreading() const - source charat prunichar charat(pruint32) const - source para
meters pruint32 apos operator[] prunichar operator[](pruint32) const - source para
meters pruint32 apos first prunichar first() const - source beginwriting pruint32 beginwriting(prunichar**, prunichar**, pruint32) - source get the length, begin writing, and optionally set the length of a string all in one operation.
...And 22 more matches
nsDependentString external
methods constructors void nsdependentstring_external() - source void nsdependentstring_external(const prunichar*, pruint32) - source para
meters prunichar* adata pruint32 alength rebind void rebind(const prunichar*, pruint32) - source para
meters prunichar* adata pruint32 alength get prunichar* get() const - source operator= nsstring_external& operator=(const nsstring_external&) - source para
meters ...
... nsstring_external& astring nsastring& operator=(const nsastring&) - source para
meters nsastring& astring nsastring& operator=(const prunichar*) - source para
meters prunichar* aptr nsastring& operator=(prunichar) - source para
meters prunichar achar adopt void adopt(const prunichar*, pruint32) - source para
meters prunichar* adata pruint32 alength beginreading pruint32 beginreading(const prunichar**, const prunichar**) const - source returns the length, beginning, and end of a string in one operation.
... para
meters prunichar** begin prunichar** end prunichar* beginreading() const - source endreading prunichar* endreading() const - source charat prunichar charat(pruint32) const - source para
meters pruint32 apos operator[] prunichar operator[](pruint32) const - source para
meters pruint32 apos first prunichar first() const - source beginwriting pruint32 beginwriting(prunichar**, prunichar**, pruint32) - source get the length, begin writing, and optionally set the length of a string all in one operation.
...And 22 more matches
nsDependentSubstring external
methods constructors void nsdependentsubstring_external() - source void nsdependentsubstring_external(const prunichar*, pruint32) - source para
meters prunichar astart pruint32 alength void nsdependentsubstring_external(const nsastring&, pruint32) - source para
meters nsastring astr pruint32 astartpos void nsdependentsubstring_external(const nsastring&, pruint32, pruint32) - source para
meters nsastring astr pruint32 astartpos pruint32 alength ...
... rebind void rebind(const prunichar*, pruint32) - source para
meters prunichar astart pruint32 alength beginreading pruint32 beginreading(const prunichar**, const prunichar**) const - source returns the length, beginning, and end of a string in one operation.
... para
meters prunichar* begin prunichar* end prunichar beginreading() const - source endreading prunichar endreading() const - source charat prunichar charat(pruint32) const - source para
meters pruint32 apos operator[] prunichar operator[](pruint32) const - source para
meters pruint32 apos first prunichar first() const - source beginwriting pruint32 beginwriting(prunichar**, prunichar**, pruint32) - source get the length, begin writing, and optionally set the length of a string all in one operation.
...And 22 more matches
nsString external
methods constructors void nsstring_external() - source void nsstring_external(const nsstring_external&) - source para
meters nsstring_external& astring void nsstring_external(const nsastring&) - source para
meters nsastring& areadable void nsstring_external(const prunichar*, pruint32) - source para
meters prunichar* adata pruint32 alength get prunichar* get() const - source operator= ...
... nsstring_external& operator=(const nsstring_external&) - source para
meters nsstring_external& astring nsastring& operator=(const nsastring&) - source para
meters nsastring& astring nsastring& operator=(const prunichar*) - source para
meters prunichar* aptr nsastring& operator=(prunichar) - source para
meters prunichar achar adopt void adopt(const prunichar*, pruint32) - source para
meters prunichar* adata pruint32 alength beginreading pruint32 beginreading(const prunichar**, const prunichar**) const - source returns the length, beginning, and end of a string in one operation.
... para
meters prunichar** begin prunichar** end prunichar* beginreading() const - source endreading prunichar* endreading() const - source charat prunichar charat(pruint32) const - source para
meters pruint32 apos operator[] prunichar operator[](pruint32) const - source para
meters pruint32 apos first prunichar first() const - source beginwriting pruint32 beginwriting(prunichar**, prunichar**, pruint32) - source get the length, begin writing, and optionally set the length of a string all in one operation.
...And 22 more matches
nsIDocShell
void addsessionstorage( in nsiprincipal principal, in nsidomstorage storage ); para
meters principal the principal to use for the new storage object.
...void addstate( in nsivariant adata, in domstring atitle, in domstring aurl, in boolean areplace ); para
meters adata the state object to pass to the popstate event.
... atitle gecko currently ignores this para
meter.
...And 22 more matches
nsIPromptService
note: some of these interface methods use out and inout para
meters.
... in c++, out para
meters are pointers.
... for javascript, they are extra work, as you can't use an out para
meter directly.
...And 22 more matches
nsISelectionController
void characterextendforbackspace(); para
meters none.
...void characterextendfordelete(); para
meters none.
...void charactermove( in boolean forward, in boolean extend ); para
meters forward forward or backward if pr_false.
...And 22 more matches
AddonManager
to do so many methods of the addonmanager take the add-on types as para
meters.
... callbacks installcallback() a callback that is passed a single addoninstall void installcallback( in addoninstall install ) para
meters install the addoninstall passed back from the asynchronous request installlistcallback() a callback that is passed an array of addoninstalls void installlistcallback( in addoninstall installs[] ) para
meters installs the array of addoninstalls passed back from the asynchronous request addoncallback() a callback that is passed a single addon void addoncallback( in addon addon ...
...) para
meters addon the addon passed back from the asynchronous request.
...And 21 more matches
nsDependentCSubstring external
methods constructors void nsdependentcsubstring_external() - source void nsdependentcsubstring_external(const char*, pruint32) - source para
meters char* astart pruint32 alength void nsdependentcsubstring_external(const nsacstring&, pruint32) - source para
meters nsacstring& astr pruint32 astartpos void nsdependentcsubstring_external(const nsacstring&, pruint32, pruint32) - source para
meters nsacstring& astr pruint32 astartpos pruint32 alength...
... rebind void rebind(const char*, pruint32) - source para
meters char* astart pruint32 alength beginreading pruint32 beginreading(const char**, const char**) const - source returns the length, beginning, and end of a string in one operation.
... para
meters char** begin char** end char* beginreading() const - source endreading char* endreading() const - source charat char charat(pruint32) const - source para
meters pruint32 apos operator[] char operator[](pruint32) const - source para
meters pruint32 apos first char first() const - source beginwriting pruint32 beginwriting(char**, char**, pruint32) - source get the length, begin writing, and optionally set the length of a string all in one operation.
...And 21 more matches
nsStringContainer (External)
para
meters prunichar** begin prunichar** end prunichar* beginreading() const - source endreading prunichar* endreading() const - source charat prunichar charat(pruint32) const - source para
meters pruint32 apos operator[] prunichar operator[](pruint32) const - source ...
... para
meters pruint32 apos first prunichar first() const - source beginwriting pruint32 beginwriting(prunichar**, prunichar**, pruint32) - source get the length, begin writing, and optionally set the length of a string all in one operation.
... para
meters prunichar** begin prunichar** end pruint32 newsize prunichar* beginwriting(pruint32) - source para
meters pruint32 <anonymous> endwriting prunichar* endwriting() - source setlength prbool setlength(pruint32) - source para
meters pruint32 alen length pruint32 length() const - source isempty prbool isempty() const - source setisvoid void setisvoid(prbool) - source para
meters prbool val ...
...And 21 more matches
nsIMsgDBView
void open(in nsimsgfolder folder, in nsmsgviewsorttypevalue sorttype, in nsmsgviewsortordervalue sortorder, in nsmsgviewflagstypevalue viewflags, out long count); para
meters folder the nsimsgfolder to open.
... void openwithhdrs(in nsisimpleenumerator aheaders, in nsmsgviewsorttypevalue asorttype, in nsmsgviewsortordervalue asortorder, in nsmsgviewflagstypevalue aviewflags, out long acount); para
meters aheaders a list of headers to open, arranged in an nsisimpleenumerator.
... void init(in nsimessenger amessengerinstance, in nsimsgwindow amsgwindow, in nsimsgdbviewcommandupdater acommandupdater); para
meters amessengerinstance amsgwindow acommandupdater sort() sorts the currently loaded messages.
...And 21 more matches
tabs/utils - Archive of obsolete content
para
meters tab : tab a xul tab element to activate.
... para
meters window : window a browser window.
... para
meters window : window a browser window.
...And 20 more matches
NS ConvertUTF16toUTF8 external
methods constructors void ns_convertutf16toutf8_external(const nsastring&) - source para
meters nsastring& astr void ns_convertutf16toutf8_external(const prunichar*, pruint32) - source para
meters prunichar* adata pruint32 alength get char* get() const - source operator= nscstring_external& operator=(const nscstring_external&) - source para
meters nscstring_external&...
... astring nsacstring& operator=(const nsacstring&) - source para
meters nsacstring& astring nsacstring& operator=(const char*) - source para
meters char* aptr nsacstring& operator=(char) - source para
meters char achar adopt void adopt(const char*, pruint32) - source para
meters char* adata pruint32 alength beginreading pruint32 beginreading(const char**, const char**) const - source returns the length, beginning, and end of a string in one operation.
... para
meters char** begin char** end char* beginreading() const - source endreading char* endreading() const - source charat char charat(pruint32) const - source para
meters pruint32 apos operator[] char operator[](pruint32) const - source para
meters pruint32 apos first char first() const - source beginwriting pruint32 beginwriting(char**, char**, pruint32) - source get the length, begin writing, and optionally set the length of a string all in one operation.
...And 20 more matches
NS LossyConvertUTF16toASCII external
methods constructors void ns_lossyconvertutf16toascii_external(const nsastring&) - source para
meters nsastring& astr void ns_lossyconvertutf16toascii_external(const prunichar*, pruint32) - source para
meters prunichar* adata pruint32 alength get char* get() const - source operator= nscstring_external& operator=(const nscstring_external&) - source para
meters nscstring_ext...
...ernal& astring nsacstring& operator=(const nsacstring&) - source para
meters nsacstring& astring nsacstring& operator=(const char*) - source para
meters char* aptr nsacstring& operator=(char) - source para
meters char achar adopt void adopt(const char*, pruint32) - source para
meters char* adata pruint32 alength beginreading pruint32 beginreading(const char**, const char**) const - source returns the length, beginning, and end of a string in one operation.
... para
meters char** begin char** end char* beginreading() const - source endreading char* endreading() const - source charat char charat(pruint32) const - source para
meters pruint32 apos operator[] char operator[](pruint32) const - source para
meters pruint32 apos first char first() const - source beginwriting pruint32 beginwriting(char**, char**, pruint32) - source get the length, begin writing, and optionally set the length of a string all in one operation.
...And 20 more matches
PromiseFlatCString (External)
methods get char* get() const - source operator= nscstring_external& operator=(const nscstring_external&) - source para
meters nscstring_external& astring nsacstring& operator=(const nsacstring&) - source para
meters nsacstring& astring nsacstring& operator=(const char*) - source para
meters char* aptr nsacstring& operator=(char) - source para
meters char achar adopt void adopt(con...
...st char*, pruint32) - source para
meters char* adata pruint32 alength beginreading pruint32 beginreading(const char**, const char**) const - source returns the length, beginning, and end of a string in one operation.
... para
meters char** begin char** end char* beginreading() const - source endreading char* endreading() const - source charat char charat(pruint32) const - source para
meters pruint32 apos operator[] char operator[](pruint32) const - source para
meters pruint32 apos first char first() const - source beginwriting pruint32 beginwriting(char**, char**, pruint32) - source get the length, begin writing, and optionally set the length of a string all in one operation.
...And 20 more matches
nsCAutoString (External)
methods get char* get() const - source operator= nscstring_external& operator=(const nscstring_external&) - source para
meters nscstring_external& astring nsacstring& operator=(const nsacstring&) - source para
meters nsacstring& astring nsacstring& operator=(const char*) - source para
meters char* aptr nsacstring& operator=(char) - source para
meters char achar adopt void adopt(con...
...st char*, pruint32) - source para
meters char* adata pruint32 alength beginreading pruint32 beginreading(const char**, const char**) const - source returns the length, beginning, and end of a string in one operation.
... para
meters char** begin char** end char* beginreading() const - source endreading char* endreading() const - source charat char charat(pruint32) const - source para
meters pruint32 apos operator[] char operator[](pruint32) const - source para
meters pruint32 apos first char first() const - source beginwriting pruint32 beginwriting(char**, char**, pruint32) - source get the length, begin writing, and optionally set the length of a string all in one operation.
...And 20 more matches
nsCString external
methods constructors void nscstring_external() - source void nscstring_external(const nscstring_external&) - source para
meters nscstring_external& astring void nscstring_external(const nsacstring&) - source para
meters nsacstring& areadable void nscstring_external(const char*, pruint32) - source para
meters char* adata pruint32 alength get char* get() const - source operator= nscs...
...tring_external& operator=(const nscstring_external&) - source para
meters nscstring_external& astring nsacstring& operator=(const nsacstring&) - source para
meters nsacstring& astring nsacstring& operator=(const char*) - source para
meters char* aptr nsacstring& operator=(char) - source para
meters char achar adopt void adopt(const char*, pruint32) - source para
meters char* adata pruint32 alength beginreading pruint32 beginreading(const char**, const char**) const - source returns the length, beginning, and end of a string in one operation.
... para
meters char** begin char** end char* beginreading() const - source endreading char* endreading() const - source charat char charat(pruint32) const - source para
meters pruint32 apos operator[] char operator[](pruint32) const - source para
meters pruint32 apos first char first() const - source beginwriting pruint32 beginwriting(char**, char**, pruint32) - source get the length, begin writing, and optionally set the length of a string all in one operation.
...And 20 more matches
nsDependentCString external
methods constructors void nsdependentcstring_external() - source void nsdependentcstring_external(const char*, pruint32) - source para
meters char* adata pruint32 alength rebind void rebind(const char*, pruint32) - source para
meters char* adata pruint32 alength get char* get() const - source operator= nscstring_external& operator=(const nscstring_external&) - source para
meters nscstring_extern...
...al& astring nsacstring& operator=(const nsacstring&) - source para
meters nsacstring& astring nsacstring& operator=(const char*) - source para
meters char* aptr nsacstring& operator=(char) - source para
meters char achar adopt void adopt(const char*, pruint32) - source para
meters char* adata pruint32 alength beginreading pruint32 beginreading(const char**, const char**) const - source returns the length, beginning, and end of a string in one operation.
... para
meters char** begin char** end char* beginreading() const - source endreading char* endreading() const - source charat char charat(pruint32) const - source para
meters pruint32 apos operator[] char operator[](pruint32) const - source para
meters pruint32 apos first char first() const - source beginwriting pruint32 beginwriting(char**, char**, pruint32) - source get the length, begin writing, and optionally set the length of a string all in one operation.
...And 20 more matches
nsLiteralCString (External)
methods rebind void rebind(const char*, pruint32) - source para
meters char* adata pruint32 alength get char* get() const - source operator= nscstring_external& operator=(const nscstring_external&) - source para
meters nscstring_external& astring nsacstring& operator=(const nsacstring&) - source para
meters nsacstring& astring ...
... nsacstring& operator=(const char*) - source para
meters char* aptr nsacstring& operator=(char) - source para
meters char achar adopt void adopt(const char*, pruint32) - source para
meters char* adata pruint32 alength beginreading pruint32 beginreading(const char**, const char**) const - source returns the length, beginning, and end of a string in one operation.
... para
meters char** begin char** end char* beginreading() const - source endreading char* endreading() const - source charat char charat(pruint32) const - source para
meters pruint32 apos operator[] char operator[](pruint32) const - source para
meters pruint32 apos first char first() const - source beginwriting pruint32 beginwriting(char**, char**, pruint32) - source get the length, begin writing, and optionally set the length of a string all in one operation.
...And 20 more matches
nsLiteralString (External)
methods rebind void rebind(const char*, pruint32) - source para
meters char* adata pruint32 alength get char* get() const - source operator= nscstring_external& operator=(const nscstring_external&) - source para
meters nscstring_external& astring nsacstring& operator=(const nsacstring&) - source para
meters nsacstring& astring ...
... nsacstring& operator=(const char*) - source para
meters char* aptr nsacstring& operator=(char) - source para
meters char achar adopt void adopt(const char*, pruint32) - source para
meters char* adata pruint32 alength beginreading pruint32 beginreading(const char**, const char**) const - source returns the length, beginning, and end of a string in one operation.
... para
meters char** begin char** end char* beginreading() const - source endreading char* endreading() const - source charat char charat(pruint32) const - source para
meters pruint32 apos operator[] char operator[](pruint32) const - source para
meters pruint32 apos first char first() const - source beginwriting pruint32 beginwriting(char**, char**, pruint32) - source get the length, begin writing, and optionally set the length of a string all in one operation.
...And 20 more matches
Namespaces crash course - SVG: Scalable Vector Graphics
<svg xmlns="http://www.w3.org/2000/svg"> <!-- more tags here --> </svg> the namespace declaration is provided by the xmlns para
meter.
... this para
meter says that the <svg> element and its child elements belong to whichever xml dialect has the namespace name 'http://www.w3.org/2000/svg' which is, of course, svg.
... <html xmlns="http://www.w3.org/1999/xhtml"> <body> <!-- some xhtml tags here --> <svg xmlns="http://www.w3.org/2000/svg" width="300px" height="200px"> <!-- some svg tags here --> </svg> <!-- some xhtml tags here --> </body> </html> in this example the xmlns para
meter on the root <html> element declares the default namespace to be xhtml.
...And 20 more matches
nsACString (External)
para
meters char** begin char** end char* beginreading() const - source endreading char* endreading() const - source charat char charat(pruint32) const - source para
meters pruint32 apos operator[] char operator[](pruint32) const - source para
meters prui...
... para
meters char** begin char** end pruint32 newsize char* beginwriting(pruint32) - source para
meters pruint32 alen endwriting char* endwriting() - source setlength prbool setlength(pruint32) - source para
meters pruint32 alen length pruint32 length(...
...) const - source isempty prbool isempty() const - source setisvoid void setisvoid(prbool) - source para
meters prbool val isvoid prbool isvoid() const - source assign void assign(const nsacstring&) - source para
meters nsacstring& astring void assign(const char*, pruint32) - source para
meters char* adata pruint32 alength void assign(char) - source para
meters char achar assignliteral void assignliteral(const char*) - source para
meters char* adata operator= nsacstring& operator=(const nsacstring&) ...
...And 19 more matches
nsCStringContainer (External)
para
meters char* begin char* end char beginreading() const - source endreading char endreading() const - source charat char charat(pruint32) const - source para
meters pruint32 apos operator[] char operator[](pruint32) const - source para
meters pruint32...
... para
meters char* begin char* end pruint32 newsize char beginwriting(pruint32) - source para
meters pruint32 alen endwriting char endwriting() - source setlength prbool setlength(pruint32) - source para
meters pruint32 alen length pruint32 length() co...
...nst - source isempty prbool isempty() const - source setisvoid void setisvoid(prbool) - source para
meters prbool val isvoid prbool isvoid() const - source assign void assign(const nsacstring&) - source para
meters nsacstring astring void assign(const char*, pruint32) - source para
meters char adata pruint32 alength void assign(char) - source para
meters char achar assignliteral void assignliteral(const char*) - source para
meters char adata operator= nsacstring operator=(const nsacstring&) - source...
...And 19 more matches
nsIContentPrefService2
domain para
meters many methods of this interface accept a "domain" para
meter.
...private-browsing context para
meters many methods also accept a "context" para
meter.
... this para
meter relates to private browsing and determines the kind of storage that a method uses, either the usual permanent storage or temporary storage set() aside for private browsing sessions.
...And 19 more matches
nsIEditorSpellCheck
void addwordtodictionary( in wstring word ); para
meters word the word to add to the current personal dictionary.
...boolean canspellcheck(); para
meters none.
...void checkcurrentdictionary(); para
meters none.
...And 19 more matches
Component; nsIPrefBranch
for example, if your observer is registered with addobserver("bar.", ...) on a branch with root "foo.", modifying the preference "foo.bar.baz" will trigger the observer, and adata para
meter will be "bar.baz".
... void addobserver( in string adomain, in nsiobserver aobserver, in boolean aholdweak ); para
meters adomain the preference on which to listen for changes.
... void clearuserpref( in string aprefname ); para
meters aprefname the preference to be cleared.
...And 19 more matches
nsIXSLTProcessor
to create an instance, use: var xsltprocessor = components.classes["@mozilla.org/document-transformer;1?type=xslt"] .createinstance(components.interfaces.nsixsltprocessor); method overview void clearpara
meters(); nsivariant getpara
meter(in domstring namespaceuri, in domstring localname); void importstylesheet(in nsidomnode style); void removepara
meter(in domstring namespaceuri, in domstring localname); void reset(); void setpara
meter(in domstring namespaceuri, in domstring localname, in nsivariant value); nsidomdocument transformtodocument(in nsidomnode source); nsidomdocumentfragment tr...
...ansformtofragment(in nsidomnode source, in nsidomdocument output); methods clearpara
meters() removes all set para
meters from this nsixsltprocessor.
... this will make the processor use the default-value for all para
meters as specified in the stylesheet.
...And 19 more matches
Drawing and Event Handling - Plugins
eft corner */ uint32 y; /* relative to a netscape page */ uint32 width; /* maximum window size */ uint32 height; nprect cliprect; /* clipping rectangle in port coordinates */ #ifdef xp_unix void * ws_info; /* platform-dependent additional data */ #endif /* xp_unix */ npwindowtype type; /* whether this is a window or a drawable */ } npwindow; the window para
meter is a platform-specific handle to a native window element in the browser window hierarchy on windows and unix.
... void npp_print(npp instance, npprint *printinfo); the instance para
meter represents the current plug-in.
... the printinfo para
meter determines the print mode.
...And 19 more matches
Streams - Plugins
e browser can create a stream for several different types of data: for the file specified in the data attribute of the object element or the src attribute of the embed element for a data file for a full-page instance the npp_newstream method has the following syntax: nperror npp_newstream(npp instance, npmimetype type, npstream *stream, npbool seekable, uint16* stype); the instance para
meter refers to the plug-in instance receiving the stream; the type para
meter represents the stream's mime type.
... the stream para
meter is a pointer to the new stream, which is valid until the stream is destroyed.
... the seekable para
meter specifies whether the stream is seekable (true) or not (false).
...And 19 more matches
Proxy Auto-Configuration (PAC) file - HTTP
} syntax function findproxyforurl(url, host) para
meters url the url being accessed.
...the port number is not included in this para
meter.
... the pac file is named proxy.pac command line: pactester -p ~/pacparser-master/tests/proxy.pac -u http://www.mozilla.org (passes the host para
meter www.mozilla.org and the url para
meter http://www.mozilla.org) isplainhostname() syntax isplainhostname(host) para
meters host the hostname from the url (excluding port number).
...And 19 more matches
nsAString (External)
para
meters prunichar** begin prunichar** end prunichar* beginreading() const - source endreading prunichar* endreading() const - source charat prunichar charat(pruint32) const - source para
meters pruint32 apos operator[] prunichar operator[](pruint32) const - source para
meters pruint32 apos first prunichar first() const - source beginwriting pruint32 beginwriting(prunichar...
...para
meters prunichar** begin prunichar** end pruint32 newsize prunichar* beginwriting(pruint32) - source para
meters pruint32 <anonymous> endwriting prunichar* endwriting() - source setlength prbool setlength(pruint32) - source para
meters pruint32 alen length pruint32 length() const - source isempty prbool isempty() const - source setisvoid void setisvoid(prbool) - source para
meters prbool val isvoid prbool isvoid() const - source assign void assign(const nsa...
...string&) - source para
meters nsastring& astring void assign(const prunichar*, pruint32) - source para
meters prunichar* adata pruint32 alength void assign(prunichar) - source para
meters prunichar achar assignliteral void assignliteral(const char*) - source para
meters char* astr operator= nsastring& operator=(const nsastring&) - source para
meters nsastring& astring nsastring& operator=(const prunichar*) - source para
meters prunichar* aptr nsastring& operator=(prunichar) - source para
meters prunichar achar replace void replace(pruint32, pruint32, const prunichar*, pruint32) - source para
meters pruint32 cutstart pruint32 cutlength prunichar* data pruint32 length void replace(pruint32, pruint32, prunichar) - source para
meters pruint32 cutstart pruint32 c...
...And 18 more matches
Drawing graphics - Learn web development
this is done using the htmlcanvaselement.getcontext() method, which for basic usage takes a single string as a para
meter representing the type of context you want to retrieve.
...add the following lines at the bottom of your javascript: ctx.fillstyle = 'rgb(0, 0, 0)'; ctx.fillrect(0, 0, width, height); here we are setting a fill color using the canvas' fillstyle property (this takes color values just like css properties do), then drawing a rectangle that covers the entire area of the canvas with thefillrect method (the first two para
meters are the coordinates of the rectangle's top left hand corner; the last two are the width and height you want the rectangle drawn at — we told you those width and height variables would be useful)!
...its top left corner is 50 pixels away from the top and left of the canvas edge (as defined by the first two para
meters), and it is 100 pixels wide and 150 pixels tall (as defined by the third and fourth para
meters).
...And 17 more matches
NSS PKCS11 Functions
syntax #include "secmod.h" extern secmodmodule *secmod_loadusermodule(char *modulespec, secmodmodule *parent, prbool recurse); para
meters this function has the following para
meters: modulespec is a pkcs #11 modulespec.
...nss para
meters may be specified in module specs used by secmod_loadusermodule.
...syntax #include "secmod.h" extern secstatus secmod_unloadusermodule(secmodmodule *module); para
meters this function has the following para
meters: module is the module to be unloaded.
...And 17 more matches
Index
this is useful as a para
meter type, or a temporal local variable for it.
...these structures wrap para
meters that are passed to the finalizers removing most of explicit dependencies on jscontext in the finalization code.
...if prop is non-null, it must come from the *propp out para
meter of a prior jsobjectops.defineproperty or jsobjectops.lookupproperty call.
...And 17 more matches
IAccessibleTable2
[propget] hresult caption( [out] iunknown accessible ); para
meters accessible if the table has a caption then a reference to it is returned, else a null pointer is returned.
...[propget] hresult cellat( [in] long row, [in] long column, [out] iunknown cell ); para
meters row the 0 based row index for which to retrieve the cell.
...[propget] hresult columndescription( [in] long column, [out] bstr description ); para
meters column the 0 based index of the column for which to retrieve the description.
...And 17 more matches
nsIAccessibleTable
nsiaccessible getcellat( in long rowindex, in long columnindex ); para
meters rowindex the row index of the cell.
... long getcellindexat( in long rowindex, in long columnindex ); para
meters rowindex the row index of the cell.
... astring getcolumndescription( in long columnindex ); para
meters columnindex the column index.
...And 17 more matches
nsILoginManager
void addlogin( in nsilogininfo alogin ); para
meters alogin the login to store.
... nsiautocompleteresult autocompletesearch( in astring asearchstring, in nsiautocompleteresult apreviousresult, in nsidomhtmlinputelement aelement ); para
meters asearchstring missing description apreviousresult missing description aelement missing description return value missing description countlogins() returns the number of logins matching the specified criteria.
... unsigned long countlogins( in astring ahostname, in astring aactionurl, in astring ahttprealm ); para
meters ahostname the hostname to which to restrict searches, formatted as a url.
...And 17 more matches
nsIMessenger
void setdisplaycharset(in acstring acharset); para
meters acharset the character set to use.
... void setwindow(in nsidomwindow awin, in nsimsgwindow amsgwindow); para
meters awin the window to set as the window for the messaging session.
... void openurl(in acstring aurl); para
meters aurl the url to open.
...And 17 more matches
nsIMsgIncomingServer
void clearallvalues(); para
meters none.
...void cleartemporaryreturnreceiptsfilter(); para
meters none.
... exceptions thrown missing exception missing description closecachedconnections() void closecachedconnections(); para
meters none.
...And 17 more matches
nsINavHistoryService
astring getpagetitle( in nsiuri auri ); para
meters auri the page whose title needs to be retrieved.
... void markpageasfollowedbookmark( in nsiuri auri ); para
meters auri the page that is to be marked as followed by a bookmark.
...this will cause the transition type of the next visit of the url to be marked as "typed." void markpageastyped( in nsiuri auri ); para
meters auri the page that is to be marked as typed by the user.
...And 17 more matches
Background audio processing using AudioWorklet - Web APIs
set up any audio para
meters the audioworkletnode needs, or that you wish to configure.
... basic code framework the barest framework of an audio processor class looks like this: class myaudioprocessor extends audioworkletprocessor { constructor() { super(); } process(inputlist, outputlist, para
meters) { /* using the inputs (or not, as needed), write the output into each of the outputs */ return true; } }; registerprocessor("my-audio-processor", myaudioprocessor); after the implementation of the processor comes a call to the global function registerprocessor(), which is only available within the scope of the audio context's audioworklet, which is the invoker of the proces...
... process(inputlist, outputlist, para
meters) { const sourcelimit = math.min(inputlist.length, outputlist.length); for (let inputnum = 0; inputnum < sourcelimit; inputnum++) { let input = inputlist[inputnum]; let output = outputlist[inputnum]; let channelcount = math.min(input.length, output.length); for (let channelnum = 0; channelnum < channelcount; channelnum++) { let samplecount = input[channelnum].length; ...
...And 17 more matches
Index - Archive of obsolete content
the first para
meter is the nsidomwindow you just retrieved, the second is the editor type you want to create, and the third is whether you want the window editable immediately or when the document is done loading.
...the first three para
meters will be applied to every request.
... the "escrowauthoritycert" para
meter will only be used for requests that pertain to a key that is being escrowed.
...And 16 more matches
XPCOMUtils.jsm
_xpcom_categories: [{ // each object in the array specifies the para
meters to pass to // nsicategorymanager.addcategoryentry().
...when set to true, and only if 'value' // is not specified, the concatenation of the string "service," and the // object's contractid is passed as avalue para
meter of addcategoryentry.
... function definelazygetter( aobject, aname, alambda ); para
meters aobject the object into which to add the new lazy getter function.
...And 16 more matches
IAccessibleText
hresult addselection( [in] long startoffset, [in] long endoffset ); para
meters startoffset starting offset ( 0 based).
...[propget] hresult attributes( [in] long offset, [out] long startoffset, [out] long endoffset, [out] bstr textattributes ); para
meters offset text() offset (0 based) startoffset the starting offset of the character range over which all text() attributes match those of offset.
...[propget] hresult caretoffset( [out] long offset ); para
meters offset the returned offset is relative to the text() represented by this object.
...And 16 more matches
nsIDownloadManager
nsidownload adddownload( in short adownloadtype, in nsiuri asource, in nsiuri atarget, in astring adisplayname, in nsimimeinfo amimeinfo, in prtime astarttime, in nsilocalfile atempfile, in nsicancelable acancelable, in boolean aisprivate ); para
meters adownloadtype the download type for the transfer.
...this para
meter is optional.
... void addlistener( in nsidownloadprogresslistener alistener ); para
meters alistener the nsidownloadprogresslistener object to receive status information from the download manager.
...And 16 more matches
nsILoginManagerStorage
void addlogin( in nsilogininfo alogin ); para
meters alogin the login to add to the login storage.
...unsigned long countlogins( in astring ahostname, in astring aactionurl, in astring ahttprealm ); para
meters ahostname the hostname to which to restrict the search.
...void findlogins( out unsigned long count, in astring ahostname, in astring aactionurl, in astring ahttprealm, [retval, array, size_is(count)] out nsilogininfo logins ); para
meters count return in this para
meter the number of matching logins found by the search.
...And 16 more matches
nsIMsgDBHdr
(new in 3.1?) methods getproperty() astring getproperty(in string propertyname); para
meters propertyname the name of the property to retrieve.
... void setproperty(in string propertyname, in astring propertystr); para
meters propertyname the name of the property to set.
... setstringproperty() void setstringproperty(in string propertyname, in string propertyvalue); para
meters propertyname the name of the property to set.
...And 16 more matches
nsINavHistoryResultObserver
void batching( in boolean atogglemode ); para
meters atogglemode specify true to start batch mode or false to finish the batch.
... void containerclosed( in nsinavhistorycontainerresultnode acontainernode ); para
meters acontainernode the container node which was closed.
... void containeropened( in nsinavhistorycontainerresultnode acontainernode ); para
meters acontainernode the container node which was opened.
...And 16 more matches
Storage
bind para
meters to a statement as necessary.
...v = mdbconn->executesimplesql(ns_literal_cstring("create temp table table_name (column_name integer)")); ns_ensure_success(rv, rv); results to be returned however, if you need to get results back, you should create the statement with the mozistorageconnection.createstatement() api like this in javascript: var statement = dbconn.createstatement("select * from table_name where column_name = :para
meter"); this example uses a named placeholder called "para
meter" to be bound later (described in binding para
meters).
... similarly, the c++ looks like this: nscomptr<mozistoragestatement> statement; rv = dbconn->createstatement(ns_literal_cstring("select * from table_name where column_name = ?1"), getter_addrefs(statement)); ns_ensure_success(rv, rv); this example uses the numbered placeholder indexed by zero for a para
meter to be bound later (described in binding para
meters).
...And 16 more matches
Codecs used by WebRTC - Web media technologies
special para
meter support requirements avc offers a wide array of para
meters for controlling optional values.
... in order to improve reliability of webrtc media sharing across multiple platforms and browsers, it's required that webrtc endpoints that support avc handle certain para
meters in specific ways.
... sometimes this simply means a para
meter must (or must not) be supported.
...And 16 more matches
lang/functional - Archive of obsolete content
this) as the first para
meter, followed by any para
meters passed into the method.
... let { method } = require("sdk/lang/functional"); let mynumber = { times: method(times), add: method(add), number: 0 }; function times (target, x) { return target.number *= x; } function add (target, x) { return target.number += x; } console.log(mynumber.number); // 0 mynumber.add(10); // 10 mynumber.times(2); // 20 mynumber.add(3); // 23 para
meters lambda : function the function to be wrapped and returned.
... let { defer } = require("sdk/lang/functional"); let fn = defer(function myevent (event, value) { console.log(event + " : " + value); }); fn("click", "#home"); console.log("done"); // this will print 'done' before 'click : #home' since // we deferred the execution of the wrapped `myevent` // function, making it non-blocking and executing on the // next event loop para
meters fn : function the function to be deferred.
...And 15 more matches
sslcrt.html
syntax #include <cert.h> secstatus cert_verifycertnow( certcertdbhandle *handle, certcertificate *cert, prbool checksig, seccertusage certusage, void *wincx); para
meters this function has the following para
meters: handle a pointer to the certificate database handle.
...some of the pk11 functions require a pin argument (see ssl_setpkcs11pinarg for details), which must be specified in the wincx para
meter.
... to obtain the value to pass in the wincx para
meter, call ssl_revealpinarg.
...And 15 more matches
Mozilla internal string guide
functions taking strings as para
meters should generally take one of these four types.
...this class corresponds to the xpidl astring para
meter type.
... str.assign(reversedstr); } as function para
meters for methods which are exposed across modules, use nsastring references to pass strings.
...And 15 more matches
Index
27 components.results xpcom:language bindings, xpconnect components.results is a read-only object whose properties are the names listed as the first para
meters of the macros in js/xpconnect/src/xpc.msg (also at table of errors), with the value of each corresponding to that constant's value.
... 92 working with out para
meters add-ons, extensions, xpcom:language bindings, xpconnect no summary!
... 205 mozistoragebindingparams interfaces, interfaces:scriptable, storage the mozistoragebindingparams interface is used to bind values to para
meters prior to calling mozistoragestatement.executeasync().
...And 15 more matches
IAccessible2
[propget] hresult attributes( [out] bstr attributes ); para
meters attributes return value s_false returned if there is nothing to return, [out] value is null.
...[propget] hresult extendedrole( [out] bstr extendedrole ); para
meters extendedrole return value s_false if there is nothing to return, [out] value is null.
...[propget] hresult extendedstates( [in] long maxextendedstates, [out, size_is(,maxextendedstates), length_is(, nextendedstates)] bstr extendedstates, [out] long nextendedstates ); para
meters maxextendedstates this para
meter is ignored.
...And 15 more matches
inIDOMUtils
nsiarray getbindingurls( in nsidomelement aelement ); para
meters aelement a dom element to retrieve the bindings of.
... nsidomnodelist getchildrenfornode( in nsidomnode anode, in boolean ashowinganonymouscontent ); para
meters anode a dom node for which to retrieve the style nodes.
... unsigned long long getcontentstate( in nsidomelement aelement ); para
meters aelement a dom element to retrieve the content states of.
...And 15 more matches
mozIStorageBindingParams
the mozistoragebindingparams interface is used to bind values to para
meters prior to calling mozistoragestatement.executeasync().
... void bindbyindex( in unsigned long aindex, in nsivariant avalue ); para
meters aindex the zero-based numerical index for the para
meter to be bound.
... void bindblobbyindex( in unsigned long aindex, [array, const, size_is(avaluesize)] in octet avalue, in unsigned long avaluesize ); para
meters aindex the zero-based numerical index for the para
meter to be bound.
...And 15 more matches
nsIContentViewer
void clearhistoryentry(); para
meters none.
...void close( in nsishentry historyentry ); para
meters historyentry the session history entry for the content viewer.
... destroy() void destroy(); para
meters none.
...And 15 more matches
nsINavHistoryResultViewer
note: most methods in this interface were renamed in gecko 1.9.2, and others have slightly different para
meter lists.
... void containerclosed( in nsinavhistorycontainerresultnode acontainernode ); para
meters acontainernode the container node whose state changed.
... void containeropened( in nsinavhistorycontainerresultnode acontainernode ); para
meters acontainernode the container node whose state changed.
...And 15 more matches
LiveConnect Overview - Archive of obsolete content
there are cases where liveconnect will fail to load a class, and you will need to manually load it like this: var widgetry = java.lang.thread.currentthread().getcontextclassloader().loadclass("org.mywidgets.widgetry"); in javascript 1.3 and earlier, javaclass objects are not automatically converted to instances of java.lang.class when you pass them as para
meters to java methods—you must create a wrapper around an instance of java.lang.class.
... specify the location of .jar or .zip file when you compile by using the -classpath command line para
meter.
...to do so, you must define the corresponding formal para
meter of the method to be of type jsobject.
...And 14 more matches
Starting WebLock
the method at the core of this interface is observe: void observe(in nsisupports asubject, in string atopic, in wstring adata); there aren't really any restrictions on what the three para
meters (asubject, atopic and adata) may represent.
... these para
meters are defined according to the event being observed.
...these are also para
meters in the nsimodule implementation in xxx what is example 1?
...And 14 more matches
nsIAppShellService
void closetoplevelwindow( in nsixulwindow awindow ); para
meters awindow a window.
... void createhiddenwindow( in nsiappshell aappshell ); para
meters aappshell a widget "appshell" (event processor) to associate with the new window.
... boolean createstartupstate( in long awindowwidth, in long awindowheight ); para
meters awindowwidth the width to make the initial window(s) opened.
...And 14 more matches
nsIWindowMediator
void addlistener( in nsiwindowmediatorlistener alistener ); para
meters alistener the listener to register.
...for that reason this interface requires only objects one step removed from the native window (nsiwidgets), and its implementation must be very understanding of what may be completely invalid pointers in those para
meters.
... boolean calculatezposition( in nsixulwindow inwindow, in unsigned long inposition, in nsiwidget inbelow, out unsigned long outposition, out nsiwidget outbelow ); para
meters inwindow the window in question.
...And 14 more matches
lang/type - Archive of obsolete content
let { isundefined } = require('sdk/lang/type'); var foo; isundefined(foo); // true isundefined(0); // false para
meters value : mixed the variable to check.
... let { isnull } = require('sdk/lang/type'); isnull(null); // true isnull(false); // false para
meters value : mixed the variable to check.
... let { isstring } = require('sdk/lang/type'); isstring('my string'); // true isstring(100); // false isstring('100'); // true para
meters value : mixed the variable to check.
...And 13 more matches
nsDependentCSubstring
methods constructors void nsdependentcsubstring(const nsacstring_internal&, pruint32, pruint32) - source para
meters nsacstring_internal& str pruint32 startpos pruint32 length void nsdependentcsubstring(const char*, const char*) - source para
meters char* start char* end void nsdependentcsubstring(const nsreadingiterator<char>&, const nsreadingiterator<char>&) - source para
meters nsreadingiterator<char>& start nsreadingiterator<char>& end void nsdependentcsubstring() - source rebind void ...
...rebind(const nsacstring_internal&, pruint32, pruint32) - source para
meters nsacstring_internal& <anonymous> pruint32 startpos pruint32 length void rebind(const char*, const char*) - source para
meters char* start char* end beginreading char* beginreading() const - source reading iterators nsreadingiterator<char>& beginreading(nsreadingiterator<char>&) const - source deprecated reading iterators para
meters nsreadingiterator<char>& iter char*& beginreading(const char*&) const - source para
meters char*& iter endreading char* endreading() const - source nsreadingiterator<char>& endreading(nsreadingiterator<char>&) const - source para
meters nsreadingiterator<char>& iter char*& endreading(const char*&) const - source para
meters char*& iter beginwrit...
...ing char* beginwriting() - source writing iterators nswritingiterator<char>& beginwriting(nswritingiterator<char>&) - source deprecated writing iterators para
meters nswritingiterator<char>& iter char*& beginwriting(char*&) - source para
meters char*& iter endwriting char* endwriting() - source nswritingiterator<char>& endwriting(nswritingiterator<char>&) - source para
meters nswritingiterator<char>& iter char*& endwriting(char*&) - source para
meters char*& iter data char* data() const - source accessors length pruint32 length() const - source isempty prbool isempty() const - source isvoid prbool isvoid() const - source isterminated prbool isterminated() const - source charat char charat(pruint32) const - source paramet...
...And 13 more matches
nsDependentSubstring
methods constructors void nsdependentsubstring(const nsastring_internal&, pruint32, pruint32) - source para
meters nsastring_internal& str pruint32 startpos pruint32 length void nsdependentsubstring(const prunichar*, const prunichar*) - source para
meters prunichar* start prunichar* end void nsdependentsubstring(const nsreadingiterator<short unsigned int>&, const nsreadingiterator<short unsigned int>&) - source para
meters nsreadingiterator<short unsigned int>& start nsreadingiterator<short unsign...
...ed int>& end void nsdependentsubstring() - source rebind void rebind(const nsastring_internal&, pruint32, pruint32) - source para
meters nsastring_internal& <anonymous> pruint32 startpos pruint32 length void rebind(const prunichar*, const prunichar*) - source para
meters prunichar* start prunichar* end beginreading prunichar* beginreading() const - source reading iterators nsreadingiterator<short unsigned int>& beginreading(nsreadingiterator<short unsigned int>&) const - source deprecated reading iterators para
meters nsreadingiterator<short unsigned int>& iter prunichar*& beginreading(const prunichar*&) const - source para
meters prunichar*& iter endreading prunichar* endreading() const - source nsreadingiterator<short unsigned int>& endreading(nsre...
...adingiterator<short unsigned int>&) const - source para
meters nsreadingiterator<short unsigned int>& iter prunichar*& endreading(const prunichar*&) const - source para
meters prunichar*& iter beginwriting prunichar* beginwriting() - source writing iterators nswritingiterator<short unsigned int>& beginwriting(nswritingiterator<short unsigned int>&) - source deprecated writing iterators para
meters nswritingiterator<short unsigned int>& iter prunichar*& beginwriting(prunichar*&) - source para
meters prunichar*& iter endwriting prunichar* endwriting() - source nswritingiterator<short unsigned int>& endwriting(nswritingiterator<short unsigned int>&) - source para
meters nswritingiterator<short unsigned int>& iter prunichar*& endwriting(prunichar*&) - source ...
...And 13 more matches
nsIFaviconService
void addfailedfavicon( in nsiuri afaviconuri ); para
meters afaviconuri the uri of an icon in the favicon service.
...void expireallfavicons(); para
meters none.
...void getfavicondata( in nsiuri afaviconuri, out autf8string amimetype, out unsigned long adatalen, optional from gecko 2.0 [array,retval,size_is(adatalen)] out octet adata ); para
meters afaviconuri uri of the favicon whose data is being read.
...And 13 more matches
nsILocalFile
constants constant value description delete_on_close 0x80000000 optional para
meter used by opennsprfiledesc().
... void appendrelativenativepath( in acstring relativefilepath ); para
meters relativefilepath a native relative path.
... void appendrelativepath( in astring relativefilepath ); para
meters relativefilepath a native relative path.
...And 13 more matches
nsIPluginHost
nsifile createtempfiletopost( in string apostdataurl ); para
meters apostdataurl return value native code only!createtmpfiletopost obsolete since gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1)this feature is obsolete.
... void createtmpfiletopost( in string apostdataurl, out string atmpfilename ); para
meters apostdataurl atmpfilename native code only!deletepluginnativewindow deletes plugin native window object created by newpluginnativewindow().
... void deletepluginnativewindow( in nspluginnativewindowptr apluginnativewindow ); para
meters apluginnativewindow native code only!destroy void destroy(); para
meters none.
...And 13 more matches
nsISHEntry
void addchildshell( in nsidocshelltreeitem shell ); para
meters shell childshellat() nsidocshelltreeitem childshellat( in long index ); para
meters index the child shell at index; null if index is out of bounds.
...void clearchildshells(); para
meters none.
... clone() nsishentry clone(); para
meters none.
...And 13 more matches
nsIXULTemplateBuilder
void rebuild(); para
meters none.
...void refresh(); para
meters none.
...the query node that the new result applies to must be specified using the aquerynode para
meter.
...And 13 more matches
Functions - JavaScript
a list of para
meters to the function, enclosed in parentheses and separated by commas.
... for example, the following code defines a simple function named square: function square(number) { return number * number; } the function square takes one para
meter, called number.
... the function consists of one statement that says to return the para
meter of the function (that is, number) multiplied by itself.
...And 13 more matches
Adding Methods to XBL-defined Elements - Archive of obsolete content
the general syntax of methods is as follows: <implementation> <method name="method-name"> <para
meter name="para
meter-name1"/> <para
meter name="para
meter-name2"/> .
...the method element contains two type of child elements, para
meter elements which describe the para
meters to the method and body which contains the script for the method.
...similarly, the name attributes on the para
meter elements become the names of each para
meter.
...And 12 more matches
Assert.jsm
undefined ok( actual, message ); para
meters actual test subject to be evaluated as truthy message short explanation of the expected result equal() the equality assertion tests shallow, coercive equality with ==.
... undefined equal( actual, expected, message ); para
meters actual test subject to be evaluated as equivalent to expected expected test reference to evaluate against actual message short explanation of the expected result notequal() the non-equality assertion tests for whether two objects are not equal with !=.
... undefined notequal( actual, expected, message ); para
meters actual test subject to be evaluated as not equivalent to expected expected test reference to evaluate against actual message short explanation of the expected result deepequal() the equivalence assertion tests a deep equality relation.
...And 12 more matches
Sqlite.jsm
if the original connection is using the shared cache, this para
meter will be ignored and the clone will be as privileged as the original connection.
... params (optional) para
meters to bind to this statement.
... para
meters can be bound to the statement by defining the params argument.
...And 12 more matches
PKCS #11 Module Specs
para
meter this specifies a pkcs #11 library para
meter with the application must pass to the pkcs #11 library at c_initialize() time (see below).
... if the para
meter is not specified, no para
meters are passed to the pkcs #11 module.
... para
meter passing if the para
meter is specified, the application/library will strip the value out, processing any outter quotes and escapes appropriately, and pass the para
meter to the pkcs #11 library when it calls c_initialize().
...And 12 more matches
Creating the Component Code
then xpcom calls registerself, passing para
meters that we'll examine here.
... the registerself method the first para
meter is the nsicomponentmanager, which provides a kind of entry point into managing the registration process.
... your registerself method may call queryinterface on the nsicomponentmanager interface para
meter to obtain the nsicomponentregistrar or nsiservicemanager.
...And 12 more matches
nsACString_internal
para
meters nscsubstringtuple& tuple void nsacstring_internal(char*, pruint32, pruint32) - source para
meters char* data pruint32 length pruint32 flags beginreading char* beginreading() const - source reading iterators nsreadingiterator<char>& beginreading(nsreadingiterator<char>&) const - source deprecated reading iterators para
meters nsreadingiterator<char>& iter char*& beginreading...
...(const char*&) const - source para
meters char*& iter endreading char* endreading() const - source nsreadingiterator<char>& endreading(nsreadingiterator<char>&) const - source para
meters nsreadingiterator<char>& iter char*& endreading(const char*&) const - source para
meters char*& iter beginwriting char* beginwriting() - source writing iterators nswritingiterator<char>& beginwriting(nswritingiterator<char>&) - source deprecated writing iterators para
meters nswritingiterator<char>& iter char*& beginwriting(char*&) - source para
meters char*& iter endwriting char* endwriting() - source nswritingiterator<char>& endwriting(nswritingiterator<char>&) - source para
meters nswritingiterator<char>& iter char*& endwriting(char*&) - source para
meter...
...s char*& iter data char* data() const - source accessors length pruint32 length() const - source isempty prbool isempty() const - source isvoid prbool isvoid() const - source isterminated prbool isterminated() const - source charat char charat(pruint32) const - source para
meters pruint32 i operator[] char operator[](pruint32) const - source para
meters pruint32 i first char first() const - source last char last() const - source countchar pruint32 countchar(char) const - source para
meters char <anonymous> findchar print32 findchar(char, pruint32) const - source para
meters char <anonymous> pruint32 offset equals prbool equals(const nsacstring_internal&) const - source equality para
meters nsacstring...
...And 12 more matches
nsAString_internal
para
meters nssubstringtuple& tuple void nsastring_internal(prunichar*, pruint32, pruint32) - source para
meters prunichar* data pruint32 length pruint32 flags beginreading prunichar* beginreading() const - source reading iterators nsreadingiterator<short unsigned int>& beginreading(nsreadingiterator<short unsigned int>&) const - source deprecated reading iterators para
meters nsreadingit...
...erator<short unsigned int>& iter prunichar*& beginreading(const prunichar*&) const - source para
meters prunichar*& iter endreading prunichar* endreading() const - source nsreadingiterator<short unsigned int>& endreading(nsreadingiterator<short unsigned int>&) const - source para
meters nsreadingiterator<short unsigned int>& iter prunichar*& endreading(const prunichar*&) const - source para
meters prunichar*& iter beginwriting prunichar* beginwriting() - source writing iterators nswritingiterator<short unsigned int>& beginwriting(nswritingiterator<short unsigned int>&) - source deprecated writing iterators para
meters nswritingiterator<short unsigned int>& iter prunichar*& beginwriting(prunichar*&) - source para
meters prunichar*& iter endwriting p...
...runichar* endwriting() - source nswritingiterator<short unsigned int>& endwriting(nswritingiterator<short unsigned int>&) - source para
meters nswritingiterator<short unsigned int>& iter prunichar*& endwriting(prunichar*&) - source para
meters prunichar*& iter data prunichar* data() const - source accessors length pruint32 length() const - source isempty prbool isempty() const - source isvoid prbool isvoid() const - source isterminated prbool isterminated() const - source charat prunichar charat(pruint32) const - source para
meters pruint32 i operator[] prunichar operator[](pruint32) const - source para
meters pruint32 i first prunichar first() const - source last prunichar last() const - source countchar pruin...
...And 12 more matches
nsIAccessibleText
constant value description coord_type_screen 0 coord_type_window 1 methods addselection() void addselection( in long startoffset, in long endoffset ); para
meters startoffset endoffset getattributerange() obsolete since gecko 1.9.1 (firefox 3.5 / thunderbird 3.0 / seamonkey 2.0) get the accessible and start/end offsets around the given offset.
...nsiaccessible getattributerange( in long offset, out long rangestartoffset, out long rangeendoffset ); para
meters offset rangestartoffset rangeendoffset return value getcharacteratoffset() it would be better to return an unsigned long here, to allow unicode chars > 16 bits.
... wchar getcharacteratoffset( in long offset ); para
meters offset return value getcharacterextents() returns the bounding box of the specified position.
...And 12 more matches
nsIDOMElement
domstring getattribute( in domstring name ); para
meters name attribute name return value a domstring containing the attribute value.
...nsidomattr getattributenode( in domstring name ); para
meters name attribute name return value a nsidomattr corresponding to the attribute.
...nsidomattr getattributenodens( in domstring namespaceuri, in domstring localname ); para
meters namespaceuri namespace uri localname attribute name return value a nsidomattr corresponding to the attribute.
...And 12 more matches
nsIDOMNSHTMLDocument
void captureevents( in long eventflags ); para
meters eventflags clear() used to reset a document to blank, but deprecated since gecko 1.0 and provided for compatibility with netscape 4.x; use open() and close() instead.
... void clear(); para
meters none.
... execcommand() boolean execcommand( in domstring commandid, in boolean doshowui, in domstring value ); para
meters commandid the name of the command to execute.
...And 12 more matches
nsIIOService
boolean allowport( in long aport, in string ascheme ); para
meters aport the port to check ascheme the scheme for the protocol handler that could override the ioservice's decision.
... acstring extractscheme( in autf8string urlstring ); para
meters urlstring the string for the url to extract the scheme from.
... unsigned long getprotocolflags( in string ascheme ); para
meters ascheme the scheme for which to get the protocol flags.
...And 12 more matches
nsINavBookmarkObserver
void onbeforeitemremoved( in long long aitemid, in unsigned short aitemtype, in long long aparentid, in acstring aguid, in acstring aparentguid ); para
meters aitemid the id of the bookmark that will be removed.
...void onbeginupdatebatch(); para
meters none.
...void onendupdatebatch(); para
meters none.
...And 12 more matches
nsISelectionPrivate
0 startofnextline 1 tableselection_none 0 tableselection_cell 1 tableselection_row 2 tableselection_column 3 tableselection_table 4 tableselection_allcells 5 methods addselectionlistener() void addselectionlistener( in nsiselectionlistener newlistener ); para
meters newlistener endbatchchanges() will resume user interface updates after a previous call to startbatchchanges().
... void endbatchchanges(); para
meters none.
... void getcachedframeoffset( in nsiframe aframe, in print32 inoffset, in nspointref apoint ); para
meters aframe inoffset apoint getenumerator() nsienumerator getenumerator(); para
meters none.
...And 12 more matches
Third-party APIs - Learn web development
for example: let map = l.mapquest.map('map', { center: [53.480759, -2.242631], layers: l.mapquest.tilelayer('map'), zoom: 12 }); here we are creating a variable to store the map information in, then creating a new map using the mapquest.map() method, which takes as its para
meters the id of a <div> element you want to display the map in ('map'), and an options object containing the details of the particular map we want to display.
...you can adjust the position by specifying an options object as a para
meter for the control containing a position property, the value of which is a string specifying a position for the control.
...add the following code to your example, again inside window.onload: l.marker([53.480759, -2.242631], { icon: l.mapquest.icons.marker({ primarycolor: '#22407f', secondarycolor: '#3b5998', shadow: true, size: 'md', symbol: 'a' }) }) .bindpopup('this is manchester!') .addto(map); as you can see, this at its simplest takes two para
meters, an array containing the coordinates at which to display the marker, and an options object containing an icon property that defines the icon to display at that point.
...And 11 more matches
pkfnc.html
syntax #include <pk11func.h> #include <certt.h> certcertificate *pk11_findcertfromnickname( char *nickname, void *wincx); para
meters this function has the following para
meters: nickname a pointer to the nickname in the certificate database or to the nickname in the token.
... the pk11_findcertfromnickname function calls the password callback function set with pk11_setpasswordfunc and passes it the pointer specified by the wincx para
meter.
... syntax #include <pk11func.h> #include <certt.h> #include <keyt.h> seckeyprivatekey *pk11_findkeybyanycert( certcertificate *cert, void *wincx); para
meters this function has the following para
meters: cert a pointer to a certificate structure in the certificate database.
...And 11 more matches
nsIAppStartup
obsolete since gecko 1.9.1 constants the following flags may be passed as the amode para
meter to the quit() method.
... void createhiddenwindow(); para
meters none.
... boolean createstartupstate( in long awindowwidth, in long awindowheight ); para
meters awindowwidth the width to make the initial window(s) opened.
...And 11 more matches
nsIClipboardCommands
boolean cancopyimagecontents(); para
meters none.
...boolean cancopyimagelocation(); para
meters none.
...boolean cancopylinklocation(); para
meters none.
...And 11 more matches
nsIHttpChannel
netwerk/protocol/http/nsihttpchannel.idlscriptable this interface allows for the modification of http request para
meters and the inspection of the resulting http response status and headers when they become available.
... void getoriginalresponseheader( in acstring aheader, in nsihttpheadervisitor avisitor ); para
meters aheader the case-insensitive name of the response header to query (for example "set-cookie").
... acstring getrequestheader( in acstring aheader ); para
meters aheader the case-insensitive name of the request header to query (for example "cache-control").
...And 11 more matches
nsIMsgHeaderParser
autf8string extractheaderaddressmailboxes( in string line ); para
meters line the header line to parse.
... autf8string extractheaderaddressnames( in string line ); para
meters line the header line to parse.
... autf8string extractheaderaddressname( in string line ); para
meters line the header line to parse.
...And 11 more matches
nsISelection
void addrange( in nsidomrange range ); para
meters range the nsidomrange to add collapse() collapses the selection to a single point, at the specified offset in the given nsidomnode.
...void collapse( in nsidomnode parentnode, in long offset ); para
meters parentnode the given nsidomnode where the selection will be set.
... collapsed() [noscript,notxpcom,nostdcall] boolean collapsed(); native code only!collapsenative void collapsenative( in nsinode parentnode, in long offset ); para
meters parentnode offset collapsetoend() collapses the whole selection to a single point at the end of the current selection (regardless of direction).
...And 11 more matches
nsISmsRequestManager
long addrequest( in nsidommozsmsrequest arequest ); para
meters arequest an smsrequest.
...long createrequest( in nsidommozsmsmanager amanager, out nsidommozsmsrequest arequest ); para
meters amanager an smsmanager.
...notifycreatemessagelist() void notifycreatemessagelist( in long arequestid, in long alistid, in nsidommozsmsmessage amessage ); para
meters arequestid a number representing the id of the request.
...And 11 more matches
nsITextInputProcessor
void appendclausetopendingcomposition(in unsigned long alength, in unsigned long aattribute); para
meters alength the length of appending clause.
... boolean begininputtransaction(in nsidomwindow awindow, in nsitextinputprocessorcallback acallback); para
meters awindow the dom window which has focused editor.
... boolean begininputtransactionfortests(in nsidomwindow awindow, in nsitextinputprocessorcallback acallback optional); para
meters awindow the dom window which has focused editor.
...And 11 more matches
nsITreeSelection
void adjustselection( in long index, in long count ); para
meters index index of the change.
...void clearrange( in long startindex, in long endindex ); para
meters startindex index to clearing at.
...void clearselection(); para
meters none.
...And 11 more matches
Initialization and Destruction - Plugins
nperror npp_new(npmimetype plugintype, npp instance, uint16 mode, int16 argc, char *argn[], char *argv[], npsaveddata *saved); the plugintype para
meter represents the mime type of this instance of the plug-in.
... the instance para
meter represents an npp object, created by the browser.
... the mode para
meter identifies the display mode in which the plug-in was invoked, either np_embed or np_full.
...And 11 more matches
URLs - Plugins
nperror npn_geturl(npp instance, const char *url, const char *target); the instance para
meter represents the current plug-in instance.
... the url para
meter is the url of the request, which can be of any type, including http, ftp, news, or mailto.
... the target para
meter represents the destination where the url will be displayed, a window or frame.
...And 11 more matches
EventTarget.addEventListener() - Web APIs
syntax target.addeventlistener(type, listener [, options]); target.addeventlistener(type, listener [, usecapture]); target.addeventlistener(type, listener [, usecapture, wantsuntrusted ]); // gecko/mozilla only para
meters type a case-sensitive string representing the event type to listen for.
...events in the target phase will trigger all listeners on an element in the order they were registered, regardless of the usecapture para
meter.
... wantsuntrusted a firefox (gecko)-specific para
meter.
...And 11 more matches
Paths - SVG: Scalable Vector Graphics
the shape of a <path> element is defined by one para
meter: d.
... (see more in basic shapes.) the d attribute contains a series of commands and para
meters used by those commands.
... coordinates in the d para
meter are always unitless and hence in the user coordinate system.
...And 11 more matches
window/utils - Archive of obsolete content
para
meters window : nsidomwindow the window whose inner window we are interested in.
... para
meters window : nsidomwindow the window whose outer window we are interested in.
... getxulwindow(window) returns the nsixulwindow for the given nsidomwindow: var { ci } = require('chrome'); var utils = require('sdk/window/utils'); var active = utils.getmostrecentbrowserwindow(); active instanceof ci.nsixulwindow // => false utils.getxulwindow(active) instanceof ci.nsixulwindow // => true para
meters window : nsidomwindow returns nsixulwindow getbasewindow(window) returns the nsibasewindow for the given nsidomwindow: var { ci } = require('chrome'); var utils = require('sdk/window/utils'); var active = utils.getmostrecentbrowserwindow(); active instanceof ci.nsibasewindow // => false utils.getbasewindow(active) instanceof ci.nsibasewindow // => true para
meters window : nsidomwindow returns nsibasewindow gettoplevelwindow(window...
...And 10 more matches
Cooperative asynchronous JavaScript: Timeouts and intervals - Learn web development
it takes the following para
meters: a function to run, or a reference to a function defined elsewhere.
... zero or more values that represent any para
meters you want to pass to the function when it is run.
... passing para
meters to a settimeout() function any para
meters that you want to pass to the function being run inside the settimeout() must be passed to it as additional para
meters at the end of the list.
...And 10 more matches
Index
in the most simple scenario, the programmer will provide a directory on your filesystem as a para
meter to the init function, and nss is designed to do the rest.
...the programmer's task is to initialize nss with the required para
meters (such as a database), and nss will then transparently manage the database files.
...create a context handle while providing all the para
meters required for the operation, then call an “update” function multiple times to pass subsets of the input to nss.
...And 10 more matches
Python binding for NSS
examples of this are the various callbacks which can be set and their para
meters.
... many methods/functions provide sane default (keyword) para
meters freeing the python programmer from having to specify all para
meters yet allowing them to be overriden when necessary.
...v nss.pk11slot.pbe_key_gen nss.pk11slot.format_lines nss.pk11slot.format nss.pk11symkey.format_lines nss.pk11symkey.format nss.secitem.to_base64 nss.secitem.format_lines nss.secitem.format the following files were added: doc/examples/pbkdf2_example.py the secitem constructor added 'ascii' para
meter to permit initialization from base64 and/or pem textual data.
...And 10 more matches
mozIPersonalDictionary
void addcorrection( in wstring word, in wstring correction, in wstring lang ); para
meters word the incorrect spelling of the word to add to the list of corrections.
...void addword( in wstring word, in wstring lang ); para
meters word the word to add to the dictionary.
...note that this para
meter is currently unused.
...And 10 more matches
nsIAccessibleRetrieval
nsiaccessible getaccessiblefor( in nsidomnode anode ); para
meters anode the dom node to get an accessible for.
...nsiaccessible getaccessibleinshell( in nsidomnode anode, in nsipresshell apresshell ); para
meters anode the dom node to get an accessible for.
...nsiaccessible getaccessibleinweakshell( in nsidomnode anode, in nsiweakreference apresshell ); para
meters anode the dom node to get an accessible for.
...And 10 more matches
nsIAppShell
void create( inout int argc, inout string argv ); para
meters argc the number of para
meters passed in on the command line.
... argv a direct reference to the para
meter array.
...void dispatchnativeevent( in prbool arealevent, in voidptr aevent ); para
meters arealevent event is real or a null placeholder (macintosh).
...And 10 more matches
nsIBinaryInputStream
pruint8 read8(); para
meters none.
... pruint16 read16(); para
meters none.
... pruint32 read32(); para
meters none.
...And 10 more matches
nsIBinaryOutputStream
void setoutputstream( in nsioutputstream aoutputstream ); para
meters aoutputstream instance of the nsioutputstream object to which output should be directed.
...void write8( in pruint8 abyte ); para
meters abyte the byte to write to the stream.
...void write16( in pruint16 a16 ); para
meters a16 the 16-bit integer to write to the stream.
...And 10 more matches
nsIBrowserHistory
void addpagewithdetails( in nsiuri auri, in wstring atitle, in long long alastvisited ); para
meters auri the page that will be added to the history.
... void markpageasfollowedlink( in nsiuri auri ); para
meters auri the url that is to be marked as explicitly followed by the user.
...this will cause the transition type of the next visit of the url to be marked as "typed." void markpageastyped( in nsiuri auri ); para
meters auri the page that is to be marked as typed by the user.
...And 10 more matches
nsIFocusManager
void clearfocus( in nsidomwindow awindow ); para
meters awindow exceptions thrown ns_error_invalid_arg if awindow is null.
...void contentremoved( in nsidocument adocument, in nsicontent aelement ); para
meters adocument aelement native code only!firedelayedevents fire any events that have been delayed due to synchronized actions.
... void firedelayedevents( in nsidocument adocument ); para
meters adocument native code only!focusplugin indicate that a plugin wishes to take the focus.
...And 10 more matches
nsILivemarkService
long long createlivemark( in long long folder, in astring name, in nsiuri siteuri, in nsiuri feeduri, in long index ); para
meters folder the id of the parent folder.
... long long createlivemarkfolderonly( in long long folder, in astring name, in nsiuri siteuri, in nsiuri feeduri, in long index ); para
meters folder the id of the parent folder.
... nsiuri getfeeduri( in long long container ); para
meters container the folder id of a livemark container.
...And 10 more matches
nsITreeBoxObject
void ensurerowisvisible(in long index); para
meters index the index of the row ensurecellisvisible() ensures that a given cell in the tree is visible.
... void ensurecellisvisible(in long row, in nsitreecolumn col); para
meters index the index of the row to check col the nsitreecolumn to check scrolltorow() scrolls such that the row at index is at the top of the visible view.
... void scrolltorow(in long index); para
meters index the index of the row scrollbylines() scroll the tree up or down by numlines lines.
...And 10 more matches
nsIZipReader
void close(); para
meters none.
... void extract( in autf8string zipentry, in nsifile outfile ); para
meters zipentry the zip entry to extract.
... nsiutf8stringenumerator findentries( in autf8string apattern ); para
meters apattern a regular expression used to find matching entries in the zip file.
...And 10 more matches
Understanding WebAssembly text format - WebAssembly
all code in a webassembly module is grouped into functions, which have the following pseudo-code structure: ( func <signature> <locals> <body> ) the signature declares what the function takes (para
meters) and returns (return values).
... signatures and para
meters the signature is a sequence of para
meter type declarations followed by a list of return type declarations.
... each para
meter has a type explicitly declared; wasm currently has four available number types (plus reference types; see the reference types) section below): i32: 32-bit integer i64: 64-bit integer f32: 32-bit float f64: 64-bit float a single para
meter is written (param i32) and the return type is written (result i32), hence a binary function that takes two 32-bit integers and returns a 64-bit float would be written like this: (func (param i32) (param i32) (result f64) ...
...And 10 more matches
io/file - Archive of obsolete content
globals functions basename(path) the path para
meter must be an absolute path, relative paths will cause an error.
... para
meters path : string the path of a file.
... para
meters path : string the path of a file.
...And 9 more matches
Menu - Archive of obsolete content
para
meters menuitems an array of menuitems.
...para
meters properties an object defining any of the properties below.
...para
meters items a single menuitem or an array of menuitems.
...And 9 more matches
Dict.jsm
note: you can actually specify non-strings as keys; these are converted to strings before being used, so they're documented here as if they were a string para
meter.
... dict dict(); dict dict( object initalkeysandvalues ); para
meters initialkeysandvalues optional a object containing key/value pairs with which to initialize the dictionary.
... dict copy(); para
meters none.
...And 9 more matches
nsIComponentRegistrar
void autoregister( in nsifile aspec ); para
meters aspec this para
meter indicates either a component file to be registered or a directory containing component files to be registered.
...void autounregister( in nsifile aspec ); para
meters aspec this para
meter indicates either a component file to be unregistered or a directory containing component files to be unregistered.
...string cidtocontractid( in nscidref aclass ); para
meters aclass the classid to be queried.
...And 9 more matches
nsIDownloadProgressListener
void ondownloadstatechange( in short astate, in nsidownload adownload ); para
meters astate the previous state of the download.
... onlocationchange() obsolete since gecko 1.9.1 (firefox 3.5 / thunderbird 3.0 / seamonkey 2.0) void onlocationchange( in nsiwebprogress awebprogress, in nsirequest arequest, in nsiuri alocation, in nsidownload adownload ); para
meters awebprogress the nsiwebprogress instance used by the download manager to monitor downloads.
...this para
meter will not be null.
...And 9 more matches
nsILocalFileMac
cfurlref getcfurl(); para
meters none.
...fsref getfsref(); para
meters none.
...fsspec getfsspec(); para
meters none.
...And 9 more matches
nsIMicrosummaryService
void addgenerator( in nsiuri generatoruri ); para
meters generatoruri the uri of the resource providing the generator.
...nsimicrosummary createmicrosummary( in nsiuri pageuri, in nsiuri generatoruri ); para
meters pageuri the uri of the page to be summarized.
...nsisimpleenumerator getbookmarks(); para
meters none.
...And 9 more matches
nsIMsgMessageService
void copymessage(in string asrcuri, in nsistreamlistener acopylistener, in boolean amovemessage, in nsiurllistener aurllistener, in nsimsgwindow amsgwindow, out nsiuri aurl); para
meters asrcuri the string url of the message to copy.
...pt] void copymessages(in nsmsgkeyarrayptr keys, in nsimsgfolder srcfolder, in nsistreamlistener acopylistener, in boolean amovemessage, in nsiurllistener aurllistener, in nsimsgwindow amsgwindow, out nsiuri aurl); para
meters keys an array of message keys to be copied.
... void displaymessage(in string amessageuri, in nsisupports adisplayconsumer, in nsimsgwindow amsgwindow, in nsiurllistener aurllistener, in string acharsetoverride, out nsiuri aurl); para
meters amessageuri a uri representing the message to display.
...And 9 more matches
nsIPropertyBag2
nsivariant get( in astring prop ); para
meters prop property to return the value of.
...getpropertyasacstring() acstring getpropertyasacstring( in astring prop ); para
meters prop property to return the value of.
...getpropertyasastring() astring getpropertyasastring( in astring prop ); para
meters prop property to return the value of.
...And 9 more matches
nsITransactionListener
void didbeginbatch( in nsitransactionmanager amanager, in nsresult aresult ); para
meters amanager the nsitransactionmanager that began a batch.
...void diddo( in nsitransactionmanager amanager, in nsitransaction atransaction, in nsresult adoresult ); para
meters amanager the nsitransactionmanager that did the transaction.
...void didendbatch( in nsitransactionmanager amanager, in nsresult aresult ); para
meters amanager the nsitransactionmanager ending a batch.
...And 9 more matches
nsITransactionManager
void addlistener( in nsitransactionlistener alistener ); para
meters alistener the nsitransactionlistener to add.
...void beginbatch(); para
meters none.
...void clear(); para
meters none.
...And 9 more matches
nsIZipWriter
void addentrychannel( in autf8string azipentry, in prtime amodtime, in print32 acompression, in nsichannel achannel, in boolean aqueue ); para
meters azipentry the path of the file entry to add to the zip file.
... void addentrydirectory( in autf8string azipentry, in prtime amodtime, in boolean aqueue ); para
meters azipentry the path of the directory entry to add to the zip file.note: you must use forward slashes in the path.
...if the specified file is a directory, this call is equivalent to: addentrydirectory(azipentry, afile.lastmodifiedtime, aqueue); void addentryfile( in autf8string azipentry, in print32 acompression, in nsifile afile, in boolean aqueue ); para
meters azipentry the path of the file entry to add to the zip file.
...And 9 more matches
Getting Started Guide
all good getters addref the interface pointers they produce, thus providing you with an owning reference; you will hold onto the reference longer than the scope of the function in which you acquired it, e.g., you got it as a para
meter, but you're hanging onto it in a member variable (see, for example, comparison 1, below).
... you don't need an owning reference when the object is passed in as a para
meter, and you don't need to keep it any longer than the scope of this function; the object's lifetime is known to contain yours in some well defined way, e.g., in the nodes of a tree, parent nodes keep owning references to their children, children need not keep owning references to their parents.
... */ ns_if_release(mfooptr); // error: |release| is private mfooptr = afooptr; ns_if_addref(mfooptr); // error: |addref| is private second: you can't just pass the address of an nscomptr to a getter expecting to return a result through a raw xpcom interface pointer para
meter.
...And 9 more matches
Add to iPhoto
it returns a cfstringref, which is a pointer to the new string, and accepts, as input, three para
meters: an allocator, which is a pointer to a routine that will allocate the memory to contain the new object (we use the ctypes.voidptr_t type for this), a pointer to the unicode string to copy into the new string object (ctypes.jschar.ptr), and the length of the unicode string in characters.
...the main reason i include this here is because of the last para
meter, which should be a pointer to an fsref, but that's not declared until we get around to declaring the carbon api, and i think that's worth noting.
... osstatus, // returns osstatus corefoundation.cfarrayref, // array of files to open in the app optionbits, // roles mask ctypes.voidptr_t, // inaeparam this.struct_lsapplicationpara
meters.ptr, // description of the app to launch ctypes.voidptr_t, // psn array pointer cfindex); // max psn count this function returns an osstatus indicating the result of the launch attempt, and accepts these para
meters: a cfarrayref providing a list of cfurl objects for the files to open ...
...And 9 more matches
AudioParam - Web APIs
the web audio api's audioparam interface represents an audio-related para
meter, usually a para
meter of an audionode (such as gainnode.gain).
... there are two kinds of audioparam, a-rate and k-rate para
meters: an a-rate audioparam takes the current audio para
meter value for each sample frame of the audio signal.
... a k-rate audioparam uses the same initial audio para
meter value for the whole block processed, that is 128 sample frames.
...And 9 more matches
SubtleCrypto - Web APIs
subtlecrypto.encrypt() returns a promise that fufills with the encrypted data corresponding to the clear text, algorithm, and key given as para
meters.
... subtlecrypto.decrypt() returns a promise that fulfills with the clear data corresponding to the encrypted text, algorithm, and key given as para
meters.
... subtlecrypto.sign() returns a promise that fulfills with the signature corresponding to the text, algorithm, and key given as para
meters.
...And 9 more matches
JavaScript modules - JavaScript
reportperi
meter() — writes a square's peri
meter to a specific report list, given its length.
...for example: export { name, draw, reportarea, reportperi
meter }; importing features into your script once you've exported some features out of your module, you need to import them into your script to be able to use them.
... the simplest way to do this is as follows: import { name, draw, reportarea, reportperi
meter } from './modules/square.js'; you use the import statement, followed by a comma-separated list of the features you want to import wrapped in curly braces, followed by the keyword from, followed by the path to the module file — a path relative to the site root, which for our basic-modules example would be /js-examples/modules/basic-modules.
...And 9 more matches
l10n - Archive of obsolete content
globals functions get(identifier, count, placeholder1...n) this function takes a string para
meter which it uses as an identifier to look up and return a localized string in the locale currently set for firefox.
... if this function can't find the string referenced by the identifier para
meter, it returns the identifier itself.
... if you're supplying different localizations for a string depending on the number of items (that is, whether to use a singular or plural form) then get() takes a second integer para
meter which indicates the number of items there are.
...And 8 more matches
platform/xpcom - Archive of obsolete content
xpcom.register(factory); you can use the corresponding unregister() function to unregister them, whether or not you have disabled automatic unregistration: xpcom.unregister(factory); you can find out whether a factory or service has been registered by using the isregistered() function: if (xpcom.isregistered(factory)) xpcom.unregister(factory); globals constructors factory(options) para
meters options : object required options: name type component constructor constructor for the component this factory creates.
...users of xpcom can use this value to retrieve the factory from components.classes: var factory = components.classes['@me.org/request'] var component = factory.createinstance(ci.nsirequest); this para
meter is formally optional, but if you don't specify it, users won't be able to retrieve your factory using a contract id.
...users of xpcom can use this value to retrieve the factory using components.classesbyid: var factory = components.classesbyid[id]; var component = factory.createinstance(ci.nsirequest); this para
meter is optional.
...And 8 more matches
ui/sidebar - Archive of obsolete content
var sidebar = require("sdk/ui/sidebar").sidebar({ id: 'my-sidebar', title: 'my sidebar', url: require("sdk/self").data.url("sidebar.html"), onattach: function (worker) { console.log("attaching"); }, onshow: function () { console.log("showing"); }, onhide: function () { console.log("hiding"); }, ondetach: function () { console.log("detaching"); } }); para
meters options : object required options: name type title string a title for the sidebar.
... para
meters window : browserwindow the window in which to show the sidebar, specified as a browserwindow.
... this para
meter is optional.
...And 8 more matches
XPCOM Objects - Archive of obsolete content
passing para
meters passing para
meters to xpcom methods is no different from other js objects, with some exceptions.
...this specifies that these are input para
meters, values that the method will use to perform its actions.
... when is a para
meter not an in para
meter?
...And 8 more matches
tabbrowser - Archive of obsolete content
the rest of the para
meters are optional.
... firefox 3.6 note the second form of this method was added in firefox 3.6; it allows you to specify the para
meters by name, in any order.
... it also adds the relatedtocurrent para
meter; firefox uses this to decide whether the new tab should be inserted next to the current tab.
...And 8 more matches
Build your own function - Learn web development
any para
meters we want to give to our function go inside the parentheses, and the code that runs when we call the function goes inside the curly braces.
... improving the function with para
meters as it stands, the function is still not very useful — we don't want to just show the same default message every time.
... let's improve our function by adding some para
meters, allowing us to call it with some different options.
...And 8 more matches
Client-Server Overview - Learn web development
information can be encoded as: url para
meters: get requests encode data in the url sent to the server by adding name/value pairs onto the end of it — for example http://mysite.com?name=fred&age=11.
... you always have a question mark (?) separating the rest of the url from the url para
meters, an equals sign (=) separating each name from its associated value, and an ampersand (&) separating each pair.
... url para
meters are inherently "insecure" as they can be changed by users and then resubmitted.
...And 8 more matches
Listening to events on all tabs
void onlocationchange( nsidomxulelement abrowser, nsiwebprogress awebprogress, nsirequest arequest, nsiuri alocation [optional] in unsigned long aflags ); para
meters abrowser the browser representing the tab whose location changed.
...void onprogresschange( nsidomxulelement abrowser, nsiwebprogress awebprogress, nsirequest arequest, print32 acurselfprogress, print32 amaxselfprogress, print32 acurtotalprogress, print32 amaxtotalprogress ); para
meters abrowser the browser representing the tab for which updated progress information is being provided.
... acurselfprogress the current progress for the request indicated by the request para
meter.
...And 8 more matches
InstallListener
void onnewinstall( in addoninstall install ) para
meters install the addoninstall representing the install ondownloadstarted() called when downloading begins for an add-on install.
... void ondownloadstarted( in addoninstall install ) para
meters install the addoninstall representing the install ondownloadprogress() called as data is received during a download.
... void ondownloadprogress( in addoninstall install ) para
meters install the addoninstall representing the install ondownloadended() called when downloading completes successfully for an add-on install.
...And 8 more matches
NSS 3.20 release notes
new functions in ssl.h ssl_dhegroupprefset - configure the set of allowed/enabled dhe group para
meters that can be used by nss for a server socket.
... ssl_enableweakdheprimegroup - enable the use of weak dhe group para
meters that are smaller than default minimum size of the library.
... new types in sslt.h ssldhegrouptype - enumerates the set of dhe para
meters 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.
...And 8 more matches
GC Rooting Guide
gc things on the stack js::rooted<t> all gc thing pointers stored on the stack (i.e., local variables and para
meters to functions) must use the js::rooted<t> class.
... this is a template class where the template para
meter is the type of the gc thing it contains.
... js::handle<t> all gc thing pointers that are para
meters to a function must be wrapped in js::handle<t>.
...And 8 more matches
Querying Places
executing a query places queries have several basic parts: the query object: nsinavhistoryquery, holds the search para
meters the query options: nsinavhistoryqueryoptions, allows configuration of the search result the history service: nsinavhistoryservice, executes the query the first first step is to create the query and options, and fill them with the para
meters you want.
...let options = placesutils.history.getnewqueryoptions(); // no query para
meters will return everything let query = placesutils.history.getnewquery(); // execute the query let result = placesutils.history.executequery(query, options); result types nsinavhistoryqueryoptions has a resulttype property that allows configuration of the grouping and level of detail to be returned in the results.
... basic query search para
meters const unsigned long time_relative_epoch = 0 const unsigned long time_relative_today = 1 const unsigned long time_relative_now = 2 attribute prtime begintime attribute unsigned long begintimereference readonly attribute boolean hasbegintime readonly attribute prtime absolutebegintime attribute prtime endtime attribute unsigned long endtimereference readonly attribute boolean hasendtim...
...And 8 more matches
imgIDecoderObserver
void ondataavailable( in imgirequest arequest, in boolean acurrentframe, [const] in nsintrect arect ); para
meters arequest the request on which data is available, or null if being called for an imgidecoder object.
...void ondiscard( in imgirequest arequest ); para
meters arequest the request on which data is available, or null if being called for an imgidecoder object.
...void onimageisanimated( in imgirequest arequest ); para
meters arequest the request on which data is available, or null if being called for an imgidecoder object.
...And 8 more matches
nsIBrowserSearchService
void addengine( in astring engineurl, in long datatype, in astring iconurl, in boolean confirm, [optional] in nsisearchinstallcallback callback ); para
meters engineurl the url to the search engine's description file.
...void addenginewithdetails( in astring name, in astring iconurl, in astring alias, in astring description, in astring method, in astring url ); para
meters name the search engine's name.
...void getdefaultengines( [optional] out unsigned long enginecount, [retval, array, size_is(enginecount)] out nsisearchengine engines ); para
meters enginecount the number of default search engines.
...And 8 more matches
nsICacheEntryDescriptor
void close(); para
meters none.
...void doom(); para
meters none.
...void doomandfailpendingrequests( in nsresult status ); para
meters status the access status.
...And 8 more matches
nsIDBFolderInfo
nreadmessages long sortorder nsmsgviewsortordervalue sorttype nsmsgviewsorttypevalue version unsigned long viewflags nsmsgviewflagstypevalue viewtype nsmsgviewtypevalue methods andflags() long andflags( in long flags ); para
meters flags missing description return value missing description exceptions thrown missing exception missing description changeexpungedbytes() void changeexpungedbytes( in long delta ); para
meters delta missing description exceptions thrown missing exception missing description changenummessages() void changenummessages( in long delt...
...a ); para
meters delta missing description exceptions thrown missing exception missing description changenumunreadmessages() void changenumunreadmessages( in long delta ); para
meters delta missing description exceptions thrown missing exception missing description getbooleanproperty() boolean getbooleanproperty( in string propertyname, in boolean defaultvalue ); para
meters propertyname missing description defaultvalue missing description return value missing description exceptions thrown missing exception missing description getcharacterset() void getcharacterset( out acstring charset, out boolean overriden ); para
meters charset missing description ove...
...rriden missing description exceptions thrown missing exception missing description getcharactersetoverride() obsolete since gecko 1.8 (firefox 1.5 / thunderbird 1.5 / seamonkey 1.0) void getcharactersetoverride( out boolean charactersetoverride ); para
meters charactersetoverride missing description exceptions thrown missing exception missing description getcharptrcharacterset() string getcharptrcharacterset(); para
meters none.
...And 8 more matches
nsIDOMEvent
help 0x10000000 back 0x20000000 text 0x40000000 alt_mask 0x00000001 control_mask 0x00000002 shift_mask 0x00000004 meta_mask 0x00000008 methods violates the xpcom interface guidelines deserialize() boolean deserialize( in constipcmessageptr amsg, out voidptr aiter ); para
meters amsg aiter return value native code only!duplicateprivatedata void duplicateprivatedata(); para
meters none.
... violates the xpcom interface guidelines getinternalnsevent() nseventptr getinternalnsevent(); para
meters none.
... boolean getpreventdefault(); para
meters none.
...And 8 more matches
nsIDragService
[noscript] void dragmoved( in long ax, in long ay ); para
meters ax the x coordinate to which to move the popup being dragged.
... void enddragsession( in prbool adonedrag ); para
meters adonedrag if adonedrag is true, the drag has finished, otherwise the drag has just left the window.
... void firedrageventatsource( in unsigned long amsg ); obsolete since gecko 43 para
meters amsg one of the ns_dragdrop_* contants which was defined in widget/basicevents.h fire a drag event at the fource of the drag.
...And 8 more matches
nsINavHistoryObserver
note: see using onbeforedeleteuri() in gecko 1.9.1 for how to implement this in gecko 1.9.1 void onbeforedeleteuri( in nsiuri auri, in acstring aguid ); para
meters auri the uri of the page about to be deleted.
...void onbeginupdatebatch(); para
meters none.
...void onclearhistory(); para
meters none.
...And 8 more matches
nsIPermissionManager
void add( in nsiuri uri, in string type, in pruint32 permission, [optional] in pruint32 expiretype, [optional] in print64 expiretime ); para
meters uri the uri to add the permission for.
... void addfromprincipal( in nsiprincipal principal, in string type, in pruint32 permission, [optional] in pruint32 expiretype, [optional] in print64 expiretime ); para
meters principal the principal to add the permission for.
... void remove( in nsiuri uri, in string type ); para
meters nsiuri the uri whose permission will be removed.
...And 8 more matches
nsIWebNavigation
load_flags_none 0 this is the default value for the load flags para
meter.
... void gotoindex( in long index ); para
meters index the index of the session history item to go to.
... void loaduri( wstring uri, unsigned long loadflags, nsiuri referrer, nsiinputstream postdata, nsiinputstream headers ); para
meters uri the uri string to load.
...And 8 more matches
Sensor APIs - Web APIs
for example, the accelero
meter interface returns the acceleration of the device along all three axes at the time it is read.
... let accelero
meter = null; try { accelero
meter = new accelero
meter({ referenceframe: 'device' }); accelero
meter.addeventlistener('error', event => { // handle runtime errors.
... } else if (event.error.name === 'notreadableerror' ) { console.log('cannot connect to the sensor.'); } }); accelero
meter.addeventlistener('reading', () => reloadonshake(accelero
meter)); accelero
meter.start(); } catch (error) { // handle construction errors.
...And 8 more matches
WebGLRenderingContext - Web APIs
webglrenderingcontext.getcontextattributes() returns a webglcontextattributes object that contains the actual context para
meters.
... webglrenderingcontext.getpara
meter() returns a value for the passed para
meter name.
... webglrenderingcontext.samplecoverage() specifies multi-sample coverage para
meters for anti-aliasing effects.
...And 8 more matches
url - Archive of obsolete content
any api in the sdk which has a url para
meter will accept url objects, not raw strings, unless otherwise noted.
... para
meters source : string a string to be converted into a url.
... para
meters uri : string a string to be parsed as data url.
...And 7 more matches
Chapter 4: Using XPCOM—Implementing advanced processes - Archive of obsolete content
passing the name of the window type as the para
meter of the nsiwindowmediator.getmostrecentwindow() method returns the most recently active window from among the root element's windows with that type set for the windowtype attribute value.
... setting the para
meter to null returns the active window from among all windows, including dialogs, etc.
... like the getmostrecentwindow() method, passing null as the para
meter for the getenumerator() method enables you to get all windows in firefox, including dialogs, etc.
...And 7 more matches
Observer Notifications - Archive of obsolete content
the interface has only one method observe() which takes three para
meters.
... the first para
meter (subject) can be any xpcom object, the second para
meter is a notification topic, and the final para
meter is a string that further describes the notification.
... adding an observer to the observer service is simple, invoking the addobserver method with three para
meters.
...And 7 more matches
Creating regular expressions for a microsummary generator - Archive of obsolete content
urls 101 urls for auction item pages on ebay, like those on many other sites, usually start with the string "http://" and contain a domain name, a file path, and some query para
meters.
... here's a url for an auction item page on ebay: http://cgi.ebay.com/ws/ebayisapi.dll?viewitem&item=280018439106 in this url, the domain name is "cgi.ebay.com", the file path is "/ws/ebayisapi.dll", and the query para
meters are "?viewitem&item=280018439106".
... matching from the start of the url while this expression matches the url, it also matches other urls that contain this url in their query para
meters, for example: http://www.example.com/redirect.php?url=http://cgi.ebay.com/ws/ebayisapi.dll?viewitem&item=280018439106 that's probably not what we want, since urls that contain our example url probably aren't auction item pages themselves.
...And 7 more matches
Index - Archive of obsolete content
300 progress
meter.max no summary!
... 301 progress
meter.mode xul attributes, xul reference no summary!
... 302 progress
meter.value xul attributes, xul reference no summary!
...And 7 more matches
TypeScript support in Svelte - Learn web development
if we pass an unknown property in the options para
meter of the app constructor (for example a typo like traget instead of target) typescript will complain: in the app.svelte component, the setuptypescript.js script has added the lang="ts" attribute to the <script> tag.
... now from todos.svelte, we will instantiate a todo component with a literal object as its para
meter before the call to the moreactions component, like this: <hr /> <todo todo={ { name: 'a new task with no id!', completed: false } } /> <!-- moreactions --> <moreactions {todos} add the lang='ts' to the <script> tag of the todos.svelte component, so that it knows to use the type checking we have specified.
...(ts) let timeout ./svelte-todo-typescript/src/components/alert.svelte:11:28 warn: para
meter 'message' implicitly has an 'any' type, but a better type may be inferred from usage.
...And 7 more matches
Gecko info for Windows accessibility vendors
event_valuechange is fired for sliders, progress
meters and other objects who's get_accvalue() may change.
...the exception is progress
meters, which are guaranteed to fire event_show and event_hide events when they are displayed or hidden.
... unique features role_progressbar xul: <progress
meter> dhtml: role="wairole:progressbar" fires event_valuechange when progressbar moves by at least 3% fires event_show and event_hide directly on role_progressbar when it appears/disappears as well as on ancestor container that visibility may have changed on.
...And 7 more matches
IPDL Tutorial
the para
meters of the recv* methods (const nscstring& pluginpath in the example) are references to temporary objects, so copy them if you need to keep their data around.
... para
meters message declarations allow any number of para
meters.
... para
meters specify data that are sent with the message.
...And 7 more matches
AddonListener
void onenabling( in addon addon, in boolean needsrestart ) para
meters addon the addon that is being enabled needsrestart true if an application restart is necessary for the change to take effect onenabled() called when an add-on has been enabled.
... void onenabled( in addon addon, ) para
meters addon the addon that has been enabled ondisabling() called when an add-on is about to be disabled.
... void ondisabling( in addon addon, in boolean needsrestart ) para
meters addon the addon that is being disabled needsrestart true if an application restart is necessary for the change to take effect ondisabled() called when an add-on has been disabled.
...And 7 more matches
PopupNotifications.jsm
void locationchange(); para
meters none.
... notification getnotification( string id xulelement browser ); para
meters id the notification id to search for.
... void remove( notification notification ); para
meters notification the notification object representing the notification to remove.
...And 7 more matches
nsICommandLine
some flags may take para
meters; for example: "-url <param>" or "-install-xpi <param>".
...long findflag( in astring aflag, in boolean acasesensitive ); para
meters aflag the flag name to locate.
...astring getargument( in long aindex ); para
meters aindex the argument to retrieve.
...And 7 more matches
nsIEditorIMESupport
void begincomposition( in nstexteventreplyptr areply ); para
meters areply endcomposition() obsolete since gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) handles the end of inline input composition.
... void endcomposition(); para
meters none.
...void forcecompositionend(); para
meters none.
...And 7 more matches
nsIMsgIdentity
void clearallvalues(); para
meters none.
... void copy(in nsimsgidentity identity); para
meters identity getunicharattribute() getter for unicode attributes.
... astring getunicharattribute(in string name); para
meters name setunicharattribute() setter for unicode attributes.
...And 7 more matches
nsIMsgSearchSession
w constants name value description booleanor 0 booleanand 1 methods addsearchterm() void addsearchterm(in nsmsgsearchattribvalue attrib, in nsmsgsearchopvalue op, in nsimsgsearchvalue value, in boolean booleanand, in string arbitraryheader); para
meters attrib attribute for this term.
... createterm() nsimsgsearchterm createterm(); appendterm() void appendterm(in nsimsgsearchterm term); para
meters term registerlistener() adds a listener to the search session.
... void registerlistener(in nsimsgsearchnotify listener); para
meters listener unregisterlistener() removes a listener from the search session.
...And 7 more matches
nsINavHistoryQuery
toolkit/components/places/public/nsinavhistoryservice.idlscriptable encapsulates all the query para
meters you're likely to need when building up history ui.
... all para
meters are anded together.
...setting this is equivalent to listing all bookmark folders in the folders para
meter.
...And 7 more matches
nsIScriptableIO
nsifile getfile( in astring alocation, in astring afilename ); para
meters alocation a location key identifying a known standard directory.
... the afilename para
meter is treated as being local to this directory.
... nsifile getfilewithpath( in astring afilepath ); para
meters afilepath the absolute pathname of the file to reference, or the value of a file's persistentdescriptor.
...And 7 more matches
nsITreeColumns
nsitreecolumn getcolumnat( in long index ); para
meters index index of the column return value a nsitreecolumn for this index.
...nsitreecolumn getcolumnfor( in nsidomelement element ); para
meters element a dom element return value a nsitreecolumn for this element.
...nsitreecolumn getfirstcolumn(); para
meters none.
...And 7 more matches
nsIWindowWatcher
nsiwebbrowserchrome getchromeforwindow( in nsidomwindow awindow ); para
meters awindow the nsidomwindow whose chrome window the caller needs.
... nsiauthprompt getnewauthprompter( in nsidomwindow aparent ); para
meters aparent the parent window used for posing alerts.
... nsiprompt getnewprompter( in nsidomwindow aparent ); para
meters aparent the parent nsidomwindow used for posing alerts.
...And 7 more matches
nsIWritablePropertyBag2
void setpropertyasint64(in astring prop, in print64 value); void setpropertyasinterface(in astring prop, in nsisupports value); void setpropertyasuint32(in astring prop, in pruint32 value); void setpropertyasuint64(in astring prop, in pruint64 value); methods setpropertyasacstring() void setpropertyasacstring( in astring prop, in acstring value ); para
meters prop property to set the value of.
... setpropertyasastring() void setpropertyasastring( in astring prop, in astring value ); para
meters prop property to set the value of.
... setpropertyasautf8string() void setpropertyasautf8string( in astring prop, in autf8string value ); para
meters prop property to set the value of.
...And 7 more matches
nsIXPCScriptable
methods precreate() void precreate( in nsisupports nativeobj, in jscontextptr cx, in jsobjectptr globalobj, out jsobjectptr parentobj ); para
meters nativeobj cx globalobj parentobj create() void create( in nsixpconnectwrappednative wrapper, in jscontextptr cx, in jsobjectptr obj ); para
meters wrapper cx obj postcreate() void postcreate( in nsixpconnectwrappednative wrapper, in jscontextptr cx, in jsobjectptr obj ); para
meters wrapper cx obj addproperty() prbool addproperty( in nsixpc...
...onnectwrappednative wrapper, in jscontextptr cx, in jsobjectptr obj, in jsval id, in jsvalptr vp ); para
meters wrapper cx obj id vp return value delproperty() prbool delproperty( in nsixpconnectwrappednative wrapper, in jscontextptr cx, in jsobjectptr obj, in jsval id, in jsvalptr vp ); para
meters wrapper cx obj id vp return value getproperty() prbool getproperty( in nsixpconnectwrappednative wrapper, in jscontextptr cx, in jsobjectptr obj, in jsval id, in jsvalptr vp ); para
meters wrapper cx obj id vp return value ns_success_i_did_something if this method does something.
... setproperty() prbool setproperty( in nsixpconnectwrappednative wrapper, in jscontextptr cx, in jsobjectptr obj, in jsval id, in jsvalptr vp ); para
meters wrapper cx obj id vp return value ns_success_i_did_something if this method does something.
...And 7 more matches
HTMLInputElement.stepDown() - Web APIs
the htmlinputelement.stepdown([n]) method decrements the value of a numeric type of <input> element by the value of the step attribute or up to n multiples of the step attribute if a number is passed as the para
meter.
...mytime.step(), with no para
meter, would have resulted in 16:45, as n defaults to 1.
... 900 seconds (15 minute) --> <input type="time" max="17:00" step="900"> <!-- decrements by intervals of 7 days (one week) --> <input type="date" max="2019-12-25" step="7"> <!-- decrements by intervals of 12 months (one year) --> <input type="month" max="2019-12" step="12"> the method, when invoked, changes the form control's value by the value given in the step attribute, multiplied by the para
meter, within the constraints set within the form control.
...And 7 more matches
IDBObjectStoreSync - Web APIs
any add( in any value, in optional any key ) raises (idbdatabaseexception); para
meters returns exceptions this method can raise a idbdatabaseexception with the following codes: value the value to store into the index.
... constraint_err if a record exists in this index with a key corresponding to the key para
meter or the index is auto-populated, or if no record exists with a key corresponding to the value para
meter in the index's referenced object store.
... data_err if this object store uses out-of-line keys, and the key para
meter was not passed.
...And 7 more matches
<input type="number"> - HTML: Hypertext Markup Language
it defaults to accepting a height in
meters, but you can click the relevant button to change the form to accept feet and inches instead.
... the input for the height in
meters accepts decimals to two places.
... the html looks like this: <form> <div class="
metersinputgroup"> <label for="
meters">enter your height —
meters:</label> <input id="
meters" type="number" name="
meters" step="0.01" min="0" placeholder="e.g.
...And 7 more matches
context-menu - Archive of obsolete content
for example, this item appears whenever the context menu is invoked on a page that contains at least one image: require("sdk/context-menu").item({ label: "this page has images", contentscript: 'self.on("context", function (node) {' + ' return !!document.queryselector("img");' + '});' }); note that the listener function has a para
meter called node.
... therefore, to handle an item click, listen for the "click" event in that item's content script like so: require("sdk/context-menu").item({ label: "my item", contentscript: 'self.on("click", function (node, data) {' + ' console.log("item clicked!");' + '});' }); note that the listener function has para
meters called node and data.
... para
meters options : object required options: name type label string the item's label.
...And 6 more matches
test/assert - Archive of obsolete content
para
meters logger : object object used to log the results of assertions.
... assert.ok(a == 1, "test that a is equal to one"); this is equivalent to: assert.equal(a == 1, true, "test that a is equal to one"); para
meters guard : expression the expression to evaluate.
... equal(actual, expected, message) tests shallow, coercive equality with ==: assert.equal(1, 1, "test that one is one"); para
meters actual : object the actual result.
...And 6 more matches
generateCRMFRequest() - Archive of obsolete content
the first three para
meters will be applied to every request.
... the "escrowauthoritycert" para
meter will only be used for requests that pertain to a key that is being escrowed.
... after the "escrowauthoritycert" para
meter, the method takes some javascript code that is invoked when the crmf request is ready.
...And 6 more matches
Migrate apps from Internet Explorer to Mozilla - Archive of obsolete content
both methods require three para
meters: the event type, a function reference, and a boolean denoting whether the listener should catch events in their capture phase.
...internet explorer's event model only has the bubbling phase; therefore, setting the third para
meter to false results in internet explorer-like behavior: <div id="mydiv">click me!</div> <script> function handleevent(aevent) { // if aevent is null, it is the internet explorer event model, // so get window.event.
...thus, to remove an event listener requires all three para
meters be the same as the ones you use when adding the listener.
...And 6 more matches
Graceful asynchronous programming with Promises - Learn web development
inside your <script> element, add the following line: let promise = fetch('coffee.jpg'); this calls the fetch() method, passing it the url of the image to fetch from the network as a para
meter.
... this can also take an options object as an optional second para
meter, but we are just using the simplest version for now.
...it is passed the returned response object as a para
meter.
...And 6 more matches
Functions — reusable blocks of code - Learn web development
in this article we'll explore fundamental concepts behind functions such as basic syntax, how to invoke and define them, scope, and para
meters.
...again, this looks something like this: mybutton.onclick = function() { alert('hello'); // i can put as much code // inside here as i want } function para
meters some functions require para
meters to be specified when you are invoking them — these are values that need to be included inside the function parentheses, which it needs to do its job properly.
... note: para
meters are sometimes called arguments, properties, or even attributes.
...And 6 more matches
JNI.jsm
method overview cdata getforthread(); cdata loadclass(cdata ajenv, string aclassfullyqualifiedname, [optional] object adeclares); cdata newstring(cdata ajenv, string astr); string readstring(cdata ajenv, cdata ajavastring); void unloadclasses(); methods getforthread() blah blah cdata getforthread(); para
meters this function does not take any arguments.
... return value blah blah loadclass() blah blah cdata loadclass( ajenv, afullyqualifiedname, [optional] object adeclares ); para
meters ajenv the return value of getforthread().
... return value blah blah newstring() blah blah cdata newstring( ajenv, astr ); para
meters ajenv the return value of getforthread().
...And 6 more matches
IAccessibleTableCell
[propget] hresult columnextent( [out] long ncolumnsspanned ); para
meters ncolumnsspanned returns the 1 based column extent of the specified cell.
...[propget] hresult columnheadercells( [out, size_is(, ncolumnheadercells,)] iunknown cellaccessibles, [out] long ncolumnheadercells ); para
meters cellaccessibles pointer to an array of references to cell accessibles.
...[propget] hresult columnindex( [out] long columnindex ); para
meters columnindex returns the 0 based column index of the cell of the specified cell or the index of the first column if the cell spans multiple columns.
...And 6 more matches
nsIApplicationCache
void activate(); para
meters none.
...void addnamespaces( in nsiarray namespaces ); para
meters namespaces an nsiarray of nsiapplicationcachenamespace objects describing the namespaces to add to the cache.
...void discard(); para
meters none.
...And 6 more matches
nsIBlocklistService
unsigned long getaddonblockliststate( in jsval addon, in astring appversion, optional in astring toolkitversion optional ); para
meters addon the addon object whose blocklist state is to be determined.
...if this para
meter is null, the version of the running application is used.
...if this para
meter is null, the version of the running toolkit is used.
...And 6 more matches
nsICollection
void appendelement( in nsisupports item ) para
meters item nsisupports item to be appended to the list.
...void clear(); para
meters none.
...pruint32 count(); para
meters none.
...And 6 more matches
nsIContentPrefService
void addobserver( in astring aname, in nsicontentprefobserver aobserver ); para
meters aname the name of the preference to observe.
... nsivariant getpref( in nsivariant agroup, in astring aname, in nsicontentprefcallback acallback optional ); para
meters agroup the group for which to retrieve a preference; this may be specified as either a uri or as a string; in either case, the group consists of all sites matching the hostname portion of the specified uri.
... nsipropertybag2 getprefs( in nsivariant agroup ); para
meters agroup the group whose preferences are to be retrieved; this may be specified as either a uri or as a string; in either case, the group consists of all sites matching the hostname portion of the specified uri.
...And 6 more matches
nsIControllers
void appendcontroller( in nsicontroller controller ); para
meters controller a controller to be added to the list of controllers.
...nsicontroller getcontrollerat( in unsigned long index ); para
meters index the position of the wanted controller.
...nsicontroller getcontrollerbyid( in unsigned long controllerid ); para
meters controllerid the id (insertion order) of a controller.
...And 6 more matches
nsIDBChangeListener
void onhdrflagschanged(in nsimsgdbhdr ahdrchanged, in unsigned long aoldflags, in unsigned long anewflags, in nsidbchangelistener ainstigator); para
meters ahdrchanged the nsimsgdbhdr of the message that changed.
... void onhdrdeleted(in nsimsgdbhdr ahdrchanged, in nsmsgkey aparentkey, in long aflags, in nsidbchangelistener ainstigator); para
meters ahdrchanged the nsimsgdbhdr of the message that was removed.
... void onhdradded(in nsimsgdbhdr ahdrchanged, in nsmsgkey aparentkey, in long aflags, in nsidbchangelistener ainstigator); para
meters ahdrchanged the nsimsgdbhdr of the message that was added.
...And 6 more matches
nsIDOMMozNetworkStatsManager
nsidomdomrequest getsamples(in nsisupports network, in jsval start, in jsval end, [optional] in jsval options /* networkstatsgetoptions */); para
meters network the origin of the data.
...when total data usage reaches threshold bytes, a "networkstats-alarm" system message is sent to the application, where the optional para
meter data must be a cloneable object.
... nsidomdomrequest addalarm(in nsisupports network, in long threshold, [optional] in jsval options /* networkstatsalarmoptions */); para
meters network the origin of the data.
...And 6 more matches
nsIDeviceMotion
xpcom/system/nsidevicemotion.idlscriptable this interface is used to implement accelero
meter support.
... methods addlistener() when called, the accelero
meter support implementation must begin to notify the specified nsidevicemotionlistener by calling its nsidevicemotionlistener.onaccelerationchange() method as appropriate to share updated acceleration data.
... void addlistener( in nsidevicemotionlistener alistener ); para
meters alistener the nsidevicemotionlistener object whose nsidevicemotionlistener.onaccelerationchange() method should be called with updated acceleration data.
...And 6 more matches
nsIExternalProtocolService
boolean externalprotocolhandlerexists( in string aprotocolscheme ); para
meters aprotocolscheme the scheme from a url: http, ftp, mailto, and so on.
...astring getapplicationdescription( in autf8string ascheme ); para
meters ascheme the scheme to look up.
...nsihandlerinfo getprotocolhandlerinfo( in acstring aprotocolscheme ); para
meters aprotocolscheme the scheme from a url: http, ftp, mailto, and so on.
...And 6 more matches
nsIJSON
jsobject decode( in astring str ); para
meters str the json string to decode.
... jsval decodetojsval( in astring str, in jscontext cx ); para
meters str the json string to decode.
... jsobject decodefromstream( in nsiinputstream stream, in long contentlength ); para
meters stream the nsiinputstream from which to read the json string.
...And 6 more matches
nsINavHistoryResultViewObserver
boolean candrop( in long index, in long orientation ); para
meters index the item over which the drag is currently located.
... void ondrop( in long row, in long orientation ); para
meters row the row at which the drop occurred.
... void ontoggleopenstate( in long index ); para
meters index the item being toggled.
...And 6 more matches
nsIObserverService
void addobserver( in nsiobserver anobserver, in string atopic, in boolean ownsweak ); para
meters anobserver the nsiobserver object which will receive notifications.
... nsisimpleenumerator enumerateobservers( in string atopic ); para
meters atopic the notification topic or subject.
... void notifyobservers( in nsisupports asubject, in string atopic, in wstring somedata ); para
meters asubject a notification specific interface pointer.
...And 6 more matches
nsIPrincipal
constant value description enable_denied 1 enable_unknown 2 enable_with_user_permission 3 enable_granted 4 methods native code only!canenablecapability short canenablecapability( in string capability ); para
meters capability missing description return value missing description exceptions thrown missing exception missing description checkmayload() checks whether this principal is allowed to load the network resource located at the given uri under the same-origin policy.
...void checkmayload( in nsiuri uri, in boolean report ); para
meters uri missing description report if true, will report a warning to the console service if the load is not allowed.
... native code only!disablecapability void disablecapability( in string capability, inout voidptr annotation ); para
meters capability missing description annotation missing description native code only!enablecapability void enablecapability( in string capability, inout voidptr annotation ); para
meters capability missing description annotation missing description equals() returns whether the other principal is equivalent to this principal.
...And 6 more matches
nsIProtocolProxyService
nsiproxyinfo resolve( in nsiuri auri, in unsigned long aflags ); para
meters auri the uri to test.
... nsicancelable asyncresolve( in nsiuri auri, in unsigned long aflags, in nsiprotocolproxycallback acallback ); para
meters auri the uri to test.
...if canceled, the cancellation status (areason) will be forwarded to the callback's nsiprotocolproxycallback.onproxyavailable() method via the astatus para
meter.
...And 6 more matches
nsIScrollable
methods getcurscrollpos() obsolete since gecko 29.0 (firefox 29.0 / thunderbird 29.0 / seamonkey 2.26) long getcurscrollpos( in long scrollorientation ); para
meters scrollorientation an integer representing the orientation of the scrollbar.
... return value getdefaultscrollbarpreferences() long getdefaultscrollbarpreferences( in long scrollorientation ); para
meters scrollorientation an integer representing the orientation of the scrollbar.
...getscrollbarvisibility() void getscrollbarvisibility( out boolean verticalvisible, out boolean horizontalvisible ); para
meters verticalvisible boolean specifying the visibility of the vertical scrollbar.
...And 6 more matches
nsIStringBundle
wstring formatstringfromid( in long aid, [array, size_is(length)] in wstring params, in unsigned long length ); para
meters aid the id of the string to retrieve.
... params para
meters to pass in to the string.
... length the length of the para
meter list.
...And 6 more matches
nsITransferable
void adddataflavor( in string adataflavor ); para
meters adataflavor a string defining a new data flavor that the transferable supports.
... nsisupportsarray flavorstransferablecanexport(); para
meters none.
... nsisupportsarray flavorstransferablecanimport(); para
meters none.
...And 6 more matches
nsIWebProgressListener
the astatus para
meter to onstatechange() indicates the final status of the request.
...the document corresponding to a document request is available via the domwindow attribute of onstatechange()'s awebprogress para
meter.
... void onlocationchange( in nsiwebprogress awebprogress, in nsirequest arequest, in nsiuri alocation, [optional] in unsigned long aflags ); para
meters awebprogress the nsiwebprogress instance that fired the notification.
...And 6 more matches
nsIXULTemplateQueryProcessor
void addbinding( in nsidomnode arulenode, in nsiatom avar, in nsiatom aref, in astring aexpr ); para
meters arulenode rule to add the binding to.
...print32 compareresults( in nsixultemplateresult aleft, in nsixultemplateresult aright, in nsiatom avar, in unsigned long asorthints ); para
meters aleft the left result to compare.
...nsisupports compilequery( in nsixultemplatebuilder abuilder, in nsidomnode aquery, in nsiatom arefvariable, in nsiatom amembervariable ); para
meters abuilder the template builder.
...And 6 more matches
nsIXULWindow
void addchildwindow( in nsixulwindow achild ); para
meters achild the child window being added.
... void applychromeflags(); para
meters none.
... void assumechromeflagsarefrozen(); para
meters none.
...And 6 more matches
nsIMsgCloudFileProvider
void init(in string aaccountkey); para
meters uploadfile() starts a file upload for this account.
... void uploadfile(in nsilocalfile afile, in nsirequestobserver acallback); para
meters afile the file to be uploaded.
... acstring urlforfile(in nsilocalfile afile); para
meters afile the previously uploaded file to get the url for.
...And 6 more matches
RTCPeerConnection.setLocalDescription() - Web APIs
the method takes a single para
meter—the session description—and it returns a promise which is fulfilled once the description has been changed, asynchronously.
... syntax apromise = rtcpeerconnection.setlocaldescription(sessiondescription); pc.setlocaldescription(sessiondescription, successcallback, errorcallback); para
meters sessiondescription optional an rtcsessiondescriptioninit or rtcsessiondescription which specifies the configuration to be applied to the local end of the connection.
... type of the description para
meter the description is of type rtcsessiondescriptioninit, which is a serialized version of a rtcsessiondescription browser object.
...And 6 more matches
WebGL best practices - Web APIs
geterror, getpara
meter) certain webgl entry points cause synchronous stalls on the calling thread.
... getshader/programpara
meter(), getshader/programinfolog(), other gets on shaders/programs: flush + shader compile + round-trip, if not done after shader compilation is complete.
... (see also parallel shader compilation below.) get*para
meter() in general: possible flush + round-trip.
...And 6 more matches
WebGL model view projection - Web APIs
this 8 cubic
meter coordinate system used by clip space is known as normalized device coordinates (ndc).
...the function takes three para
meters — the context to render the program in, the id of the <script> element containing the vertex shader, and the id of the <script> element containing the fragment shader.
...ion(fieldofviewinradians, aspectratio, near, far) { var f = 1.0 / math.tan(fieldofviewinradians / 2); var rangeinv = 1 / (near - far); return [ f / aspectratio, 0, 0, 0, 0, f, 0, 0, 0, 0, (near + far) * rangeinv, -1, 0, 0, near * far * rangeinv * 2, 0 ]; } the four para
meters into this function are: fieldofviewinradians an angle, given in radians, indicating how much of the scene is visible to the viewer at once.
...And 6 more matches
Viewpoints and viewers: Simulating cameras in WebXR - Web APIs
by extension, if you and another person are standing in an empty field of solid stone with nothing else visible as far as the eye can see, if you move three
meters toward the other person, the result looks the same as if the other person had moved three
meters toward you.
...for example, if the object is facing an object located at (3, 1, -2)—that is, three
meters to the right, one
meter up, and two
meters away from the origin point—the result is: [31-2]\left [ \begin{matrix} 3 \\ 1 \\ -2 \end{matrix} \right ] this can also be represented as an array: let directionvector = [3, 1, -2]; for the purposes of performing operations involving both the coordinates and the facing direction vector, the vector needs to include the w component.
... the value of w is always 0 for vectors, so the aforementioned vector can also be represented using [3, 1, -2, 0] or: [31-20]\left [ \begin{matrix} 3 \\ 1 \\ -2 \\ 0 \end{matrix} \right ] webxr automatically normalizes vectors to have a length of 1
meter; however, you may find that it makes sense to do it yourself for various reasons, such as to improve performance of calculations by not having to repeatedly perform normalization.
...And 6 more matches
Window.openDialog() - Web APIs
it behaves the same, except that it can optionally take one or more para
meters past windowfeatures, and windowfeatures itself is treated a little differently.
... the optional para
meters, if present, are bundled up in a javascript array object and added to the newly created window as a property named window.arguments.
...these para
meters may be used, then, to pass arguments to and from the dialog window.
...And 6 more matches
String.prototype.replace() - JavaScript
syntax const newstr = str.replace(regexp|substr, newsubstr|function) para
meters regexp (pattern) a regexp object or literal.
... newsubstr (replacement) the string that replaces the substring specified by the specified regexp or substr para
meter.
... a number of special replacement patterns are supported; see the "specifying a string as a para
meter" section below.
...And 6 more matches
Index - XSLT: Extensible Stylesheet Language Transformations
3 index index, reference, xslt found 54 pages: 4 pi para
meters xslt no summary!
...using the xsltprocessor.getpara
meter() method, the code can figure whether to sort in ascending or descending order.
... it defaults to ascending if the para
meter is empty (the first time the sorting happens, as there is no value for it in the xslt file).
...And 6 more matches
widget - Archive of obsolete content
para
meters options : object required options: name type label string a string description of the widget used for accessibility, title bars, and error reporting.
... para
meters data : value the message to send.
... para
meters type : string the type of event to listen for.
...And 5 more matches
preferences/service - Archive of obsolete content
para
meters name : string preference name.
... para
meters name : string defaultvalue : string,number,boolean preference value.
... example: var name = "extensions.checkcompatibility.nightly"; var nightlycompatchk = require("sdk/preferences/service").get(name); has(name) para
meters name : string preference name.
...And 5 more matches
util/array - Archive of obsolete content
let { has } = require('sdk/util/array'); let a = ['rock', 'roll', 100]; has(a, 'rock'); // true has(a, 'rush'); // false has(a, 100); // true para
meters array : array the array to search.
... let { hasany } = require('sdk/util/array'); let a = ['rock', 'roll', 100]; hasany(a, ['rock', 'bright', 'light']); // true hasany(a, ['rush', 'coil', 'jet']); // false para
meters array : array the array to search for elements.
... let { add } = require('sdk/util/array'); let a = ['alice', 'bob', 'carol']; add(a, 'dave'); // true add(a, 'dave'); // false add(a, 'alice'); // false console.log(a); // ['alice', 'bob', 'carol', 'dave'] para
meters array : array the array to add the element to.
...And 5 more matches
SQLite Templates - Archive of obsolete content
query para
meters sometimes, you will want to adjust the query depending on certain criteria.
...the solution is to use query para
meters, using the param element.
... <query> select name, email from myfriends where gender = :wantedgender <param name="wantedgender">male</param> </query> in this example, a para
meter 'wantedgender' is used.
...And 5 more matches
XPCOM Interfaces - Archive of obsolete content
this function takes one para
meter, the interface that you want to get.
...here, we use the nsilocalfile interface and pass it as a para
meter to queryinterface().
...the first para
meter should be the file path, such as '/usr/local/mozilla'.
...And 5 more matches
Parsing microformats in JavaScript - Archive of obsolete content
normalizeddate = microformats.parser.datetimegetter(propnode, parentnode); para
meters propnode the dom node to check.
... propertyvalue = microformats.parser.defaultgetter(propnode, parentnode, datatype); para
meters propnode the dom node to check.
...email = microformats.parser.emailgetter(propnode, parentnode); para
meters propnode the dom node to check.
...And 5 more matches
Other form controls - Learn web development
meters and progress bars
meters and progress bars are visual representations of numeric values.
...
meter a
meter bar represents a fixed value in a range delimited by max and min values.
... the optimum value defines the optimum value for the <
meter> element.
...And 5 more matches
Useful string methods - Learn web development
this can be done using the indexof() method, which takes a single para
meter — the substring you want to search for.
...try the following: browsertype.slice(0,3); this returns "moz" — the first para
meter is the character position to start extracting at, and the second para
meter is the character position after the last one to be extracted.
...in this example, since the starting index is 0, the second para
meter is equal to the length of the string being returned.
...And 5 more matches
FileUtils.jsm
omicfileoutputstream(nsifile file, int modeflags); nsifileoutputstream opensafefileoutputstream(nsifile file, int modeflags); void closeatomicfileoutputstream(nsifileoutputstream stream); void closesafefileoutputstream(nsifileoutputstream stream); constants constant value description mode_rdonly 0x01 corresponds to the pr_rdonly para
meter to pr_open mode_wronly 0x02 corresponds to the pr_wronly para
meter to pr_open mode_create 0x08 corresponds to the pr_create_file para
meter to pr_open mode_append 0x10 corresponds to the pr_append para
meter to pr_open mode_truncate 0x20 corresponds to the pr_truncate para
meter to pr_open perms_file 0644 default permissions ...
... nsifile getfile( string key, array patharray, bool followlinks ); para
meters key the nsidirectoryservice key to start from (see getting special files for more info) patharray an array of path components to locate beneath the directory specified by key.
... nsifile getdir( string key, array patharray, bool shouldcreate, bool followlinks ); para
meters key the nsidirectoryservice key to start from (see getting special files for more info) patharray an array of path components to locate beneath the directory specified by key.
...And 5 more matches
NetUtil.jsm
nsiasyncstreamcopier asynccopy( asource, asink, acallback ); para
meters asource the input stream from which to read the source data.
...the callback receives a single para
meter: the nsresult status code for the copy operation.
... asyncfetch( asource, acallback ); para
meters asource the source to open asynchronously.
...And 5 more matches
PR_Seek64
syntax #include <prio.h> print64 pr_seek64( prfiledesc *fd, print64 offset, prseekwhence whence); para
meters the function has the following para
meters: fd a pointer to a prfiledesc object.
... offset a value, in bytes, used with the whence para
meter to set the file pointer.
... whence a value of type prseekwhence that specifies how to interpret the offset para
meter in setting the file pointer associated with the fd para
meter.
...And 5 more matches
Observer Notifications
you can cancel the shutdown from here by setting asubject.data to true (asubject is the first para
meter to your observer, the data value is an nsisupportsprbool).
...both are passed an nsihttpchannel as the subject para
meter.
...if bookmarks will be restored into a specific folder, observers will be passed an nsisupportsprint64 through their subject para
meters indicating the id of the folder.
...And 5 more matches
imgIRequest
void cancelandforgetobserver( in nsresult astatus ); para
meters astatus clone() clone this request; the returned request will have aobserver as the observer.
...imgirequest clone( in imgidecoderobserver aobserver ); para
meters aobserver return value decrementanimationconsumers() tell the image it can forget about a request that the image animate.
... void decrementanimationconsumers(); para
meters none.
...And 5 more matches
mozIStorageValueArray
long gettypeofindex( in unsigned long aindex ); para
meters aindex the zero-based numerical index for the column to get the data from.
... long getint32( in unsigned long aindex ); para
meters aindex the zero-based numerical index for the column to get the data from.
... long long getint64( in unsigned long aindex ); para
meters aindex the zero-based numerical index for the column to get the data from.
...And 5 more matches
nsIApplicationCacheService
void cacheopportunistically( in nsiapplicationcache cache, in acstring key ); para
meters cache the cache in which the entry is currently cached.
...nsiapplicationcache chooseapplicationcache( in acstring key ); para
meters key the cache entry key for which to select an application cache.
... return value the nsiapplicationcache best able to serve the resource indicated by the key para
meter.
...And 5 more matches
nsICategoryManager
string addcategoryentry( in string acategory, in string aentry, in string avalue, in boolean apersist, in boolean areplace ); para
meters acategory the name of the category being modified.
...you must pass false for this para
meter.
... void deletecategory( in string acategory ); para
meters acategory the name of the category being deleted.
...And 5 more matches
nsICookieService
string getcookiestring( in nsiuri auri, in nsichannel achannel ); para
meters auri the uri of the document for which cookies are being queried.
...this para
meter may be null, but it is strongly recommended that a non-null value be provided to ensure that the cookie privacy preferences are honored.
... string getcookiestringfromhttp( in nsiuri auri, in nsiuri afirsturi, in nsichannel achannel ); para
meters auri the uri of the document for which cookies are being queried.
...And 5 more matches
nsICryptoHash
acstring finish( in prbool aascii ); para
meters aascii if true then the returned value is a base-64 encoded string.
... void init( in unsigned long aalgorithm ); para
meters aalgorithm the hash algorithm to use.
... void initwithstring( in acstring aalgorithm ); para
meters aalgorithm the hash algorithm type to be used as a string, such as "sha256".
...And 5 more matches
nsIDNSService
constants resolve flag constants various flags that may be ored together to form the aflags para
meter passed to asyncresolve() and resolve().
...nsicancelable asyncresolve( in autf8string ahostname, in unsigned long aflags, in nsidnslistener alistener, in nsieventtarget alistenertarget ); para
meters ahostname the host name or ip-address-literal to resolve.
... alistenertarget optional para
meter (may be null).
...And 5 more matches
nsIDOMChromeWindow
void beginwindowmove( in nsidomevent mousedownevent ); para
meters mousedownevent exceptions thrown ns_error_not_implemented if the operating system does not support this method.
... getattention() void getattention(); para
meters none.
...void getattentionwithcyclecount( in long acyclecount ); para
meters acyclecount the maximum number of times to animate the window per system conventions.
...And 5 more matches
nsIFrameLoader
void activateframeevent( in astring atype, in boolean capture ); para
meters atype the event type for which to enable forwarding.
... void activateremoteframe(); para
meters none.
... void destroy(); para
meters none.
...And 5 more matches
nsIJumpListBuilder
a task can be represented by an application shortcut and associated command line para
meters or a uri.
...the title of of the list is passed through the optional string para
meter of addbuildlist.
...void abortlistbuild(); para
meters none.
...And 5 more matches
nsIMimeConverter
string encodemimepartiistr(in string header, in boolean structured, in string mailcharset, in long fieldnamelen, in long encodedwordsize); para
meters propertyname the name of the property to retrieve.
... string encodemimepartiistr_utf8(in autf8string header, in boolean structured, in string mailcharset, in long fieldnamelen, in long encodedwordsize); para
meters header the string to encode into the mime-encoded form.
... decodemimeheadertocharptr() void setstringproperty(in string propertyname, in string propertyvalue); para
meters propertyname the name of the property to set.
...And 5 more matches
nsIOutputStream
void close(); para
meters none.
... void flush(); para
meters none.
... boolean isnonblocking(); para
meters none.
...And 5 more matches
nsIRadioInterfaceLayer
all_state_resuming 8 call_state_disconnecting 9 call_state_disconnected 10 call_state_incoming 11 datacall_state_unknown 0 datacall_state_connecting 1 datacall_state_connected 2 datacall_state_disconnecting 3 datacall_state_disconnected 4 call_state_ringing 2 obsolete since gecko 14.0 methods answercall() void answercall( in unsigned long callindex ); para
meters callindex missing description exceptions thrown missing exception missing description deactivatedatacall() void deactivatedatacall( in domstring cid, in domstring reason ); para
meters cid missing description reason missing description exceptions thrown missing exception missing description dial() functionality for making and managing phone calls.
... void dial( in domstring number ); para
meters 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 ); para
meters callback missing description exceptions thrown missing exception missing description getdatacalllist() void getdatacalllist(); para
meters none.
...And 5 more matches
nsISmsDatabaseService
ssageinlist(in long listid, in long requestid, [optional] in unsigned long long processid); void clearmessagelist(in long listid); void markmessageread(in long messageid, in boolean value, in long requestid, [optional] in unsigned long long processid) methods savereceivedmessage() void savereceivedmessage( in domstring asender, in domstring abody, in unsigned long long adate ); para
meters asender a domstring with the sender of the text message.
... savesentmessage() void savesentmessage( in domstring a receiver, in domstring abody, in unsigned long long adate ); para
meters areceiver a domstring with the receiver of the text message.
... getmessage() void getmessage( in long messageid, in long requestid, [optional] in unsigned long long processid ); para
meters messageid a number representing the id of the message.
...And 5 more matches
nsITransport
void close( in nsresult areason ); para
meters areason the reason for closing the stream.
...nsiinputstream openinputstream( in unsigned long aflags, in unsigned long asegmentsize, in unsigned long asegmentcount ); para
meters aflags optional transport specific flags.
... asegmentsize if open_unbuffered is not set, then this para
meter specifies the size of each buffer segment (pass 0 to use default value).
...And 5 more matches
nsIAbCard/Thunderbird3
nsivariant getproperty(in autf8string name, in nsivariant defaultvalue); para
meters name the case-sensitive name of the property to get.
... para
meters name the case-sensitive name of the property to get.
... void setproperty(in autf8string name, in nsivariant value); [noscript] void setpropertyasastring(in string name, in astring value); [noscript] void setpropertyasautf8string(in string name, in autf8string value); [noscript] void setpropertyasuint32(in string name, in pruint32 value); [noscript] void setpropertyasbool(in string name, in boolean value); para
meters name the case-sensitive name of the property to set.
...And 5 more matches
Reference Manual
nsiweakreference* weakptr = ...; weakptr->queryreferent( using an nscomptr<t> as a t* using an nscomptr as a pointer "in" para
meters "out" para
meters: getter_addrefs assignment into an nscomptr is fairly easy to understand.
...these rules apply equally to the "assignment" that happens when copying para
meters or function results that are declared to be nscomptrs.
... if we want nscomptrs to be a viable substitute for raw xpcom interface pointers, however, we will need to deal with the issue of "out" para
meters.
...And 5 more matches
AudioParam.value - Web APIs
syntax var curvalue = audioparam.value; audioparam.value = newvalue; value a floating-point number indicating the para
meter's value as of the current time.
... consider this example: const source = new audiobuffersourcenode(...); const rate = 5.3; source.playbackrate.value = rate; console.log(source.playbackrate.value === rate); the log output will be false, because the playback rate para
meter, rate, was converted to the 32-bit floating-point number closest to 5.3, which yields 5.300000190734863.
...this is reflected by the value getter, which returns the value of the para
meter as of the audio rendering engine's most recent render quantum, or moment at which audio buffers are processed and updated.
...And 5 more matches
AudioParamDescriptor - Web APIs
if the underlying audioworkletprocessor has a para
meterdescriptors static getter, then the returned array of objects based on this dictionary is used internally by audioworkletnode constructor to populate its para
meters property accordingly.
...under this name the audioparam will be available in the para
meters property of the node, and under this name the audioworkletprocessor.process method will acquire the calculated values of this audioparam.
...here, additionally, we'll create a custom gain para
meter, so we can directly change volume of the output (although you could use gainnode to achieve this as well).
...And 5 more matches
AudioWorkletProcessor.process - Web APIs
syntax var isactivelyprocessing = audioworkletprocessor.process(inputs, outputs, para
meters); para
meters inputs an array of inputs connected to the node, each item of which is, in turn, an array of channels.
... outputs an array of outputs that is similar to the inputs para
meter in structure.
... para
meters an object containing string keys and float32array values.
...And 5 more matches
Using the CSS Painting API - Web APIs
it takes two para
meters.
... the first is the name we give the worklet — this is the name we will use in our css as the para
meter of the paint() function when we want to apply this styling to an element.
... the second para
meter is the class that does all the magic, defining the context options and what to paint to the two-dimensional canvas that will be our image.
...And 5 more matches
Drawing shapes with canvas - Web APIs
each of these three functions takes the same para
meters.
... let's have a more detailed look at the arc method, which takes six para
meters: x and y are the coordinates of the center of the circle on which the arc should be drawn.
...the startangle and endangle para
meters define the start and end points of the arc in radians, along the curve of the circle.
...And 5 more matches
HTMLInputElement.stepUp() - Web APIs
ame day of the week: <input type="datetime-local" min="019-12-25t19:30" step="7"> number 1 0.1 increments <input type="number" min="0" step="0.1" max="10"> range 1 increments by 2: <input type="range" min="0" step="2" max="10"> the method, when invoked, changes the form control's value by the value given in the step attribute, multiplied by the para
meter, within the constraints set on the form control.
... the default value for the para
meter, if no value is passed, is 1.
... syntax element.stepup( [ stepincrement ] ); para
meters stepincrement the optional stepincrement pare
meter is a numeric value.
...And 5 more matches
IDBIndexSync - Web APIs
any add( in any value, in optional any key ) raises (idbdatabaseexception); para
meters returns exceptions this method can raise a idbdatabaseexception with the following code: value the value to store into the index.
... constraint_err if a record exists in this index with a key corresponding to the key para
meter or the index is auto-populated, or if no record exists with a key corresponding to the value para
meter in the index's referenced object store.
... any get ( in any key ) raises (idbdatabaseexception); para
meters key the key that identifies the record to be retrieved.
...And 5 more matches
Notification - Web APIs
notification.actions read only the actions array of the notification as specified in the constructor's options para
meter.
... notification.body read only the body string of the notification as specified in the constructor's options para
meter.
... notification.dir read only the text direction of the notification as specified in the constructor's options para
meter.
...And 5 more matches
RTCPeerConnection.setRemoteDescription() - Web APIs
the method takes a single para
meter—the session description—and it returns a promise which is fulfilled once the description has been changed, asynchronously.
... syntax apromise = rtcpeerconnection.setremotedescription(sessiondescription); para
meters sessiondescription an rtcsessiondescriptioninit or rtcsessiondescription which specifies the remote peer's current offer or answer.
... this value is an offer or answer received from the remote peer through your implementation of the sessiondescription para
meter is technically of type rtcsessiondescriptioninit, but because rtcsessiondescription serializes to be indistinguishable from rtcsessiondescriptioninit, you can also pass in an rtcsessiondescription.
...And 5 more matches
URL API - Web APIs
you can also look up the values of individual para
meters with the urlsearchparams object's get() method: let addr = new url("https://mysite.com/login?user=someguy&page=news"); try { loginuser(addr.searchparams.get("user")); gotopage(addr.searchparams.get("page")); } catch(err) { showerrormessage(err); } for example, in the above snippet, the username and target page are taken from the query and passed to appropriate functions that are used by...
... other functions within urlsearchparams let you change the value of keys, add and delete keys and their values, and even sort the list of para
meters.
... examples if you want to process the para
meters included in a url, you could do it manually, but it's much easier to create a url object to do it for you.
...And 5 more matches
Web Authentication API - Web APIs
the para
meters received from the server will be passed to the create() call, typically with little or no modification and returns a promise that will resolve to a publickeycredential containing an authenticatorattestationresponse.
... browser calls authenticatormakecredential() on authenticator - internally, the browser will validate the para
meters and fill in any defaults, which become the authenticatorresponse.clientdatajson.
... one of the most important para
meters is the origin, which is recorded as part of the clientdata so that the origin can be verified by the server later.
...And 5 more matches
WritableStream.WritableStream() - Web APIs
syntax var writablestream = new writablestream(underlyingsink[, queuingstrategy]); para
meters underlyingsink an object containing methods and properties that define how the constructed stream instance will behave.
...the controller para
meter passed to this method is a writablestreamdefaultcontroller.
... write(chunk, controller) optional this method, also defined by the developer, will be called when a new chunk of data (specified in the chunk para
meter) is ready to be written to the underlying sink.
...And 5 more matches
XSLTProcessor - Web APIs
it has methods to load the xslt stylesheet, to manipulate <xsl:param> para
meter values, and to apply the transformation to documents.
... syntax the constructor has no para
meters.
... the resultant object depends on the output method of the stylesheet: output method result type html htmldocument xml xmldocument text xmldocument with a single root element <transformiix:result> with the text as a child [throws] void xsltprocessor.setpara
meter(string namespaceuri, string localname, any value) sets a para
meter in the xslt stylesheet that was imported.
...And 5 more matches
Getting Started - Developer guides
at this stage, you need to tell the xmlhttp request object which javascript function will handle the response, by setting the onreadystatechange property of the object and naming it after the function to call when the request changes state, like this: httprequest.onreadystatechange = nameofthefunction; note that there are no parentheses or para
meters after the function name, because you're assigning a reference to the function, rather than actually calling it.
...}; next, after declaring what happens when you receive the response, you need to actually make the request, by calling the open() and send() methods of the http request object, like this: httprequest.open('get', 'http://www.example.org/some.file', true); httprequest.send(); the first para
meter of the call to open() is the http request method – get, post, head, or another method supported by your server.
... the second para
meter is the url you're sending the request to.
...And 5 more matches
Arrow function expressions - JavaScript
syntax basic syntax (param1, param2, …, paramn) => { statements } (param1, param2, …, paramn) => expression // equivalent to: => { return expression; } // parentheses are optional when there's only one para
meter name: (singleparam) => { statements } singleparam => { statements } // the para
meter list for a function with no para
meters should be written with a pair of parentheses.
... () => { statements } advanced syntax // parenthesize the body of a function to return an object literal expression: params => ({foo: bar}) // rest para
meters and default para
meters are supported (param1, param2, ...rest) => { statements } (param1 = defaultvalue1, param2, …, paramn = defaultvaluen) => { statements } // destructuring within the para
meter list is also supported var f = ([a, b] = [1, 2], {x: c} = {x: a + b}) => a + b + c; f(); // 6 description see also "es6 in depth: arrow functions" on hacks.mozilla.org.
... shorter functions var elements = [ 'hydrogen', 'helium', 'lithium', 'beryllium' ]; // this statement returns the array: [8, 6, 7, 9] elements.map(function(element) { return element.length; }); // the regular function above can be written as the arrow function below elements.map((element) => { return element.length; }); // [8, 6, 7, 9] // when there is only one para
meter, we can remove the surrounding parentheses elements.map(element => { return element.length; }); // [8, 6, 7, 9] // when the only statement in an arrow function is `return`, we can remove `return` and remove // the surrounding curly brackets elements.map(element => element.length); // [8, 6, 7, 9] // in this case, because we only need the length property, we can use destructuring para
meter: //...
...And 5 more matches
The arguments object - JavaScript
description note: if you're writing es6 compatible code, then rest para
meters should be preferred.
...if you instead want to count how many para
meters a function is declared to accept, inspect that function's length property.
...for example: let listhtml = list('u', 'one', 'two', 'three'); /* listhtml is: "<ul><li>one</li><li>two</li><li>three</li></ul>" */ rest, default, and destructured para
meters the arguments object can be used in conjunction with rest, default, and destructured para
meters.
...And 5 more matches
Introduction to using XPath in JavaScript - XPath
var xpathresult = document.evaluate( xpathexpression, contextnode, namespaceresolver, resulttype, result ); para
meters the evaluate function takes a total of five para
meters: xpathexpression: a string containing the xpath expression to be evaluated.
... return value returns xpathresult, which is an xpathresult object of the type specified in the resulttype para
meter.
...contextnode.documentelement : contextnode.ownerdocument.documentelement ); </pre> and then pass document.evaluate, the nsresolver variable as the namespaceresolver para
meter.
...And 5 more matches
ui/button/action - Archive of obsolete content
to set state like this, call state() with 2 para
meters: the first para
meter is a window or tab object or as a shorthand, the string "window" for the currently active window, or the string "tab" for the currently active tab the second para
meter is an object containing the state properties you wish to update.
... para
meters options : object required options: name type id string the button's id.
...ctionbutton({ id: "default-label", label: "default label", icon: "./default.png", onclick: function(state) { if (button.label == "default label") { button.state(button, differentstate); } else { button.state(button, defaultstate); } console.log(button.state(button).label); console.log(button.state(button).icon); } }); para
meters target : button, tab, window, string to set or get the global state, this needs to be the button instance.
...And 4 more matches
ui/button/toggle - Archive of obsolete content
to set state like this, call state() with 2 para
meters: the first para
meter is a window or tab object or as a shorthand, the string "window" for the currently active window, or the string "tab" for the currently active tab the second para
meter is an object containing the state properties you wish to update.
... para
meters options : object required options: name type id string the button's id.
...ogglebutton({ id: "default-label", label: "default label", icon: "./default.png", onclick: function(state) { if (button.label == "default label") { button.state(button, differentstate); } else { button.state(button, defaultstate); } console.log(button.state(button).label); console.log(button.state(button).icon); } }); para
meters target : button, tab, window, string to set or get the global state, this needs to be the button instance.
...And 4 more matches
Using microformats - Archive of obsolete content
add(name, definition); para
meters name the name of the microformat to add to the microformat module.
... var nummicroformats = microformats.count(name, rootelement, options); para
meters name the name of the microformat to count.
... var dumpstring = debug(microformatobject) para
meters microformatobject the microformat object to dump.
...And 4 more matches
Choosing the right approach - Learn web development
asynchronous callbacks generally found in old-style apis, involves a function being passed into another function as a para
meter, which is then invoked when an asynchronous operation has been completed, so that the callback can in turn do something with the result.
... 4 full support 52notes notes setinterval now defined on windoworworkerglobalscope mixin.opera android full support 10.1safari ios full support 1samsung internet android full support 3.0supports para
meters for callbackchrome full support yesedge full support 12firefox full support yesie full support 10opera full support yessafari ?
... 4 full support 52notes notes setinterval now defined on windoworworkerglobalscope mixin.opera android full support 10.1safari ios full support 1samsung internet android full support 3.0supports para
meters for callbackchrome full support yesedge full support 12firefox full support yesie full support 10opera full support yessafari ?
...And 4 more matches
Download
promise start(); para
meters none.
... promise launch(); para
meters none.
... promise showcontainingdirectory(); para
meters none.
...And 4 more matches
DownloadList
promise<array<download>> getall(); para
meters none.
...promise add( download adownload ); para
meters adownload the download object to add.
...promise remove( download adownload ); para
meters adownload the download object to remove.
...And 4 more matches
Http.jsm
httprequest supports the following para
meters: name meaning headers an array of headers postdata this can be: a string: send it as is an array of para
meters: encode as form values null/undefined: no post data.
... onload a function handle to call when the load is complete, it takes two para
meters: the responsetext and the xhr object.
... onerror a function handle to call when an error occurs, it takes three para
meters: the error, the responsetext and the xhr object.
...And 4 more matches
Promise
new promise(executor); para
meters executor this function is invoked immediately with the resolving functions as its two arguments: executor(resolve, reject); the constructor will not return until the executor has completed.
... void resolve( avalue ); para
meters avalue optional if this value is not a promise, including undefined, it becomes the fulfillment value of the associated promise.
... void reject( areason ); para
meters areason optional the rejection reason for the associated promise.
...And 4 more matches
PR_Seek
syntax #include <prio.h> print32 pr_seek( prfiledesc *fd, print32 offset, prseekwhence whence); para
meters the function has the following para
meters: fd a pointer to a prfiledesc object.
... offset a value, in bytes, used with the whence para
meter to set the file pointer.
... whence a value of type prseekwhence that specifies how to interpret the offset para
meter in setting the file pointer associated with the fd para
meter.
...And 4 more matches
NSS 3.21 release notes
master secret extension (rfc 7627) is supported (bug 1117022) new info functions added for use during mid-handshake callbacks (bug 1084669) new functions in nss.h nss_optionset - sets nss global options nss_optionget - gets the current value of nss global options in secmod.h secmod_createmoduleex - create a new secmodmodule structure from module name string, module para
meters string, nss specific para
meters string, and nss configuration para
meter string.
...the difference with secmod_createmodule is the new function handles nss configuration para
meter strings.
...nature and hash algorithms for tls ssl_signatureprefget - retrieves the currently configured signature and hash algorithms ssl_signaturemaxcount - obtains the maximum number signature algorithms that can be configured with ssl_signatureprefset in utilpars.h nssutil_argparsemodulespecex - takes a module spec and breaks it into shared library string, module name string, module para
meters string, nss specific para
meters string, and nss configuration para
meter strings.
...And 4 more matches
Introduction to the JavaScript shell
note: clear() with no para
meters really clears everything.
... gcparam(name[, value]) added in spidermonkey 1.8 read or configure garbage collector para
meters.
... the name must be one of the para
meter keys (such as 'maxbytes', 'maxmallocbytes' or 'gcnumber') defined by for_each_gc_param in https://searchfox.org/mozilla-central/source/js/src/builtin/testingfunctions.cpp#464.
...And 4 more matches
Accessing the Windows Registry Using XPCOM
if you want to create a new key, you can use the create() method, which takes the same para
meters as open().
... both of these methods take a root key as the first para
meter.
... from javascript, you will want to use the named constants on the interface for this para
meter.
...And 4 more matches
IAccessibleAction
[propget] hresult description( [in] long actionindex, [out] bstr description ); para
meters actionindex 0 based index specifying which action's description to return.
...hresult doaction( [in] long actionindex ); para
meters actionindex 0 based index specifying the action to perform.
...[propget] hresult keybinding( [in] long actionindex, [in] long nmaxbindings, [out, size_is(,nmaxbindings), length_is(, nbindings)] bstr keybindings, [out] long nbindings ); para
meters actionindex 0 based index specifying which action's key bindings should be returned.
...And 4 more matches
IAccessibleEditableText
hresult copytext( [in] long startoffset, [in] long endoffset ); para
meters startoffset start index of the text to moved into the clipboard.
...hresult cuttext( [in] long startoffset, [in] long endoffset ); para
meters startoffset start index of the text to be deleted.
...hresult deletetext( [in] long startoffset, [in] long endoffset ); para
meters startoffset start index of the text to be deleted.
...And 4 more matches
mozIAsyncFavicons
void getfaviconurlforpage( in nsiuri apageuri, in nsifavicondatacallback acallback ); para
meters apageuri uri of the page whose favicon's url we're looking up.
...void getfaviconurlforpage( in nsiuri apageuri, in nsifavicondatacallback acallback ); para
meters apageuri uri of the page whose favicon uri and data we're looking up.
...the auri para
meter will be the favicon uri, or null when no favicon is associated with the page or an error occurred while fetching it.
...And 4 more matches
mozIStorageBindingParamsArray
the mozistoragebindingparamsarray interface is a container for mozistoragebindingparams objects, and is used to store sets of bound para
meters that will be used by the mozistoragestatement.executeasync().
... method overview void addparams(in mozistoragebindingparams apara
meters); mozistoragebindingparams newbindingparams(); attributes attribute type description length unsigned long the number of mozistoragebindingparams objects in the array.
... methods addparams() adds the specified set of para
meters to the end of the array.
...And 4 more matches
nsIAbCard
allowremotecontent boolean allow remote content to be displayed in html mail received from this contact methods getcardvalue() astring getcardvalue(in string name) para
meters name the attribute you want the value for.
... setcardvalue() void setcardvalue(in string attrname, in astring value) para
meters attrname the attribute you want to set.
... void copy(in nsiabcard srccard) para
meters srccard the source card to copy values from.
...And 4 more matches
nsIAccessibleEditableText
void copytext( in long startpos, in long endpos ); para
meters startpos start offset of the text to be copied into the clipboard.
... void cuttext( in long startpos, in long endpos ); para
meters startpos start offset of the text to be deleted and copied to clipboard.
... void deletetext( in long startpos, in long endpos ); para
meters startpos start offset of the text to be deleted.
...And 4 more matches
nsIAccessibleSelectable
void addchildtoselection( in long index ); para
meters index the zero-based accessible child index.
...void clearselection(); para
meters none.
...nsiarray getselectedchildren(); para
meters none.
...And 4 more matches
nsIAutoCompleteInput
searchparam astring an additional para
meter used for configuring searches.
...acstring getsearchat( in unsigned long index ); para
meters index the index number of the search session object whose name is to be returned.
...void onsearchbegin(); para
meters none.
...And 4 more matches
nsIChannel
inherits from: nsirequest last changed in gecko 19.0 (firefox 19.0 / thunderbird 19.0 / seamonkey 2.16) once a channel is created (via nsiioservice.newchannel()), para
meters for that request may be set by using the channel attributes, or by calling queryinterface() to retrieve a subclass of nsichannel for protocol-specific para
meters.
... note: as of gecko 19.0, this para
meter changed from long to int64_t.
...a value assigned to this attribute will be parsed and normalized as follows: any para
meters (delimited with a ';') will be stripped.
...And 4 more matches
nsIClipboard
void emptyclipboard( in long awhichclipboard ); para
meters awhichclipboard specifies the clipboard to which this operation applies.
... void forcedatatoclipboard( in long awhichclipboard ); para
meters awhichclipboard specifies the clipboard to which this operation applies.
... void getdata( in nsitransferable atransferable, in long awhichclipboard ); para
meters atransferable the transferable to receive data from the clipboard.
...And 4 more matches
nsIConsoleService
void getmessagearray( [array, size_is(count)] out nsiconsolemessage messages, out pruint32 count ); para
meters messages an array of logged messages.
... void getmessagearray( [optional] out pruint32 count, [retval, array, size_is(count)] out nsiconsolemessage messages ); para
meters count the number of messages in the array.
... logmessage() void logmessage( in nsiconsolemessage message ); para
meters message the nsiconsolemessage to log.
...And 4 more matches
nsIDOMGeoGeolocation
void clearwatch( in unsigned short watchid ); para
meters none.
...void getcurrentposition( in nsidomgeopositioncallback successcallback, [optional] in nsidomgeopositionerrorcallback errorcallback, [optional] in nsidomgeopositionoptions options ); para
meters successcallback an nsidomgeopositioncallback to be called when the current position is available.
... errorcallback an nsidomgeopositionerrorcallback that is called if an error occurs while retrieving the position; this para
meter is optional.
...And 4 more matches
nsIDOMWindow
nsidomcssstyledeclaration getcomputedstyle( in nsidomelement elt, in domstring pseudoelt optional ); para
meters elt pseudoelt optional return value getselection() returns the nsiselection object indicating what if any content is currently selected in the window.
... nsiselection getselection(); para
meters none.
... void scrollby( in long xscrolldif, in long yscrolldif ); para
meters xscrolldif the number of pixels by which to scroll horizontally.
...And 4 more matches
nsIEditorMailSupport
nsisupportsarray getembeddedobjects(); para
meters none.
...nsidomnode insertascitedquotation( in astring aquotedtext, in astring acitation, in boolean ainserthtml ); para
meters aquotedtext the actual text to be quoted.
...nsidomnode insertasquotation( in astring aquotedtext ); para
meters aquotedtext the actual text to be quoted.
...And 4 more matches
nsIFormHistory2
void addentry( in astring name, in astring value ); para
meters name value entryexists() gets whether a name and value pair exists in the form history.
... boolean entryexists( in astring name, in astring value ); para
meters name value return value nameexists() returns true if there is no entry that is paired with a name.
... boolean nameexists( in astring name ); para
meters name return value removeallentries() removes all entries in the entire form history.
...And 4 more matches
nsIInstallLocation
astring getidforlocation( in nsifile file ); para
meters file the location where an item might live.
...nsifile getitemfile( in astring id, in astring path ); para
meters id the guid of the item.
...nsifile getitemlocation( in astring id ); para
meters id the guid of the item.
...And 4 more matches
nsIJetpack
); para
meters amessagename the name of the message to send.
...void registerreceiver( in astring amessagename, in jsval areceiver ); para
meters amessagename the name of the message from the jetpack process on which the callback is triggered.
... unregisterreceiver() this unregisters a callback previously registered with registerreceiver() void unregisterreceiver( in astring amessagename, in jsval areceiver ); para
meters amessagename the name of the message on which the callback should no longer be triggered.
...And 4 more matches
nsILocaleService
nsilocale getapplicationlocale(); para
meters none.
...astring getlocalecomponentforuseragent(); para
meters none.
...nsilocale getlocalefromacceptlanguage( in string acceptlanguage ); para
meters acceptlanguage locale preference in the same format as the accept-language http header.
...And 4 more matches
nsIMemory
voidptr alloc( in size_t size ); para
meters size the size of the block to allocate.
... void free( in voidptr ptr ); para
meters ptr the address of the memory block to free.
... void heapminimize( in boolean immediate ); para
meters immediate if true, heap minimization will occur immediately if the call was made on the main thread.
...And 4 more matches
nsIMemoryReporterManager
nsisimpleenumerator enumeratemultireporters(); para
meters none.
...nsisimpleenumerator enumeratereporters(); para
meters none.
...void init(); para
meters none.
...And 4 more matches
nsIPlacesImportExportService
void backupbookmarksfile(); para
meters none.
... void exporthtmltofile( in nsilocalfile afile ); para
meters afile an nsilocalfile indicating where to save the new bookmarks.html file.
...observers will be passed through their data para
meters either "html" if aisinitialimport is false or "html-initial" if aisinitialimport is true.
...And 4 more matches
nsIPrefService
nsiprefbranch getbranch( in string aprefroot ); para
meters aprefroot the preference root tree on which to base this branch.
... nsiprefbranch getdefaultbranch( in string aprefroot ); para
meters aprefroot the preference root tree on which to base this branch.
... note: if nsnull is passed in for the afile para
meter the default preferences file(s) [prefs.js, user.js] will be read and processed.
...And 4 more matches
nsIProcess
void init( in nsifile executable ); para
meters executable the nsifile executable file to be represented by the nsiprocess object.
... void initwithpid( in unsigned long pid ); para
meters pid the process id to begin to represent.
... void kill(); para
meters none.
...And 4 more matches
nsIProfile
void cloneprofile( in wstring profilename ); para
meters profilename the name to assign to the new clone of the current profile.
...void createnewprofile( in wstring profilename, in wstring nativeprofiledir, in wstring langcode, in boolean useexistingdir ); para
meters profilename the name to assign to the new profile.
...void deleteprofile( in wstring name, in boolean candeletefiles ); para
meters name the name of the profile to delete.
...And 4 more matches
nsIServerSocket
void asynclisten( in nsiserversocketlistener alistener ); para
meters alistener the listener to be notified when client connections are accepted.
... void close(); para
meters none.
... prnetaddr getaddress(); para
meters none.
...And 4 more matches
nsIURLParser
out para
meters of the methods are all optional (that is the caller may pass-in a null value if the corresponding results are not needed).
... signed out para
meters may hold a value of -1 if the corresponding result is not part of the string being parsed.
...auth = <username>:<password>@<hostname>:<port> void parseauthority( in string authority, in long authoritylen, out unsigned long usernamepos, out long usernamelen, out unsigned long passwordpos, out long passwordlen, out unsigned long hostnamepos, out long hostnamelen, out long port ); para
meters authority authoritylen usernamepos usernamelen passwordpos passwordlen hostnamepos hostnamelen port parsefilename() filename = <basename>.<extension> void parsefilename( in string filename, in long filenamelen, out unsigned long basenamepos, out long basenamelen, out unsigned long extensionpos, out long extensionlen ); para
meters filename filenamelen basenamepos basen...
...And 4 more matches
nsIUpdatePrompt
void checkforupdates(); para
meters none.
...void showupdateavailable( in nsiupdate update ); para
meters update an nsiupdate describing the update that's available.
...void showupdatedownloaded( in nsiupdate update, in boolean background optional ); para
meters update an nsiupdate describing the update that was downloaded.
...And 4 more matches
nsIWebBrowserPersist
void cancelsave(); para
meters none.
... void savechannel( in nsichannel achannel, in nsisupports afile ); para
meters achannel the nsichannel to save to a file.
... void savedocument( in nsidomdocument adocument, in nsisupports afile, in nsisupports adatapath, in string aoutputcontenttype, in unsigned long aencodingflags, in unsigned long awrapcolumn ); para
meters adocument document to save to file.
...And 4 more matches
nsIWebProgress
constants the following flags may be combined to form the anotifymask para
meter for the addprogresslistener() method.
... constant value description notify_state_request 0x00000001 only receive the nsiwebprogresslistener.onstatechange() event if the astateflags para
meter includes nsiwebprogresslistener::state_is_request.
... notify_state_document 0x00000002 only receive the nsiwebprogresslistener.onstatechange() event if the astateflags para
meter includes nsiwebprogresslistener::state_is_document.
...And 4 more matches
Setting HTTP request headers
(this variable could have been named anything though.) the setrequestheader method takes 3 para
meters.
... the first para
meter is the name of the http request header.
... the second para
meter is the value of the http request header.
...And 4 more matches
Working with windows in chrome code
opening windows from a <script> in a window or an overlay to open a new window, we usually use a window.open or window.opendialog dom call, like this: var win = window.open("chrome://myextension/content/about.xul", "aboutmyextension", "chrome,centerscreen"); the first para
meter to window.open is the uri of the xul file that describes the window and its contents.
... the second para
meter is the window's name; the name can be used in links or forms as the target attribute.
... the third, and optional, para
meter is a list of special window features the window should have.
...And 4 more matches
AudioBuffer() - Web APIs
syntax var audiobuffer = new audiobuffer(options); para
meters inherits para
meters from the audionodeoptions dictionary.
... deprecated para
meters context a reference to an audiocontext.
... this para
meter was removed from the spec.
...And 4 more matches
FileSystemDirectoryEntry.getDirectory() - Web APIs
syntax filesystemdirectoryentry.getdirectory([path][, options][, successcallback][, errorcallback]); para
meters path optional a usvstring representing an absolute path or a path relative to the directory on which the method is called, describing which directory entry to return.
...the method receives a single para
meter: the filesystemdirectoryentry object representing the directory in question.
...receives as its sole input para
meter a fileerror object describing the error which occurred.
...And 4 more matches
FileSystemDirectoryEntry.getFile() - Web APIs
syntax filesystemdirectoryentry.getfile([path][, options][, successcallback][, errorcallback]); para
meters path optional a usvstring specifying the path, relative to the directory on which the method is called, describing which file's entry to return.
...the method receives a single para
meter: the filesystemfileentry object representing the file in question.
...receives as its sole input para
meter a fileerror object describing the error which occurred.
...And 4 more matches
FileSystemEntrySync - Web APIs
[ todo: specify what kind of metadata ] metadata getmetada () raises (fileexception); para
meter none returns metadata exceptions this method can raise a fileexception with the following codes: exception description not_found_err the entry does not exist.
...you can keep it in the same location and then define the newname para
meter.
... filesystementrysync moveto ( in directoryentrysync parent, optional domstring newname ) raises (fileexception); para
meters parent the directory to which to move the entry.
...And 4 more matches
Using IndexedDB - Web APIs
the second para
meter to the open method is the version of the database.
...the method takes a name of the store, and a para
meter object.
... even though the para
meter object is optional, it is very important, because it lets you define important optional properties and refine the type of object store you want to create.
...And 4 more matches
SVGTransform - Web APIs
methods name & arguments return description setmatrix(in svgmatrix matrix) void sets the transform type to svg_transform_matrix, with para
meter matrix defining the new transformation.
... note that the values from the para
meter matrix are copied.
... settranslate(in float tx , in float ty) void sets the transform type to svg_transform_translate, with para
meters tx and ty defining the translation amounts.
...And 4 more matches
SubtleCrypto.unwrapKey() - Web APIs
syntax const result = crypto.subtle.unwrapkey( format, wrappedkey, unwrappingkey, unwrapalgo, unwrappedkeyalgo, extractable, keyusages ); para
meters format is a string describing the data format of the key to unwrap.
... unwrapalgo is an object specifying the algorithm to be used to encrypt the exported key, and any extra para
meters as required: to use rsa-oaep, pass an rsaoaepparams object.
... unwrappedkeyalgo is a dictionary object defining the type of key to unwrap and providing extra algorithm-specific para
meters as required.
...And 4 more matches
URLSearchParams.set() - Web APIs
the set() method of the urlsearchparams interface sets the value associated with a given search para
meter to the given value.
...if the search para
meter doesn't exist, this method creates it.
... syntax urlsearchparams.set(name, value) para
meters name the name of the para
meter to set.
...And 4 more matches
URLSearchParams - Web APIs
methods urlsearchparams.append() appends a specified key/value pair as a new search para
meter.
... urlsearchparams.delete() deletes the given search para
meter, and its associated value, from the list of all search para
meters.
... urlsearchparams.get() returns the first value associated with the given search para
meter.
...And 4 more matches
WebGL2RenderingContext - Web APIs
state information webgl2renderingcontext.getindexedpara
meter() returns the indexed value for the given target.
... renderbuffers webgl2renderingcontext.getinternalformatpara
meter() returns information about implementation-dependent support for internal formats.
... webgl2renderingcontext.getquerypara
meter() returns information about a query.
...And 4 more matches
WebGLRenderingContext.pixelStorei() - Web APIs
syntax void gl.pixelstorei(pname, param); para
meters pname a glenum specifying which para
meter to set.
... param a glint specifying a value to set the pname para
meter to.
... pixel storage para
meters para
meter name (for pname) description type default value allowed values (for param) specified in gl.pack_alignment packing of pixel data into memory glint 4 1, 2, 4, 8 opengl es 2.0 gl.unpack_alignment unpacking of pixel data from memory.
...And 4 more matches
Rendering and the WebXR frame animation callback - Web APIs
webxr frames your frame rendering callback function receives as input two para
meters: the time to which the frame corresponds, and an xrframe object describing the state of the scene as of that time.
... the typical human's pupillary distance—the distance between the centers of the pupils—is between 54 and 74 milli
meters (0.054 to 0.074
meters).
... so if the center of the viewer's head is located at [0.0, 2.0, 0.0] (about two
meters above ground level at the center of the space horizontally), we first need to render the scene from, say, [-0.032, 2.0, 0.0] (32mm to the left of center) and then render it again at [0.032, 2.0, 0.0].
...And 4 more matches
Window.open() - Web APIs
syntax var window = window.open(url, windowname, [windowfeatures]); para
meters url a domstring indicating the url of the resource to be loaded.
...the url para
meter specifies the url to be fetched and loaded in the new window.
...if windowname does not specify an existing window and the windowfeatures para
meter is not provided (or if the windowfeatures para
meter is an empty string), then the new secondary window will render the default toolbars of the main window.
...And 4 more matches
font-variant-alternates - CSS: Cascading Style Sheets
on(user-defined-ident); font-variant-alternates: swash(ident1) annotation(ident2); /* global values */ font-variant-alternates: initial; font-variant-alternates: inherit; font-variant-alternates: unset; the @font-feature-values at-rule can define names for alternative glyph functions (stylistic, styleset, character-variant, swash, ornament or annotation), associating the name with opentype para
meters.
...the para
meter is a font-specific name mapped to a number.
...the para
meter is a font-specific name mapped to a number.
...And 4 more matches
HTML attribute reference - HTML: Hypertext Markup Language
form <button>, <fieldset>, <input>, <keygen>, <label>, <
meter>, <object>, <output>, <progress>, <select>, <textarea> indicates the form that is the owner of the element.
... high <
meter> indicates the lower bound of the upper range.
... low <
meter> indicates the upper bound of the lower range.
...And 4 more matches
Content-Disposition - HTTP
the content-disposition header is defined in the larger context of mime messages for e-mail, but only a subset of the possible para
meters apply to http forms and post requests.
... header type response header (for the main body) general header (for a subpart of a multipart body) forbidden header name no syntax as a response header for the main body the first para
meter in the http context is either inline (default value, indicating it can be displayed inside the web page, or as the web page) or attachment (indicating it should be downloaded; most browsers presenting a 'save as' dialog, prefilled with the value of the filename para
meters if present).
... content-disposition: inline content-disposition: attachment content-disposition: attachment; filename="filename.jpg" as a header for a multipart body the first para
meter in the http context is always form-data.
...And 4 more matches
A re-introduction to JavaScript (JS tutorial) - JavaScript
a javascript function can take 0 or more named para
meters.
... the named para
meters turn out to be more like guidelines than anything else.
... you can call a function without passing the para
meters it expects, in which case they will be set to undefined.
...And 4 more matches
Functions - JavaScript
in the case of a constructor called with the new keyword, the default value is the value of its this para
meter.
... the para
meters of a function call are the function's arguments.
...argn zero or more names to be used by the function as formal para
meters.
...And 4 more matches
Promise() constructor - JavaScript
syntax new promise(executor) para
meters executor a function to be executed by the constructor, during the process of constructing the promiseobj.
... the invocation of resolutionfunc includes a value para
meter.
...the value received by promiseobj.then() is passed to the invocation of handlefulfilled as an input para
meter (see "chained promises" section).
...And 4 more matches
String.prototype.replaceAll() - JavaScript
para
meters regexp (pattern) a regexp object or literal with the global flag.
... newsubstr (replacement) the string that replaces the substring specified by the specified regexp or substr para
meter.
... a number of special replacement patterns are supported; see the "specifying a string as a para
meter" section below.
...And 4 more matches
panel - Archive of obsolete content
para
meters options : object optional options: name type width number the width of the panel in pixels.
... para
meters message : value the message to send.
... para
meters options : object optional options: name type width number the width of the panel in pixels.
...And 3 more matches
places/bookmarks - Archive of obsolete content
para
meters options : object required options: name type title string the title for the bookmark.
... para
meters options : object required options: name type title string the title for the group.
... para
meters options : object optional options: name type group group the parent group that the bookmark group lives under.
...And 3 more matches
ui/frame - Archive of obsolete content
once created, the frame needs to be added to a toolbar for it to be visible: var { frame } = require("sdk/ui/frame"); var { toolbar } = require("sdk/ui/toolbar"); var frame = new frame({ url: "./frame.html" }); var toolbar = toolbar({ name: "my-toolbar", title: "my toolbar", items: [frame] }); para
meters options : object required options: name type url url, string a url pointing to the html file specifying the frame's content.
... para
meters message : string the message to send.
...: frame.postmessage("ping", frame.url); on(event, listener) assign a listener to a frame event: var { frame } = require("sdk/ui/frame"); var frame = new frame({ url: "./frame.html" }); frame.on("message", pong) function pong(e) { if (e.data == "ping") { // message only the sender, and not any frames attached to other browser windows e.source.postmessage("pong", "*"); } } para
meters event : string the name of the event to listen to.
...And 3 more matches
ui/toolbar - Archive of obsolete content
the only mandatory option is title, but for the toolbar to contain any actual content, the items para
meter must also be supplied, and must contain at least object.
...var { toolbar } = require("sdk/ui/toolbar"); var { frame } = require("sdk/ui/frame"); var frame = new frame({ url: "./frame.html" }); var toolbar = toolbar({ title: "my toolbar", items: [frame], hidden: true, onshow: showing, onhide: hiding }); function showing(e) { console.log("showing"); console.log(e); } function hiding(e) { console.log("hiding"); console.log(e); } para
meters options : object required options: name type title string the toolbar's title.
...vent: var { toolbar } = require("sdk/ui/toolbar"); var { frame } = require("sdk/ui/frame"); var frame = new frame({ url: "./frame.html" }); var toolbar = toolbar({ title: "my toolbar", items: [frame] }); toolbar.on("show", showing); toolbar.on("hide", hiding); function showing(e) { console.log("showing: " + e.title); } function hiding(e) { console.log("hiding: " + e.title); } para
meters event : string the name of the event to listen to.
...And 3 more matches
Elements - Archive of obsolete content
the following xul display types may be used: browser, button, checkbox, description, editor, grippy, iframe, image, label, menu, menuitem, menubar, progress
meter, radio, resizer, scrollbar, scrollbox, spacer, splitter, titlebar, treechildren and treecol.
... method <!entity % method-content "(para
meter*,body?)"> <!element method %method-content;> <!attlist method id id #implied name cdata #required type cdata #implied > the method element is used to describe a single method of a binding implementation.
... example <method name="scrollto"> <para
meter name="index"/> <body> this.setattribute("scrollpos", index); </body> </method> para
meter <!element para
meter empty> <!attlist para
meter id id #implied name cdata #required > the para
meter element is used inside a method element.
...And 3 more matches
loadOneTab - Archive of obsolete content
the rest of the para
meters are optional.
... this method works the same as addtab except for the loadinbackground para
meter which allows you to choose whether to open the new tab in foreground or background.
... there's also no owner para
meter as the owner tab is specified automatically.
...And 3 more matches
NPN_GetValue - Archive of obsolete content
syntax #include <npapi.h> nperror npn_getvalue(npp instance, npnvariable variable, void *value); para
meters this function has the following para
meters: instance pointer to the current plug-in instance.
...the value para
meter should point to a npbool, which will be set appropriately if the function returns nperr_no_error.
...the value para
meter should point to an npbool, which will be set appropriately if the function returns nperr_no_error.
...And 3 more matches
NPN_SetValue - Archive of obsolete content
syntax #include <npapi.h> nperror npn_setvalue(npp instance, nppvariable variable, void *value); para
meters the function has the following para
meters: instance pointer to the plugin instance setting the variable.
...to set windowless operation, call npn_setvalue with nppvpluginwindowbool as the variable para
meter and false as the value para
meter.
...to specify an opaque mode, the plugin calls npn_setvalue with nppvplugintransparentbool for the variable para
meter and false for the value para
meter.
...And 3 more matches
Building up a basic demo with Babylon.js - Game development
to initialize it you need to pass it three para
meters: any name you want to use for it, the coordinates where you want it to be positioned in the 3d space, and the scene you want to add it to.
...add the following line below your camera definition: var light = new babylon.pointlight("light", new babylon.vector3(10, 10, 0), scene); the para
meters are very similar to the previously defined camera: the name of the light, a position in 3d space and the scene to which the light is added.
...for the box size) are unitless, and can basically be anything you deem suitable for your scene — mili
meters,
meters, feet, or miles — it's up to you.
...And 3 more matches
Advanced form styling - Learn web development
<input type="color"> date-related controls such as <input type="datetime-local"> <input type="range"> <input type="file"> <progress> and <
meter> let's first talk about the appearance property, which is pretty useful for making all of the above more stylable.
...in short, these are drop-down boxes, complex control types like color and datetime-local, and feedback—oriented controls like <progress> and <
meter>.
...d to it: body { font-family: 'josefin sans', sans-serif; margin: 20px auto; max-width: 400px; } form > div { margin-bottom: 20px; } select { -webkit-appearance: none; appearance: none; } .select-wrapper { position: relative; } .select-wrapper::after { content: "▼"; font-size: 1rem; top: 6px; right: 10px; position: absolute; } button, label, input, select, progress,
meter { display: block; font-family: inherit; font-size: 100%; padding: 0; margin: 0; box-sizing: border-box; width: 100%; padding: 5px; height: 30px; } input[type="text"], input[type="datetime-local"], input[type="color"], select { box-shadow: inset 1px 1px 3px #ccc; border-radius: 5px; } label { margin-bottom: 5px; } button { width: 60%; margin: 0 auto; } note: if you...
...And 3 more matches
Test your skills: Object-oriented JavaScript - Learn web development
we want you to: add a new method to the shape class's prototype, calcperi
meter(), which calculates its peri
meter (the length of the shape's outer edge) and logs the result to the console.
... call your calcperi
meter() method on the instance, to see whether it logs the calculation result to the browser devtools' console as expected.
... call triangle.calcperi
meter() to check that it works ok.
...And 3 more matches
React interactivity: Events and state - Learn web development
handling form submission via callbacks inside the top of our app() component function, create a function named addtask() which has a single para
meter of name: function addtask(name) { alert(name); } next, we'll pass addtask() into <form /> as a prop.
... usestate() creates a piece of state for a component, and its only para
meter determines the initial value of that state.
...this function will have an id para
meter, but we're not going to use it yet.
...And 3 more matches
Addon
the dialog receives the addon object representing your add-on as a para
meter.
... void datadirectorycallback( in string path, in error error ) para
meters path a string representation of the addon's data directory.
... void iscompatiblewith( in string appversion, in string platformversion ) para
meters appversion an application version to test against platformversion a platform version to test against findupdates() starts an update check for this add-on.
...And 3 more matches
L10n Checks
options reference locale in the source and xpi modes you can change the default reference locale (en-us) by setting the -r para
meter, e.g.: check-l10n-completeness -r pl browser/locales/l10n.ini ../l10n/ de output mode you can change the look and feel of the output by setting the -o para
meter to 0 (tree; default), 1 (full tree) or 2 (full relative paths), e.g.: check-l10n-completeness -o 2 browser/locales/l10n.ini ../l10n/ de en-us in the locale directory in the source mode you can tell l10n checks to look for the en-us loca...
...le in the directory containing all other locales instead of the directory containing the source by setting the -l para
meter (useful for e.g.
... "kompozer"), e.g.: check-l10n-completeness -l browser/locales/l10n.ini ../l10n/ de compare every directory in the source mode you can tell l10n checks to compare every directory, not only the ones set in the all-locales file, by setting the -f para
meter (useful for e.g.
...And 3 more matches
NSS API Guidelines
examples: pk11_slotgetseries(), pk11_symkeygetseries(), cert_certificateextractpublickey() para
meter ordering most functions will have a 'natural' ordering for para
meters.
... to keep consistency we should have some minimal para
meter consistency.
...nline, should have a consistent signature: secstatus my_functionname(mycontext *context, unsigned char *outbuf, secbufferlen *outlen, secbufferlenmaxoutlength, unsigned char *inbuf, secbufferleninlen) encrypt and decrypt like functions which have different properties, additional para
meters, callbacks, etc., should insert their additional para
meters between the context (first para
meter) and the output buffer.
...And 3 more matches
nss tech note5
e array of key bytes */ /* turn the secitem into a key object */ pk11symkey* symkey = pk11_importsymkey(slot, ciphermech, pk11_originunwrap, cka_encrypt, &keyitem, null); if generating the key - see section generate a symmetric key <big>prepare the para
meter for crypto context.
...if not using cbc mode, just pass a null iv parm to pk11_paramfromiv function secitem ivitem; ivitem.data = /* ptr to an array of iv bytes */ ivitem.len = /* length of the array of iv bytes */ secitem *secparam = pk11_paramfromiv(ciphermech, &ivitem);</big> <big>now encrypt and decrypt using the key and para
meter setup in above steps</big> create encryption context pk11context* enccontext = pk11_createcontextbysymkey(ciphermech, cka_encrypt or cka_decrypt, symkey, secparam); do the operation.
... <big>prepare the para
meter for crypto context.
...And 3 more matches
FC_Initialize
syntax ck_rv fc_initialize(ck_void_ptr pinitargs); para
meters pinitargs points to a ck_c_initialize_args structure.
... librarypara
meters should point to a string that contains the library para
meters.
... the library para
meters string has this format: "configdir='dir' certprefix='prefix1' keyprefix='prefix2' secmod='file' flags= " here are some examples.
...And 3 more matches
nsIAlertsService
void showalertnotification( in astring imageurl, in astring title, in astring text, in boolean textclickable, optional in astring cookie, optional in nsiobserver alertlistener, optional in astring name, optional in astring dir, optional in astring lang, optional in astring data, optional in nsiprincipal principal, optional in boolean inprivatebrowsing, optional ); para
meters imageurl a url identifying the image to display in the notification alert.
...it must implement an observe() method that accepts three para
meters: subject: always null.
... data: the value of the cookie para
meter passed into the showalertnotification method.
...And 3 more matches
nsICRLManager
osilentdownload, in wstring crlkey); void reschedulecrlautoupdate(); boolean updatecrlfromurl(in wstring url, in wstring key); constants constant value description type_autoupdate_time_based 1 type_autoupdate_freq_based 2 methods computenextautoupdatetime() wstring computenextautoupdatetime( in nsicrlinfo info, in unsigned long autoupdatetype, in double noofdays ); para
meters info autoupdatetype noofdays return value deletecrl() delete the crl.
... void deletecrl( in unsigned long crlindex ); para
meters crlindex getcrls() get a list of crl entries in the db.
... nsiarray getcrls(); para
meters none.
...And 3 more matches
nsICacheService
nsicachesession createsession( in string clientid, in nscachestoragepolicy storagepolicy, in boolean streambased ); para
meters clientid specifies the name of the client using the cache.
... acstring createtemporaryclientid( in nscachestoragepolicy storagepolicy ); para
meters storagepolicy the cache storage policy.
... void evictentries( in nscachestoragepolicy storagepolicy ); para
meters storagepolicy the cache storage policy.
...And 3 more matches
nsICommandController
content/xul/document/public/nsicontroller.idlscriptable an enhanced controller interface that supports passing para
meters to commands.
...-controller;1"] .createinstance(components.interfaces.nsicommandcontroller); method overview void docommandwithparams(in string command, in nsicommandparams acommandparams); void getcommandstatewithparams( in string command, in nsicommandparams acommandparams); methods docommandwithparams() executes the specified command with a set of para
meters contained in an nsicommandparams object.
... void docommandwithparams( in string command, in nsicommandparams acommandparams ); para
meters command the command to execute.
...And 3 more matches
nsIComponentManager
void addbootstrappedmanifestlocation( in interface nsilocalfile alocation ); para
meters alocation the directory or xpi from which to load the chrome.manifest.
...(see also nsifactory.createinstance.) void createinstance( in nscidref aclass, in nsisupports adelegate, in nsiidref aiid, [iid_is(aiid),retval] out nsqiresult result ); para
meters aclass the classid of the object instance that is being requested.
... void createinstancebycontractid( in string acontractid, in nsisupports adelegate, in nsiidref aiid, [iid_is(aiid),retval] out nsqiresult result ); para
meters acontractid the contractid of the object instance that is being requested.
...And 3 more matches
nsIContentSecurityPolicy
boolean permitsancestry( in nsidocshell docshell ); para
meters docshell containing the protected resource.
...void refinepolicy( in astring policystring, in nsiuri selfuri ); para
meters policystring selfuri scanrequestdata() called after the content security policy object is created to fill in the appropriate request and request header information needed in case a report needs to be sent.
... void scanrequestdata( in nsihttpchannel achannel ); para
meters achannel sendreports() manually triggers violation report sending given a uri and reason.
...And 3 more matches
nsICookieManager2
void add( in autf8string ahost, in autf8string apath, in acstring aname, in acstring avalue, in boolean aissecure, in boolean aishttponly, in boolean aissession, in print64 aexpiry ); para
meters ahost the host or domain for which the cookie is set.
... boolean cookieexists( in nsicookie2 acookie ); para
meters acookie the cookie to look for.
... unsigned long countcookiesfromhost( in autf8string ahost ); para
meters ahost the host string to look for, such as "google.com".
...And 3 more matches
nsIDOMOfflineResourceList
void mozadd( in domstring uri ); para
meters uri the uri of the resource to add to the list.
... void mozhasitem( in domstring uri ); para
meters uri the uri of the resource to check.
... domstring mozitem( in unsigned long index ); para
meters index the index of the cached item whose uri should be returned.
...And 3 more matches
nsIDOMParser
when you create a domparser from a privileged script, you can pass para
meters to the constructor, more on that below.
...if the caller has universalxpconnect privileges, it can pass para
meters to new domparser().
... if fewer than three para
meters are passed, the remaining para
meters will default to null.
...And 3 more matches
nsIDOMXULElement
void blur(); para
meters none.
...void click(); para
meters none.
...void docommand(); para
meters none.
...And 3 more matches
nsIDispatchSupport
void comvariant2jsval( in comvariantptr comvar, out jsval val ); para
meters comvar the com variant to be converted.
...unsigned long gethostingflags( in string acontext ); para
meters acontext return value isclassmarkedsafeforscripting() test if the specified class is marked safe for scripting.
... boolean isclassmarkedsafeforscripting( in nscidref cid, out boolean classexists ); para
meters cid the nsid representation of the clsid to test.
...And 3 more matches
nsIDocumentLoader
methods clearparentdocloader() obsolete since gecko 1.8 (firefox 1.5 / thunderbird 1.5 / seamonkey 1.0) void clearparentdocloader(); para
meters none.
... createdocumentloader() obsolete since gecko 1.8 (firefox 1.5 / thunderbird 1.5 / seamonkey 1.0) void createdocumentloader( out nsidocumentloader aninstance ); para
meters aninstance destroy() obsolete since gecko 1.8 (firefox 1.5 / thunderbird 1.5 / seamonkey 1.0) void destroy(); para
meters none.
... fireonlocationchange() obsolete since gecko 1.8 (firefox 1.5 / thunderbird 1.5 / seamonkey 1.0) void fireonlocationchange( in nsiwebprogress awebprogress, in nsirequest arequest, in nsiuri auri ); para
meters awebprogress arequest auri fireonstatuschange() obsolete since gecko 1.8 (firefox 1.5 / thunderbird 1.5 / seamonkey 1.0) void fireonstatuschange( in nsiwebprogress awebprogress, in nsirequest arequest, in nsresult astatus, in wstring amessage ); para
meters awebprogress arequest astatus amessage native code only!getcontentviewercontainer obsolete since gecko 1.8 (firefox 1.5 / thunderbird 1.5 / seamonkey 1.0)this feature is obsolete.
...And 3 more matches
nsIErrorService
string geterrorstringbundle( in short errormodule ); para
meters errormodule the module for which the string bundle is registered.
...string geterrorstringbundlekey( in nsresult error ); para
meters error the nsresult for which the string bundle key is to be retrieved.
...void registererrorstringbundle( in short errormodule, in string stringbundleurl ); para
meters errormodule the module for which the string bundle is to be registered.
...And 3 more matches
nsIFileProtocolHandler
nsifile getfilefromurlspec( in autf8string url ); para
meters url the url string to convert.
... autf8string geturlspecfromactualfile( in nsifile file ); para
meters file the nsifile to convert.
...autf8string geturlspecfromdir( in nsifile file ); para
meters file the nsifile to convert.
...And 3 more matches
nsIInputStream
unsigned long available(); para
meters none.
... void close(); para
meters none.
... isnonblocking() boolean isnonblocking(); para
meters none.
...And 3 more matches
nsIProgressEventSink
void onprogress( in nsirequest arequest, in nsisupports acontext, in unsigned long long aprogress, in unsigned long long aprogressmax ); para
meters arequest the request being observed (may qi to nsichannel).
... acontext if arequest is a channel, then this para
meter is the listener context passed to nsichannel.asyncopen().
...void onstatus( in nsirequest arequest, in nsisupports acontext, in nsresult astatus, in wstring astatusarg ); para
meters arequest the request being observed (may qi to nsichannel).
...And 3 more matches
nsIPushSubscription
void getkey( in domstring name, [optional] out uint32_t keylen, [array, size_is(keylen), retval] out uint8_t key ); para
meters name the encryption key name.
... keylen and key are out para
meters.
... when called from javascript, nsipushsubscription.getkey() only takes name as a para
meter, and returns key.
...And 3 more matches
nsISHistory
void addshistorylistener( in nsishistorylistener alistener ); para
meters alistener listener object to be notified for all page loads that initiate in session history.
...nsishentry getentryatindex( in long index, in boolean modifyindex ); para
meters index the index value whose entry is requested.
... modifyindex a boolean flag that indicates if the current index of session history should be modified to the para
meter index.
...And 3 more matches
nsISHistoryListener
boolean onhistorygoback( in nsiuri abackuri ); para
meters abackuri the uri of the session history entry being navigated to.
...boolean onhistorygoforward( in nsiuri aforwarduri ); para
meters aforwarduri the uri of the session history entry being navigated to.
...boolean onhistorygotoindex( in long aindex, in nsiuri agotouri ); para
meters aindex the index in session history of the entry to be loaded.
...And 3 more matches
nsIScreen
void getavailrect( out long left, out long top, out long width, out long height ); para
meters left the left edge of the available screen rectangle.
...void getrect( out long left, out long top, out long width, out long height ); para
meters left the left edge of the screen's rectangle.
...each call to this method must eventually be followed by a corresponding call to unlockminimumbrightness() with the same value for the brightness para
meter.
...And 3 more matches
nsISupportsArray
nst] in nsisupports aelement); violates the xpcom interface guidelines boolean replaceelementat(in nsisupports aelement, in unsigned long aindex); violates the xpcom interface guidelines boolean sizeto(in long asize); violates the xpcom interface guidelines methods violates the xpcom interface guidelines appendelements() boolean appendelements( in nsisupportsarray aelements ); para
meters aelements return value clone() nsisupportsarray clone(); para
meters none.
... return value compact() void compact(); para
meters none.
... deleteelementat() void deleteelementat( in unsigned long aindex ); para
meters aindex deletelastelement() void deletelastelement( in nsisupports aelement ); para
meters aelement violates the xpcom interface guidelines elementat() nsisupports elementat( in unsigned long aindex ); para
meters aindex return value enumeratebackwards() [notxpcom, noscript] boolean enumeratebackwards( in nsisupportsarrayenumfunc afunc, in voidptr adata ); para
meters afunc adata return value enumerateforwards() [notxpcom, noscript] boolean enumerateforwards( in nsisupportsarrayenumfunc afunc, in voidptr adata ); para
meters afunc adata return value violates the xpcom interface guidelines equals() boolean equals( [const] in nsisupportsarray other ); para
meters other ...
...And 3 more matches
nsIURI
nsiuri clone(); para
meters none.
... nsiuri cloneignoringref(); para
meters none.
... boolean equals( in nsiuri other ); para
meters other another nsiuri to compare to.
...And 3 more matches
nsIWebBrowserChrome
void destroybrowserwindow(); para
meters none.
...void exitmodaleventloop( in nsresult astatus ); para
meters astatus the result code to return from showasmodal().
...boolean iswindowmodal(); para
meters none.
...And 3 more matches
nsIWebSocketListener
void onacknowledge( in nsisupports acontext, in pruint32 asize ); para
meters acontext user defined context.
...void onbinarymessageavailable( in nsisupports acontext, in acstring amsg ); para
meters acontext user defined context.
...void onmessageavailable( in nsisupports acontext, in autf8string amsg ); para
meters acontext user defined context.
...And 3 more matches
nsIWinAppHelper
methods fixreg() obsolete since gecko 1.9 (firefox 3) invokes helper.exe with the /fixreg para
meter.
... note that this para
meter was never actually supported.
... void fixreg(); para
meters none.
...And 3 more matches
Int64
int64 int64( value ); para
meters value the value to assign the new 64-bit integer object.
... number compare( a, b ); para
meters a the first value to compare.
... number hi( num ); para
meters num the value whose high 32 bits are to be returned.
...And 3 more matches
UInt64
uint64 uint64( value ); para
meters value the value to assign the new 64-bit unsigned integer object.
... number compare( a, b ); para
meters a the first value to compare.
... number hi( num ); para
meters num the value whose high 32 bits are to be returned.
...And 3 more matches
AudioNode.connect() - Web APIs
the connect() method of the audionode interface lets you connect one of the node's outputs to a target, which may be either another audionode (thereby directing the sound data to the specified node) or an audioparam, so that the node's output data is automatically used to change the value of that para
meter over time.
... syntax var destinationnode = audionode.connect(destination, outputindex, inputindex); audionode.connect(destination, outputindex); para
meters destination the audionode or audioparam to which to connect.
...this para
meter is not allowed if the destination is an audioparam.
...And 3 more matches
AudioNode.disconnect() - Web APIs
syntax audionode.disconnect(); audionode.disconnect(output); audionode.disconnect(destination); audionode.disconnect(destination, output); audionode.disconnect(destination, output, input); return value undefined para
meters there are several versions of the disconnect() method, which accept different combinations of para
meters to control which nodes to disconnect from.
... if no para
meters are provided, all outgoing connections are disconnected.
...if this value is an audionode, a single node is disconnected from, with any other, optional, para
meters (output and/or input) further limiting which inputs and/or outputs should be disconnected.
...And 3 more matches
Using images - Web APIs
in its most basic form it looks like this: drawimage(image, x, y) draws the canvasimagesource specified by the image para
meter at the coordinates (x, y).
...mg.onload = function() { ctx.drawimage(img, 0, 0); ctx.beginpath(); ctx.moveto(30, 96); ctx.lineto(70, 66); ctx.lineto(103, 76); ctx.lineto(170, 15); ctx.stroke(); }; img.src = 'https://mdn.mozillademos.org/files/5395/backdrop.png'; } the resulting graph looks like this: screenshotlive sample scaling the second variant of the drawimage() method adds two new para
meters and lets us place scaled images on the canvas.
... drawimage(image, x, y, width, height) this adds the width and height para
meters, which indicate the size to which to scale the image when drawing it onto the canvas.
...And 3 more matches
DynamicsCompressorNode() - Web APIs
syntax var dynamicscompressornode = new dynamicscompressornode(context, options) para
meters context a reference to an audiocontext.
...this para
meter is k-rate.
...this para
meter is k-rate.
...And 3 more matches
HTMLSelectElement.add() - Web APIs
syntax collection.add(item[, before]); para
meters item is an htmloptionelement or htmloptgroupelement before is optional and an element of the collection, or an index of type long, representing the item item should be inserted before.
... if this para
meter is null (or the index does not exist), the new element is appended to the end of the collection.
...ument.createelement("option"); var opt2 = document.createelement("option"); opt1.value = "1"; opt1.text = "option: value 1"; opt2.value = "2"; opt2.text = "option: value 2"; sel.add(opt1, null); sel.add(opt2, null); /* produces the following, conceptually: <select> <option value="1">option: value 1</option> <option value="2">option: value 2</option> </select> */ the before para
meter is optional.
...And 3 more matches
Media Capabilities API - Web APIs
to test support, smoothness and power efficiency of a video or audio file, you define the media configuration you want to test, and then pass the audio or video configuration as the para
meter of the mediacapabilities interface's encodinginfo() and decodinginfo() methods.
... media capabilities dictionaries mediaconfiguration describes how video and audio configuration dictionaries must be configured, or defined, to be passed as a para
meter of the mediacapabilities.encodinginfo() and mediacapabilities.decodinginfo() methods.
... mediadecodingconfiguration defines the valid values for allowed types of media when the media configuration is submitted as the para
meter for mediacapabilities.decodinginfo().
...And 3 more matches
PaymentRequest.PaymentRequest() - Web APIs
syntax var paymentrequest = new paymentrequest(methoddata, details, [options]); para
meters methoddata contains an array of identifiers for the payment methods the merchant web site accepts and any associated payment method specific data.
...starting with more recent browsers, this para
meter is more generic than credit cards, it is a single domstring, and the meaning of the data para
meter changes with the supportedmethods.
...this para
meter contains the following fields: total the total amount of the payment request.
...And 3 more matches
RTCPeerConnection.addIceCandidate() - Web APIs
if the candidate para
meter is missing or a value of null is given when calling addicecandidate(), the added ice candidate is an "end-of-candidates" indicator.
... syntax apromise = pc.addicecandidate(candidate); addicecandidate(candidate, successcallback, failurecallback); para
meters candidate optional an object conforming to the rtcicecandidateinit dictionary, or an rtcicecandidate object; the contents of the object should be constructed from a message received over the signaling channel, describing a newly received ice candidate that's ready to be delivered to the local ice agent.
... if no candidate object is specified, or its value is null, an end-of-candidates signal is sent to the remote peer using the end-of-candidates a-line, formatted simply like this: a=end-of-candidates deprecated para
meters in older code and documentation, you may see a callback-based version of this function.
...And 3 more matches
ReadableStream.ReadableStream() - Web APIs
syntax var readablestream = new readablestream(underlyingsource[, queuingstrategy]); para
meters underlyingsource an object containing methods and properties that define how the constructed stream instance will behave.
...the controller para
meter passed to this method is a readablestreamdefaultcontroller or a readablebytestreamcontroller, depending on the value of the type property.
...the controller para
meter passed to this method is a readablestreamdefaultcontroller or a readablebytestreamcontroller, depending on the value of the type property.
...And 3 more matches
Using textures in WebGL - Web APIs
turn off mips and set // wrapping to clamp to edge gl.texpara
meteri(gl.texture_2d, gl.texture_wrap_s, gl.clamp_to_edge); gl.texpara
meteri(gl.texture_2d, gl.texture_wrap_t, gl.clamp_to_edge); gl.texpara
meteri(gl.texture_2d, gl.texture_min_filter, gl.linear); } }; image.src = url; return texture; } function ispowerof2(value) { return (value & (value - 1)) == 0; } the loadtexture() routine starts by creating a webgl texture object text...
... mipmapping and uv repeating can be disabled with texpara
meteri().
...gl.texpara
meteri(gl.texture_2d, gl.texture_min_filter, gl.linear); // prevents s-coordinate wrapping (repeating).
...And 3 more matches
Geometry and reference spaces in WebXR - Web APIs
lengths and distances webgl measures all distances and lengths in
meters.
... webxr inherits this standard, as well as the fact that the world is a cube two
meters wide, two
meters tall, and two
meters deep.
... this two cubic
meter space encompasses the entire universe for the purposes of your code.
...And 3 more matches
<length> - CSS: Cascading Style Sheets
the consequence of this definition is that on such devices, dimensions described in inches (in), centi
meters (cm), or milli
meters (mm) don't necessary match the size of the physical unit with the same name.
... for high-dpi devices, inches (in), centi
meters (cm), and milli
meters (mm) are the same as their physical counterparts.
... cm one centi
meter.
...And 3 more matches
pointer-events - CSS: Cascading Style Sheets
when a mouse cursor is over the interior (i.e., 'fill') of the element and the fill property is set to a value other than none, or when a mouse cursor is over the peri
meter (i.e., 'stroke') of the element and the stroke property is set to a value other than none.
...when the mouse cursor is over the peri
meter (i.e., stroke) of the element.
...the mouse cursor is over either the interior (i.e., fill) or the peri
meter (i.e., stroke) of the element.
...And 3 more matches
<keygen> - HTML: Hypertext Markup Language
the element is written as follows: <keygen name="name" challenge="challenge string" keytype="type" keyparams="pqg-params"> the keytype para
meter is used to specify what type of key is to be generated.
... for rsa keys, the keyparams para
meter is not used (ignored if present).
... for dsa keys, the keyparams para
meter specifies the dsa pqg para
meters which are to be used in the keygen process.
...And 3 more matches
JSON.stringify() - JavaScript
syntax json.stringify(value[, replacer[, space]]) para
meters value the value to convert to a json string.
...if this para
meter is not provided (or is null), no white space is used.
...r('foo')]: 'foo' }, function(k, v) { if (typeof k === 'symbol') { return 'a symbol'; } }); // undefined // non-enumerable properties: json.stringify( object.create(null, { x: { value: 'x', enumerable: false }, y: { value: 'y', enumerable: true } }) ); // '{"y":"y"}' // bigint values throw json.stringify({x: 2n}); // typeerror: bigint value can't be serialized in json the replacer para
meter the replacer para
meter can be either a function or an array.
...And 3 more matches
Trailing commas - JavaScript
trailing commas (sometimes called "final commas") can be useful when adding new elements, para
meters, or properties to javascript code.
... javascript has allowed trailing commas in array literals since the beginning, and later added them to object literals (ecmascript 5) and most recently (ecmascript 2017) to function para
meters.
... var arr = [1, 2, 3,,,]; arr.length; // 5 objects starting with ecmascript 5, trailing commas in object literals are legal as well: var object = { foo: "bar", baz: "qwerty", age: 42, }; trailing commas in functions ecmascript 2017 allows trailing commas in function para
meter lists.
...And 3 more matches
Basic shapes - SVG: Scalable Vector Graphics
some of the para
meters that determine their position and size are given, but an element reference would probably contain more accurate and complete descriptions along with other properties that won't be covered in here.
...different elements correspond to different shapes and take different para
meters to describe the size and position of those shapes.
...the one on the right has its rx and ry para
meters set, giving it rounded corners.
...And 3 more matches
Advanced Example - XSLT: Extensible Stylesheet Language Transformations
using the xsltprocessor.getpara
meter() method, the code can figure whether to sort in ascending or descending order.
... it defaults to ascending if the para
meter is empty (the first time the sorting happens, as there is no value for it in the xslt file).
... the sorting value is set using xsltprocessor.setpara
meter().
...And 3 more matches
content/mod - Archive of obsolete content
for example, the following code applies a style to a content window, adding a border to all divs in page: var attachto = require("sdk/content/mod").attachto; var style = require("sdk/stylesheet/style").style; var style = style({ source: "div { border: 4px solid gray }" }); // assuming window points to the content page we want to modify attachto(style, window); para
meters modification : object the modification we want to apply to the target.
...detachfrom(style, window); para
meters modification : object the modification we want to remove from the target window : nsidomwindow the window to be modified.
... para
meters target : object the object for which we want to obtain the window represented or contained.
...And 2 more matches
io/text-streams - Archive of obsolete content
para
meters inputstream : stream the backing stream, an nsiinputstream.
... para
meters outputstream : stream the backing stream, an nsioutputstream.
... para
meters numchars : number the number of characters to read.
...And 2 more matches
Bootstrapped extensions - Archive of obsolete content
void startup( data, reason ); para
meters data a bootstrap data structure.
... void shutdown( data, reason ); para
meters data a bootstrap data structure.
... void install( data, reason ); para
meters data a bootstrap data structure.
...And 2 more matches
Installing Extensions and Themes From Web Pages - Archive of obsolete content
users can save the xpi file to disk easily by right clicking on the link and choosing "save link as..." when the link is clicked it calls the function install passing the event object as the para
meter.
... the install first creates a para
meter block: var params = { "foo": { url: aevent.target.href, iconurl: aevent.target.getattribute("iconurl"), hash: aevent.target.getattribute("hash"), tostring: function () { return this.url; } }; this specifies the display name (foo) for use in the confirmation dialog, the url to the extension (which is the link href, recall), the icon url to display in the confirmation dialog, a hash of the xpi file contents (to protect against corrupted downloads), and a tostring function which will allow this code to work with versions of firefox 0.8 and earlier.
... you could also use the old style para
meter block ({ "foo": aevent.target.href }) if you wanted - and didn't have an icon to use for the confirmation dialog.
...And 2 more matches
Migrating from Internal Linkage to Frozen Linkage - Archive of obsolete content
the (lossy)copy(ascii|utf8|16)to(ascii|utf8|16) do not accept character pointer para
meters.
...the equalsignorecase method does not take a length para
meters.
...instead of passing getter_copies(astring) to a method expecting a character pointer out para
meter, you will need to use a temporary variable and copy the result.missing headers some headers are included from idl files only when mozilla_internal_api is defined (actually, they shouldn't be there at all).
...And 2 more matches
Modularization techniques - Archive of obsolete content
out para
meters functions that return a new interface should call addref() on that interface before returning it.
... in para
meters and local pointers interfaces that are passed in to a function and local copies of that interface pointer are assumed to be in the lifetime of the calling function, and do not need to have addref() called.
... nsresult tweekfoo(ifoo *afoo1, ifoo *afoo2) { ifoo local = afoo; if (afoo->bar() == ns_ok) { local = afoo2; } return local->boff(); } in-out para
meters in-out para
meters are used as both in para
meters and out para
meters.
...And 2 more matches
Configuration - Archive of obsolete content
configuration a webapp profile is a simple, ini-style text file that specifies some para
meters about a webapp.
...the para
meters also control some of the features of the prism host window.
... here is the list of para
meters: id the unique name of this web application.
...And 2 more matches
addFile - Archive of obsolete content
object localdirspec, string relativelocalpath, boolean forceupdate); public int addfile ( string xpisourcepath); public int addfile ( string registryname, string xpisourcepath, object localdirspec, string relativelocalpath); public int addfile ( string registryname, string version, string xpisourcepath, object localdirspec, string relativelocalpath); para
meters the addfile method has the following para
meters: registryname the pathname in the client version registry about the file.
... this para
meter can be an absolute pathname, such as /royalairways/royalsw/executable or a relative pathname, such as executable.
...this para
meter can also be null, in which case the xpisourcepath para
meter is used as a relative pathname.note that the registry pathname is not the location of the software on the machine; it is the location of information about the software inside the client version registry.
...And 2 more matches
execute - Archive of obsolete content
method of install object syntax int execute ( string xpisourcepath [, boolean blocking]); int execute ( string xpisourcepath, string args [, boolean blocking]); para
meters the execute method has the following para
meters: xpisourcepath the pathname of the file to extract and execute.
... (note that this path points into the xpi itself.) args a para
meter string that is passed to the executable.
...the blocking para
meter is not available as part of this method in versions of netscape before 6.1/mozilla 0.9.3.
...And 2 more matches
Styling a Tree - Archive of obsolete content
::-moz-tree-progress
meter: content for progress
meter cells.
... you can create a progress
meter column by setting the type attribute on the column to progress
meter.
... progressnormal this property is set for progress
meter cells.
...And 2 more matches
Tree Box Objects - Archive of obsolete content
</treeitem> <treeitem> <treerow> <treecell label="spoon"/> <treecell label="8"/> </treerow> </treeitem> </treechildren> </tree> <label value="row:"/> <label id="row"/> <label value="column:"/> <label id="column"/> <label value="child type:"/> <label id="part"/> the getcellat() function takes five arguments, the coordinates to look up and three out para
meters.
... an out para
meter is used since the function needs to return more that one value.
... you will see a number of interfaces that use out para
meters in the xulplanet object reference (fixme: deadlink).
...And 2 more matches
param - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] for sql templates, used to bind values to para
meters specified within an sql statement.
... for more information, see query_para
meters.
... attributes index, name, type attributes index type: integer the index within the sql statement of the para
meter.
...And 2 more matches
NPN NewStream - Archive of obsolete content
syntax #include <npapi.h> nperror npn_newstream(npp instance, npmimetype type, const char* target, npstream** stream); para
meters the function has the following para
meters: instance pointer to current plug-in instance.
...the mime para
meter is the mime type of the plug-in to create.
...the stream is returned in the stream para
meter.
...And 2 more matches
NPP_Write - Archive of obsolete content
(remark: hence the name "npp_write" is misleading - just think of:"data_arrived") syntax #include <npapi.h> int32 npp_write(npp instance, npstream* stream, int32 offset, int32 len, void* buf); para
meters the function has the following para
meters: instance pointer to the current plug-in instance.
... the plug-in can use the offset para
meter to track the bytes that are written.
...in a normal-mode stream., the para
meter value increases as the each buffer is written.
...And 2 more matches
Using the Right Markup to Invoke Plugins - Archive of obsolete content
additional param elements (which are "children" of the above object element) specify configuration para
meters for the flash plugin.
...the data attribute points to the swf file to play, and the configuration para
meters (the param elements) are used in a consistent manner both for ie and for mozilla-based browsers such as netscape 7.
...the configuration para
meters for the applet, including the class which contains the initial entry point (animator.class, referenced by the "code" param element), are specified in multiple param elements.
...And 2 more matches
Animations and tweens - Game development
the spritesheet() method's two extra pare
meters determine the width and height of each single frame in the given spritesheet file, indicating to the program how to chop it up to get the individual frames.
... loading the animation next up, go into your create() function, find the line that loads the ball sprite, and below it put the call to animations.add() seen below: ball = game.add.sprite(50, 250, 'ball'); ball.animations.add('wobble', [0,1,0,2,0,1,0,2,0], 24); to add an animation to the object we use the animations.add() method, which contains the following para
meters the name we chose for the animation an array defining the order in which to display the frames during the animation.
... applying the animation when the ball hits the paddle in the arcade.collide() method call that handles the collision between the ball and the paddle (the first line inside update(), see below) we can add an extra para
meter that specifies a function to be executed every time the collision happens, in the same fashion as the ballhitbrick() function.
...And 2 more matches
Index - MDN Web Docs Glossary: Definitions of Web-related terms
7 arpa glossary, infrastructure .arpa (address and routing para
meter area) is a top-level domain used for internet infrastructure purposes, especially reverse dns lookup (i.e., find the domain name for a given ip address).
... 315 para
meter codingscripting, glossary, javascript a para
meter is a named variable passed into a function.
... para
meter variables are used to import arguments into functions.
...And 2 more matches
What is a URL? - Learn web development
?key1=value1&key2=value2 are extra para
meters provided to the web server.
... those para
meters are a list of key/value pairs separated with the & symbol.
... the web server can use those para
meters to do extra stuff before returning the resource.
...And 2 more matches
How to build custom form controls - Learn web development
// this function will be used each time we want to deactivate a custom control // it takes one para
meter // select : the dom node with the `select` class to deactivate function deactivateselect(select) { // if the control is not active there is nothing to do if (!select.classlist.contains('active')) return; // we need to get the list of options for the custom control var optlist = select.queryselector('.optlist'); // we close the list of option optlist.classlist.add('hidden'); // a...
...nd we deactivate the custom control itself select.classlist.remove('active'); } // this function will be used each time the user wants to (de)activate the control // it takes two para
meters: // select : the dom node with the `select` class to activate // selectlist : the list of all the dom nodes with the `select` class function activeselect(select, selectlist) { // if the control is already active there is nothing to do if (select.classlist.contains('active')) return; // we have to turn off the active state on all custom controls // because the deactivateselect function fulfills all the requirements of the // foreach callback function, we use it directly without using an intermediate // anonymous function.
... selectlist.foreach(deactivateselect); // and we turn on the active state for this specific control select.classlist.add('active'); } // this function will be used each time the user wants to open/closed the list of options // it takes one para
meter: // select : the dom node with the list to toggle function toggleoptlist(select) { // the list is kept from the control var optlist = select.queryselector('.optlist'); // we change the class of the list to show/hide it optlist.classlist.toggle('hidden'); } // this function will be used each time we need to highlight an option // it takes two para
meters: // select : the dom node with the `select` class containing the option to highlight // option : the dom node with the `option` class to highlight function highlightoption(select, o...
...And 2 more matches
Fetching data from the server - Learn web development
this stores a reference to the <select> and <pre> elements in constants and defines an onchange event handler function so that when the select's value is changed, its value is passed to an invoked function updatedisplay() as a para
meter.
... this function is automatically given the response from the server as a para
meter when the fetch() promise resolves.
...the code below would do the same thing: let myfetch = fetch(url); myfetch.then(function(response) { response.text().then(function(text) { poemdisplay.textcontent = text; }); }); because the fetch() method returns a promise that resolves to the http response, any function you define inside a .then() chained onto the end of it will automatically be given the response as a para
meter.
...And 2 more matches
Object building practice - Learn web development
function ball(x, y, velx, vely, color, size) { this.x = x; this.y = y; this.velx = velx; this.vely = vely; this.color = color; this.size = size; } here we include some para
meters that define the properties each ball needs in order to function in our program: x and y coordinates — the horizontal and vertical coordinates where the ball starts on the screen.
...its para
meters are: the x and y position of the arc's center — we are specifying the ball's x and y properties.
... the last two para
meters specify the start and end number of degrees around the circle that the arc is drawn between.
...And 2 more matches
Working with Svelte stores - Learn web development
then we call the method alert.subscribe(), passing it a callback function as a para
meter.
... whenever the value of the store changes, the callback function will be called with the new value as its para
meter.
... when we call set(), we update the value of the store, and call each handler — passing the new value as a para
meter.
...And 2 more matches
Command line options
command para
meters containing spaces must be enclosed in quotes, such as "joel user".
... command para
meters, except profile names, are case insensitive.
... blank spaces ( ) separate commands and para
meters.
...And 2 more matches
Displaying Places information using views
void applyfilter( string filterstring, array folderrestrict ); para
meters filterstring the new query's searchterms property will be set to this string.
... void load( array queries, nsinavhistoryqueryoptions options ); para
meters queries an array of nsinavhistoryquery objects.
... void selectitems( array aids, array aopencontainers ); para
meters aids an array of item ids.
...And 2 more matches
UpdateListener
void oncompatibilityupdateavailable( in addon addon ) para
meters addon the addon that was being checked for updates onnocompatibilityupdateavailable() called when the update check found no new compatibility information for the application and platform version that the update check was being performed for.
... void onnocompatibilityupdateavailable( in addon addon ) para
meters addon the addon that was being checked for updates onupdateavailable() called when a new version of an add-on has been found for install.
... void onupdateavailable( in addon addon, in addoninstall install ) para
meters addon the addon that was being checked for updates install an addoninstall for the updated version onnoupdateavailable() called when no new version of an add-on has been found for install.
...And 2 more matches
Add-on Repository
string getrecommendedurl(); para
meters none.
... string getsearchurl( in string searchterms ); para
meters searchterms search terms used to search the repository.
... void cancelsearch(); para
meters none.
...And 2 more matches
FxAccountsOAuthClient.jsm
components.utils.import("resource://gre/modules/fxaccountsoauthclient.jsm"); creating a new fxaccountsoauthclient new fxaccountsoauthclient(object options); method overview launchwebflow(); teardown(); attributes para
meters object returns the set of para
meters that initialized the firefox accounts oauth flow.
...fxaccountsoauthclient fxaccountsoauthclient( object options object para
meters string client_id string state string oauth_uri string content_uri [optional] string scope [optional] string action [optional] string authorizationendpoint ); para
meters client_id - oauth id returned from client registration.
... para
meters set of para
meters to initialize the firefox accounts oauth flow.
...And 2 more matches
PerfMeasurement.jsm
perfmeasurement( eventmask tomeasure ); para
meters tomeasure a mask of all of the event types you want to record; see event mask constants for a list of values.
...static bool canmeasuresomething(); para
meters none.
...void reset(); para
meters none.
...And 2 more matches
PR_NormalizeTime
syntax #include <prtime.h> void pr_normalizetime ( prexplodedtime *time, prtimeparamfn params); para
meters the function has these para
meters: time a pointer to a clock/calendar time in the prexplodedtime format.
... params a time para
meter callback function.
... returns nothing; the time para
meter is altered by the callback function.
...And 2 more matches
NSS 3.12.5 release_notes
the 2 new functions are: nss_initcontext nss_shutdowncontext para
meters for these functions are used to initialize softoken.
...if the string para
meter is null (as opposed to empty, zero length), then the softoken default is used.
... these are equivalent to the para
meters for pk11_configurepkcs11().
...And 2 more matches
sslintro.html
sets up para
meters for a server session cache for a single-process application.
...sets up para
meters for a server cache for a multi-process application.
...sets a single configuration para
meter of a specified socket.
...And 2 more matches
JS::Evaluate
this para
meter is documented in detail at js_executescript.
...this para
meter is documented in detail at js_executescript.
... rval js::mutablehandlevalue out para
meter.
...And 2 more matches
extIPreferenceBranch
all preference "aname" para
meters used in this interface are relative to the root branch.
... boolean has(in astring aname) para
meters aname the name of preference return value true if the preference exists, false if not get() gets an object representing a preference extipreference get(in astring aname) para
meters aname the name of preference return value a preference object, or null if the preference does not exist getvalue() gets the value of a preference.
... nsivariant getvalue(in astring aname, in nsivariant adefaultvalue) para
meters aname the name of a preference adefaultvalue the default value of a preference.
...And 2 more matches
Using XPCOM Utilities to Make Things Easier
all of these macros work on an array of structures represented by the components para
meter.
... the first para
meter for each of these macros is an arbitrary string that names the module.
... these three entries constitute the required para
meters for the registerfactorylocation method we looked at in the prior chapter.
...And 2 more matches
IAccessibleHyperlink
[propget] hresult anchor( [in] long index, [out] variant anchor ); para
meters index a 0 based index identifies the anchor when, as in the case of an image map, there is more than one link represented by this object.
...[propget] hresult anchortarget( [in] long index, [out] variant anchortarget ); para
meters index a 0 based index identifies the anchor when, as in the case of an image map, there is more than one link represented by this object.
...endindex() [propget] hresult endindex( [out] long index ); para
meters index the 0 based character offset at which the textual representation of the hyperlink ends.
...And 2 more matches
IAccessibleRelation
[propget] hresult localizedrelationtype( [out] bstr localizedrelationtype ); para
meters localizedrelationtype return value s_ok.
...[propget] hresult ntargets( [out] long ntargets ); para
meters ntargets return value s_ok.
...[propget] hresult relationtype( [out] bstr relationtype ); para
meters relationtype the strings returned are defined @ref grprelations "in this section of the documentation".
...And 2 more matches
amIInstallTrigger
boolean enabled(); para
meters none.
... boolean install( in nsivariant aargs, in amiinstallcallback acallback optional ); para
meters aargs the add-ons to install.
... boolean installchrome( in pruint32 atype, in astring aurl, in astring askin ); para
meters atype unused, retained for backwards compatibility.
...And 2 more matches
imgIDecoder
void close(); para
meters none.
...void flush(); para
meters none.
...void init( in imgiload aload ); para
meters aload an imgiload object to receive the decoded image data.
...And 2 more matches
mozISpellCheckingEngine
void adddirectory( nsifile dir ); para
meters dir an nsifile object indicating the directory from which to add dictionaries.
...boolean check( in wstring word ); para
meters word a word to check for correct spelling.
...void getdictionarylist( [array, size_is(count)] out wstring dictionaries, out pruint32 count ); para
meters dictionaries a list of dictionaries supported by this spell checker.
...And 2 more matches
mozIStorageStatementWrapper
params mozistoragestatementparams the para
meters; these can be set in lieu of using the call notation on this.
... void initialize( in mozistoragestatement astatement ); para
meters astatement the statement to be initialized.
... void reset(); para
meters none.
...And 2 more matches
mozITXTToHTMLConv
wstring scantxt( in wstring text, in unsigned long whattodo ); para
meters text the original, plain text to scan and convert into html.
... wstring scanhtml( in wstring text, in unsigned long whattodo ); para
meters text the original, user-edited html.
... unsigned long citeleveltxt( in wstring line, out unsigned long loglinestart ); para
meters line the original line of text, which may begin with one or more cite characters such as ">".
...And 2 more matches
nsIAccessNode
nsiaccessnode getchildnodeat( in long childnum ); para
meters childnum zero-based child index.
... nsidomcssprimitivevalue getcomputedstylecssvalue( in domstring pseudoelt, in domstring propertyname ); para
meters pseudoelt the pseudo element to retrieve style for, or empty string for general computed style information for the node.
... domstring getcomputedstylevalue( in domstring pseudoelt, in domstring propertyname ); para
meters pseudoelt the pseudo element to retrieve style for, or null for general computed style information for this node.
...And 2 more matches
nsIApplicationUpdateService
void adddownloadlistener( in nsirequestobserver listener ); para
meters listener an object implementing nsirequestobserver and optionally nsiprogresseventsink that will be notified of state and progress information as the update is downloaded.
... astring downloadupdate( in nsiupdate update, in boolean background ); para
meters update an nsiupdate object indicating the update to download.
...void pausedownload(); para
meters none.
...And 2 more matches
nsICacheSession
void asyncopencacheentry( in acstring key, in nscacheaccessmode accessrequested, in nsicachelistener listener, [optional] in boolean nowait ); para
meters key the key for cache entry.
...void doomentry( in acstring key, in nsicachelistener listener ); para
meters key the key for cache entry.
...void evictentries(); para
meters none.
...And 2 more matches
nsIClipboardDragDropHooks
inherits from: nsisupports last changed in gecko 1.7 embedders who want to have these hooks made available should implement nsiclipboarddragdrophooks and use the command manager to send the appropriate commands with these para
meters/settings: command: cmd_clipboarddragdrophook params value type possible values "addhook" isupports nsiclipboarddragdrophooks as nsisupports "removehook" isupports nsiclipboarddragdrophooks as nsisupports note: overrides/hooks need to be added to each window (as appropriate).
...boolean allowdrop( in nsidomevent event, in nsidragsession session ); para
meters event the dom event (drag gesture).
...boolean allowstartdrag( in nsidomevent event ); para
meters event the dom event (drag gesture).
...And 2 more matches
nsICookiePermission
nscookieaccess canaccess( in nsiuri auri, in nsiuri afirsturi, obsolete since gecko 1.9 in nsichannel achannel ); para
meters auri the uri trying to access cookies.
...it may modify the issession and expiry attributes of the cookie via the aissession and aexpiry para
meters, in order to limit or extend the lifetime of the cookie.
...boolean cansetcookie( in nsiuri auri, in nsichannel achannel, in nsicookie2 acookie, inout boolean aissession, inout print64 aexpiry ); para
meters auri the uri trying to set the cookie.
...And 2 more matches
nsICryptoHMAC
acstring finish( in prbool aascii ); para
meters aascii if true then the returned value is a base-64 encoded string.
...void init( in unsigned long aalgorithm, in nsikeyobject akeyobject ); para
meters aalgorithm the algorithm type to be used.
...void reset(); para
meters none.
...And 2 more matches
nsIDOMStorage
void clear(); para
meters none.
...domstring getitem( in domstring key ); para
meters key the key for which data should be returned.
...domstring key( in unsigned long index ); para
meters index the index for which the corresponding key should be returned.
...And 2 more matches
nsIDOMStorage2
void clear(); para
meters none.
...domstring getitem( in domstring key ); para
meters key the key for which data should be returned.
...domstring key( in unsigned long index ); para
meters index the index for which the corresponding key should be returned.
...And 2 more matches
nsIDialogParamBlock
print32 getint( in print32 inindex ); para
meters inindex the index of the integer to get.
...wstring getstring( in print32 inindex ); para
meters inindex the index of the string to get.
...setint() void setint( in print32 inindex, in print32 inint ); para
meters inindex the index of the integer to set.
...And 2 more matches
nsIDictionary
boolean haskey( in string key ); para
meters key key to check for.
... nsisupports getvalue( in string key ); para
meters key the lookup key indicating the value.
... void setvalue( in string key, in nsisupports value ); para
meters key the key by which the value can be accessed.
...And 2 more matches
nsIEventListenerService
void geteventtargetchainfor( in nsidomeventtarget aeventtarget, [optional] out unsigned long acount, [retval, array, size_is(acount)] out nsidomeventtarget aoutarray ); para
meters aeventtarget the nsidomeventtarget for which to return the event target chain.
...void getlistenerinfofor( in nsidomeventtarget aeventtarget, [optional] out unsigned long acount, [retval, array, size_is(acount)] out nsieventlistenerinfo aoutarray ); para
meters aeventtarget the nsieventtarget for which to obtain a list of listeners.
...boolean haslistenersfor( in nsidomeventtarget aeventtarget, in domstring atype ); para
meters aeventtarget the nsidomeventtarget for which to check if this has any listener for atype.
...And 2 more matches
nsIFilePicker
void appendfilter( in astring title, in astring filter ); para
meters title the title of the filter.
... void appendfilters( in long filtermask ); para
meters note: if appendfilters is the first (or only) call to set the file filters the filter with the smallest code will be used as default filter when displaying the nsifilepicker dialog.
... void init( in nsidomwindow parent, in astring title, in short mode ); para
meters parent the nsidomwindow parent.
...And 2 more matches
nsIHttpChannelInternal
void getrequestversion( out unsigned long major, out unsigned long minor ); para
meters major on return, contains the request's major version number.
...void getresponseversion( out unsigned long major, out unsigned long minor ); para
meters major on return, contains the response's major version number.
...void httpupgrade( in acstring aprotocolname, in nsihttpupgradelistener alistener ); para
meters aprotocolname the value of the http upgrade request header.
...And 2 more matches
nsIIDNService
autf8string convertacetoutf8( in acstring input ); para
meters input the ace encoded hostname to convert into utf-8 format.
...autf8string converttodisplayidn( in autf8string input, out boolean isascii ); para
meters input the string to convert to display format.
...acstring convertutf8toace( in autf8string input ); para
meters input the hostname to convert to ace format.
...And 2 more matches
nsIJSID
an unnamed jsid also results when you implement a function that is passed an nsiidref para
meter, such as queryinterface().
...boolean equals( in nsijsid other ); para
meters other the other nsijsid to compare to.
... violates the xpcom interface guidelines getid() const nsid* getid(); para
meters none.
...And 2 more matches
nsIMessageListenerManager
void addmessagelistener(in astring messagename, in nsimessagelistener listener, [optional] in boolean listenwhenclosed); para
meters messagename a string indicating the name of the message to listen for.
...this para
meter only has an effect for frame message managers in the main process.
... para
meters messagename the name of the message whose listener is to be removed.
...And 2 more matches
nsIMsgThread
void addchild(in nsimsgdbhdr child, in nsimsgdbhdr inreplyto, in boolean threadinthread, in nsidbchangeannouncer announcer); para
meters child the message to add inreplyto the message this should be in reply to threadinthread announcer an nsidbchangeannouncer to receive notification when the change is made.
... nsimsgdbhdr getchildat(in long index); para
meters index the index to get the message from getchildkeyat() nsmsgkey getchildkeyat(in long index); para
meters index the index to get the key from getchild() nsimsgdbhdr getchild(in nsmsgkey msgkey); para
meters msgkey the index to get the key from getchildhdrat() nsimsgdbhdr getchildhdrat(in long index); para
meters index the index to get the message from.
... removechildat() void removechildat(in long index); para
meters index the index to remove the message from removechildhdr() void removechildhdr(in nsimsgdbhdr child, in nsidbchangeannouncer announcer); para
meters child the message to remove announcer an nsidbchangeannouncer to receive notification when the change is made.
...And 2 more matches
nsIMutableArray
void appendelement( in nsisupports element, in boolean weak ); para
meters element the element to append.
...void clear(); para
meters none.
...void insertelementat( in nsisupports element, in unsigned long index, in boolean weak ); para
meters element the element to insert.
...And 2 more matches
nsIPlacesView
nsinavhistoryresultnode[] getdragableselection(); para
meters none.
... nsinavhistoryresultnode[][] getremovableselectionranges(); para
meters none.
... nsinavhistoryresult getresult(); para
meters none.
...And 2 more matches
nsIPrintingPrompt
inherits from: nsisupports last changed in gecko 1.7 this interface is identical to nsipintingpromptservice but without the parent nsidomwindow para
meter.
... void showpagesetup( in nsiprintsettings printsettings, in nsiobserver aobs ); para
meters printsettings printsettings for page setup.
... void showprintdialog( in nsiwebbrowserprint webbrowserprint, in nsiprintsettings printsettings ); para
meters webbrowserprint represents the document to be printed.
...And 2 more matches
nsIProperties
void get( in string prop, in nsiidref iid, [iid_is(iid),retval] out nsqiresult result ); para
meters prop the property name.
...void getkeys( out pruint32 count, [array, size_is(count), retval] out string keys ); para
meters count the length of the result array.
...boolean has( in string prop ); para
meters prop the property name.
...And 2 more matches
nsIPushMessage
domstring text(); para
meters none.
... jsval json(); para
meters none.
... void binary( [optional] out uint32_t datalen, [array, retval, size_is(datalen)] out uint8_t data ); para
meters datalen the data size.
...And 2 more matches
nsIScriptableInputStream
unsigned long available(); para
meters none.
...void close(); para
meters none.
...void init( in nsiinputstream ainputstream ); para
meters ainputstream the nsiinputstream to be wrapped.
...And 2 more matches
nsISearchEngine
methods addparam() adds a para
meter to the search engine's submission data.
...void addparam( in astring name, in astring value, in astring responsetype ); para
meters name the name of the para
meter to add.
... responsetype since an engine can have several different request urls, differentiated by response types, this para
meter selects a request to add para
meters to.
...And 2 more matches
nsISocketTransport
prnetaddr getpeeraddr(); para
meters none.
...prnetaddr getselfaddr(); para
meters none.
...unsigned long gettimeout( in unsigned long atype ); para
meters atype the timeout type, who's associated value should be retrieved.
...And 2 more matches
nsISocketTransportService
void attachsocket( in prfiledescptr afd, in nsasockethandlerptr ahandler ); para
meters afd open file descriptor of the socket to control.
... nsisockettransport createtransport( in array<acstring> asockettypes, in autf8string ahost, in long aport, in nsiproxyinfo aproxyinfo ); para
meters asockettypes array of socket type strings.
... init() obsolete since gecko 1.8 (firefox 1.5 / thunderbird 1.5 / seamonkey 1.0) void init(); para
meters none.
...And 2 more matches
nsISound
void beep(); para
meters none.
...void init(); para
meters none.
...void play( in nsiurl aurl ); para
meters aurl the url of the sound file to play.
...And 2 more matches
nsITaggingService
void taguri( in nsiuri auri, in nsivariant atags ); para
meters auri the url to tag.
... void untaguri( in nsiuri auri, in nsivariant atags ); para
meters auri the url to un-tag.
... nsivariant geturisfortag( in astring atag ); para
meters atag the tag name.
...And 2 more matches
nsITaskbarPreviewController
boolean drawpreview( in nsidomcanvasrenderingcontext2d ctx ); para
meters ctx an nsidomcanvasrenderingcontext2d object representing the drawing context into which the preview is to be rendered.
... boolean drawthumbnail( in nsidomcanvasrenderingcontext2d ctx, in unsigned long width, in unsigned long height ); para
meters ctx an nsidomcanvasrenderingcontext2d object representing the drawing context into which the thumbnail is to be rendered.
... boolean onactivate(); para
meters none.
...And 2 more matches
nsITreeColumn
type_progress
meter 3 progress
meter column type.
... methods native code only!getidconst void getidconst( [shared] out wstring idconst ); para
meters idconst getnext() get the next column in the nsitreecolumns.
... nsitreecolumn getnext(); para
meters none.
...And 2 more matches
nsIWebSocketChannel
void asyncopen( in nsiuri auri, in acstring aorigin, in nsiwebsocketlistener alistener, in nsisupports acontext ); para
meters auri the uri of the websocket protocol; this may be redirected.
... acontext an opaque para
meter forwarded to alistener's methods.
... close() void close( in unsigned short acode, in autf8string areason ); para
meters acode the status of the connection when closed; see status codes for possible values.
...And 2 more matches
nsIWinTaskbar
nsijumplistbuilder createjumplistbuilder(); para
meters none.
...nsitaskbartabpreview createtaskbartabpreview( in nsidocshell shell, in nsitaskbarpreviewcontroller controller ); para
meters shell an nsidocshell object representing the top-level window from which to create the preview.
...nsitaskbarprogress gettaskbarprogress( in nsidocshell shell ); para
meters shell the nsidocshell used to find the toplevel window.
...And 2 more matches
nsIXFormsModelElement
obsolete gecko 1.9.1 inherits from: nsisupports last changed in gecko 1.8 (firefox 1.5 / thunderbird 1.5 / seamonkey 1.0) method overview nsidomdocument getinstancedocument(in domstring instanceid); void rebuild(); void recalculate(); void refresh(); void revalidate(); methods getinstancedocument() nsidomdocument getinstancedocument( in domstring instanceid ); para
meters instanceid the id of the instance element to be returned.
...void rebuild(); para
meters none.
...void recalculate(); para
meters none.
...And 2 more matches
nsIXmlRpcClient
call this before using this object void getdata ( in string serverurl ) ; para
meters serverurl url of server side object on which methods should be called setauthentication() set authentication info if needed.
... both para
meters must be specified for authentication to be enabled void setauthentication ( in string username, in string password ) ; para
meters username username to be used if asked to authenticate password password to be used if asked to authenticate clearauthentication() clear authentication info void setauthentication ( in string username, in string password ) ; para
meters username password setencoding() set character encoding.
... the default charset if this function is not called is "utf-8" void setauthentication ( in string encoding ) ; para
meters encoding encoding charset to be used asynccall() call remote method methodname asynchronously with given arguments.
...And 2 more matches
NS_CStringContainerInit2
#include "nsstringapi.h" nsresult ns_cstringcontainerinit2( nscstringcontainer& acontainer, const char* adata = nsnull, pruint32 adatalength = pr_uint32_max, pruint32 aflags = 0 ); para
meters acontainer [in] the nscstringcontainer instance to initialize.
...this para
meter may be null.
... adatalength [in] an optional para
meter that specifies the length of the array pointed to by adata.
...And 2 more matches
CData
cdata address() para
meters none.
... string tosource() para
meters none.
... string tostring(); para
meters none.
...And 2 more matches
AudioBufferSourceNode.AudioBufferSourceNode() - Web APIs
syntax var audiobuffersourcenode = new audiobuffersourcenode(context, options) para
meters inherits para
meters from the audionodeoptions dictionary.
...thus, its behavior is independent of the value of the playbackrate para
meter.
...thus, its behavior is independent of the value of the playbackrate para
meter.
...And 2 more matches
AudioBufferSourceNode.start() - Web APIs
syntax audiobuffersourcenode.start([when][, offset][, duration]); para
meters when optional the time, in seconds, at which the sound should begin to play, in the same time coordinate system used by the audiocontext.
...if this para
meter isn't specified, the sound plays until it reaches its natural conclusion or is stopped using the stop() method.
... using this para
meter is functionally identical to calling start(when, offset) and then calling stop(when+duration).
...And 2 more matches
AudioWorkletProcessor - Web APIs
this method gets called for each block of 128 sample-frames and takes input and output arrays and calculated values of custom audioparams (if they are defined) as para
meters.
... you can use inputs and audio para
meter values to fill the outputs array, which by default holds silence.
... optionally, if you want custom audioparams on your node, you can supply a para
meterdescriptors property as a static getter on the processor.
...And 2 more matches
console - Web APIs
console.time() starts a timer with a name specified as an input para
meter.
...formatting is supported, for example console.log("foo %.2f", 1.1) will output the number to 2 decimal places: foo 1.10 note: precision formatting doesn't work in chrome each of these pulls the next argument after the format string off the para
meter list.
... styling console output you can use the %c directive to apply a css style to console output: console.log("this is %cmy stylish message", "color: yellow; font-style: italic; background-color: blue;padding: 2px"); the text before the directive will not be affected, but the text after the directive will be styled using the css declarations in the para
meter.
...And 2 more matches
ConstantSourceNode - Web APIs
in addition, it can be used like a constructible audioparam by automating the value of its offset or by connecting another node to it; see controlling multiple para
meters with constantsourcenode.
...the output's value is always the same as the value of the offset para
meter.
... example in the article controlling multiple para
meters with constantsourcenode, a constantsourcenode is created to allow one slider control to change the gain on two gainnodes.
...And 2 more matches
DOMMatrixReadOnly.scale() - Web APIs
dommatrix.scale(scalex[, scaley][, scalez][, originx][, originy][, originz]) para
meters scalex a multiplier for the scale value on the x-axis.
..., each positioned at the document origin: <svg width="250" height="250" viewbox="0 0 25 25"> <rect width="25" height="25" fill="red" /> <rect id="transformed" width="25" height="25" fill="blue" /> <rect id="transformedorigin" width="25" height="25" fill="green" /> </svg> this javascript first creates an identity matrix, then uses the scale() method to create a new matrix with a single para
meter.
... we test if the browser supports a six para
meter scale() method by creating a new matrix using three para
meters and observing it's is2d property — if this is false then the third para
meter has been accepted by the browser as a scalez para
meter, making this a 3d matrix.
...And 2 more matches
DirectoryEntrySync - Web APIs
para
meter none exceptions this method can raise a fileexception with the following codes: exception description not_found_err the directory does not exist.
...[ todo: explain why ] getfile() depending on how you've set the options para
meter, the method either creates a file or looks up an existing file.
... void getfile ( in domstring path, in optional flags options ) raises (fileexception); para
meter path either an absolute path or a relative path from the directory to the file to be looked up or created.
...And 2 more matches
Working with the History API - Web APIs
the pushstate() method pushstate() takes three para
meters: a state object; a title (currently ignored); and (optionally), a url.
... let's examine each of these three para
meters in more detail.
... title all browsers but safari currently ignore this para
meter, although they may use it in the future.
...And 2 more matches
IDBDatabaseSync - Web APIs
idbobjectstoresync createobjectstore( in domstring name, in domstring keypath, in optional boolean autoincrement ) raises (idbdatabaseexception); para
meters name the name of a new object store.
... idbobjectstoresync openobjectstore ( in domstring name, in optional unsigned short mode ) raises (idbdatabaseexception); para
meters name the name of the object store to open.
... void removeobjectstore ( in domstring storename ) raises (idbdatabaseexception); para
meters storename the name of an existing object store to remove.
...And 2 more matches
IDBObjectStore.add() - Web APIs
if a record already exists in the object store with the key para
meter as its key, then an error constrainerror event is fired on the returned request object.
... syntax var request = objectstore.add(value); var request = objectstore.add(value, key); para
meters value the value to be stored.
... dataerror any of the following conditions apply: the object store uses in-line keys or has a key generator, and a key para
meter was provided.
...And 2 more matches
IDBObjectStore.put() - Web APIs
syntax let request = objectstore.put(item); let request = objectstore.put(item, key); para
meters item the item you wish to update (or insert).
... dataerror any of the following conditions apply: the object store uses in-line keys or has a key generator, and a key para
meter was provided.
... the object store uses out-of-line keys and has no key generator, and no key para
meter was provided.
...And 2 more matches
PaymentResponse - Web APIs
this option is only present when the requestpayeremail option is set to true in the options para
meter of the paymentrequest() constructor.
...this option is only present when the requestpayername option is set to true in the options para
meter of the paymentrequest() constructor.
...this option is only present when the requestpayerphone option is set to true in the options para
meter of the paymentrequest() constructor.
...And 2 more matches
RTCPeerConnection.addTrack() - Web APIs
syntax rtpsender = rtcpeerconnection.addtrack(track, stream...); para
meters track a mediastreamtrack object representing the media track to add to the peer connection.
... usage notes adding tracks to multiple streams after the track para
meter, you can optionally specify one or more mediastream objects to add the track to.
... the rtcrtptransceiver associated with the sender has a rtcrtpreceiver whose track property specifies a mediastreamtrack whose kind is the same as the kind of the track para
meter specified when calling rtcpeerconnection.addtrack().
...And 2 more matches
SVGSVGElement - Web APIs
(if the parent uses css or xsl layout, then unitless values represent pixel units for the current css or xsl viewport.) svgsvgelement.pixelunittomilli
meterx a float representing the size of the pixel unit (as defined by css2) along the x-axis of the viewport, which represents a unit somewhere in the range of 70dpi to 120dpi, and, on systems that support this, might actually match the characteristics of the target medium.
... svgsvgelement.pixelunittomilli
metery a float representing the size of a pixel unit along the y-axis of the viewport.
... svgsvgelement.screenpixeltomilli
meterx user interface (ui) events in dom level 2 indicate the screen positions at which the given ui event occurred.
...And 2 more matches
URLSearchParams.append() - Web APIs
the append() method of the urlsearchparams interface appends a specified key/value pair as a new search para
meter.
... as shown in the example below, if the same key is appended multiple times it will appear in the para
meter string multiple times for each value.
... syntax urlsearchparams.append(name, value) para
meters name the name of the para
meter to append.
...And 2 more matches
WEBGL_depth_texture - Web APIs
extended methods this extension extends webglrenderingcontext.teximage2d(): the format and internalformat para
meters now accept gl.depth_component and gl.depth_stencil.
... the type para
meter now accepts gl.unsigned_short, gl.unsigned_int, and ext.unsigned_int_24_8_webgl.
... the pixels para
meter now accepts an arraybufferview of type uint16array and uint32array.
...And 2 more matches
XRRenderStateInit - Web APIs
all distances are specified as floating-point values in
meters; you can specify a value of 50 centi
meters using a value of 0.5, for example.
... depthfar optional a floating-point value specifying the distance in
meters from the viewer to the far clip plane, which is a plane parallel to the display surface beyond which no further rendering will occur.
...this is 1000
meters (1 kilo
meter) by default.
...And 2 more matches
XRSession.updateRenderState() - Web APIs
syntax xrsession.updaterenderstate(newstate) para
meters newstate an object conforming to the xrrenderstateinit dictionary specifying the properties of the session's renderstate to update before rendering the next frame.
... depthfar optional a floating-point value specifying the distance in
meters from the viewer to the far clip plane, which is a plane parallel to the display surface beyond which no further rendering will occur.
...this is 1000
meters (1 kilo
meter) by default.
...And 2 more matches
Web APIs
a angle_instanced_arrays abortcontroller abortsignal absoluteorientationsensor abstractrange abstractworker accelero
meter addresserrors aescbcparams aesctrparams aesgcmparams aeskeygenparams ambientlightsensor analysernode animation animationeffect animationevent animationplaybackevent animationtimeline arraybufferview attr audiobuffer audiobuffersourcenode audioconfiguration audiocontext audiocontextlatencycategory audiocontextoptions audiodestinationnode audiolistener audionode audionodeoptions audioparam au...
...htmlformelement htmlframesetelement htmlhrelement htmlheadelement htmlheadingelement htmlhtmlelement htmlhyperlinkelementutils htmliframeelement htmlimageelement htmlinputelement htmlisindexelement htmlkeygenelement htmllielement htmllabelelement htmllegendelement htmllinkelement htmlmapelement htmlmarqueeelement htmlmediaelement htmlmenuelement htmlmenuitemelement htmlmetaelement html
meterelement htmlmodelement htmlolistelement htmlobjectelement htmloptgroupelement htmloptionelement htmloptionscollection htmlorforeignelement htmloutputelement htmlparagraphelement htmlparamelement htmlpictureelement htmlpreelement htmlprogresselement htmlquoteelement htmlscriptelement htmlselectelement htmlshadowelement htmlslotelement htmlsourceelement htmlspanelement htmlstyleelement htmltable...
...shiftattribution linearaccelerationsensor linkstyle localfilesystem localfilesystemsync localmediastream location lock lockmanager lockedfile m midiaccess midiconnectionevent midiinput midiinputmap midimessageevent midioutputmap mscandidatewindowhide mscandidatewindowshow mscandidatewindowupdate msgestureevent msgraphicstrust msmanipulationevent msrangecollection mssitemodeevent magneto
meter mathmlelement mediacapabilities mediacapabilitiesinfo mediaconfiguration mediadecodingconfiguration mediadeviceinfo mediadevices mediaelementaudiosourcenode mediaencodingconfiguration mediaerror mediaimage mediakeymessageevent mediakeysession mediakeystatusmap mediakeysystemaccess mediakeysystemconfiguration mediakeys medialist mediametadata mediapositionstate mediaquerylist mediaqueryl...
...And 2 more matches
CSS values and units - CSS: Cascading Style Sheets
.box { background-image: url("images/my-background.png"); } .box { background-image: url("https://www.exammple.com/images/my-background.png"); } the para
meter for url() can be either quoted or unquoted.
... absolute length units are fixed to a physical length: either an inch or a centi
meter.
...for example, mm is a physical milli
meter, 1/10th of a centi
meter.
...And 2 more matches
appearance (-moz-appearance, -webkit-appearance) - CSS: Cascading Style Sheets
appearance: none; appearance: auto; appearance: menulist-button; appearance: textfield; /* "compat-auto" values, which have the same effect as 'auto' */ appearance: button; appearance: searchfield; appearance: textarea; appearance: push-button; appearance: slider-horizontal; appearance: checkbox; appearance: radio; appearance: square-button; appearance: menulist; appearance: listbox; appearance:
meter; appearance: progress-bar; /* partial list of available values in gecko */ -moz-appearance: scrollbarbutton-up; -moz-appearance: button-bevel; /* partial list of available values in webkit/blink (as well as gecko and edge) */ -webkit-appearance: media-mute-button; -webkit-appearance: caret; values standard keywords value demo browser description none ...
... listbox div { color: black; height:20px; -moz-appearance: listbox; -webkit-appearance: listbox; } <div>lorem</div> firefox chrome safari edge menulist div { color: black; -moz-appearance: menulist; -webkit-appearance: menulist; } <div>lorem</div> firefox chrome safari edge
meter div{ color: black; -webkit-appearance:
meter; } <div>lorem</div> chrome safari firefox progress-bar div{ color: black; -webkit-appearance: progress-bar; } <div>lorem</div> chrome safari firefox push-button div{ color: black; -webkit-appearance: push-button; } <div>lorem</div> ...
...(not implemented for the windows platform)
meterbar div { color: black; -moz-appearance:
meterbar; -webkit-appearance:
meterbar; } <div>lorem</div> firefox use
meter instead.
...And 2 more matches
Indexed collections - JavaScript
the foreach() method provides another way of iterating over an array: let colors = ['red', 'green', 'blue'] colors.foreach(function(color) { console.log(color) }) // red // green // blue alternatively, you can shorten the code for the foreach para
meter with es2015 arrow functions: let colors = ['red', 'green', 'blue'] colors.foreach(color => console.log(color)) // red // green // blue the function passed to foreach is executed once for every item in the array, with the array item passed as the argument to the function.
... if initialvalue is specified, then callback is called with initialvalue as the first para
meter value and the value of the first item in the array as the second para
meter value.
... if initialvalue is not specified, then callback's first two para
meter values will be the first and second elements of the array.
...And 2 more matches
Date.UTC() - JavaScript
the date.utc() method accepts para
meters similar to the date constructor, but treats them as utc.
... syntax since ecmascript 2017: date.utc(year[, month[, day[, hour[, minute[, second[, millisecond]]]]]]) ecmascript 2016 and earlier: (month used to be required) date.utc(year, month[, day[, hour[, minute[, second[, millisecond]]]]]) para
meters year a full year.
...(up through ecmascript 2016, month was a required para
meter.
...And 2 more matches
Date.prototype.setHours() - JavaScript
syntax dateobj.sethours(hoursvalue[, minutesvalue[, secondsvalue[, msvalue]]]) versions prior to javascript 1.3 dateobj.sethours(hoursvalue) para
meters hoursvalue ideally, an integer between 0 and 23, representing the hour.
...if you specify the secondsvalue para
meter, you must also specify the minutesvalue.
...if you specify the msvalue para
meter, you must also specify the minutesvalue and secondsvalue.
...And 2 more matches
Date.prototype.setMinutes() - JavaScript
syntax dateobj.setminutes(minutesvalue[, secondsvalue[, msvalue]]) versions prior to javascript 1.3 dateobj.setminutes(minutesvalue) para
meters minutesvalue an integer between 0 and 59, representing the minutes.
...if you specify the secondsvalue para
meter, you must also specify the minutesvalue.
...if you specify the msvalue para
meter, you must also specify the minutesvalue and secondsvalue.
...And 2 more matches
Date.prototype.setUTCHours() - JavaScript
syntax dateobj.setutchours(hoursvalue[, minutesvalue[, secondsvalue[, msvalue]]]) para
meters hoursvalue an integer between 0 and 23, representing the hour.
...if you specify the secondsvalue para
meter, you must also specify the minutesvalue.
...if you specify the msvalue para
meter, you must also specify the minutesvalue and secondsvalue.
...And 2 more matches
Date.prototype.setUTCMinutes() - JavaScript
syntax dateobj.setutcminutes(minutesvalue[, secondsvalue[, msvalue]]) para
meters minutesvalue an integer between 0 and 59, representing the minutes.
...if you specify the secondsvalue para
meter, you must also specify the minutesvalue.
...if you specify the msvalue para
meter, you must also specify the minutesvalue and secondsvalue.
...And 2 more matches
Media container formats (file types) - Web media technologies
base 3gp media mime types audio video audio/3gpp video/3gpp audio/3gpp2 video/3gpp2 audio/3gp2 video/3gp2 these mime types are the fundamental types for the 3gp media container; other types may be used depending on the specific codec or codecs in use; in addition, you can add the codecs para
meter to the mime type string to indicate which codecs are used for the audio and/or video tracks, and to optionally provide details about the profile, level, and/or other codec configuration specifics.
... when specifying the mpeg-4 media type (audio/mp4 or video/mp4), you can add the codecs para
meter to the mime type string to indicate which codecs are used for the audio and/or video tracks, and to optionally provide details about the profile, level, and/or other codec configuration specifics.
...in addition, you can add the codecs para
meter to the mime type string to indicate which codecs are used for the audio and/or video tracks, and to optionally provide details about the profile, level, and/or other codec configuration specifics.
...And 2 more matches
Transport Layer Security - Web security
the security of any connection using transport layer security (tls) is heavily dependent upon the cipher suites and security para
meters selected.
...applications that use tls can choose their security para
meters, which can have a substantial impact on the security and reliability of data.
... a tls connection starts with a handshake phase where a client and server agree on a shared secret and important para
meters, like cipher suites, are negotiated.
...And 2 more matches
base64 - Archive of obsolete content
para
meters data : string the data to encode charset : string the charset of the string to encode (optional).
...in order to encode and decode unicode strings, the charset para
meter needs to be set: var base64 = require("sdk/base64"); var encodeddata = base64.encode(unicodestring, "utf-8"); returns string : the encoded string decode(data, charset) decodes a string of data which has been encoded using base-64 encoding.
... para
meters data : string the encoded data charset : string the charset of the string to encode (optional).
...in order to encode and decode unicode strings, the charset para
meter needs to be set: var base64 = require("sdk/base64"); var decodeddata = base64.decode(encodeddata, "utf-8"); returns string : the decoded string ...
page-worker - Archive of obsolete content
para
meters options : object optional options: name type contenturl string the url of the content to load in the panel.
... para
meters message : value the message to send.
... para
meters type : string the type of event to listen for.
... para
meters type : string the type of event for which listener was registered.
passwords - Archive of obsolete content
ted with your add-on, use the url property, initialized from self.uri: function show_my_addon_passwords() { require("sdk/passwords").search({ url: require("sdk/self").uri, oncomplete: function oncomplete(credentials) { credentials.foreach(function(credential) { console.log(credential.username); console.log(credential.password); }); } }); } para
meters options : object required options: name type oncomplete function the callback function that is called once the function completes successfully.
... the options para
meter may also include oncomplete and onerror callback functions, which are called when the function has completed successfully and when it encounters an error, respectively.
... para
meters options : object required options: name type username string the username for the credential.
...sdk/passwords").remove); }) }); to change an existing credential just call store after remove succeeds: require("sdk/passwords").remove({ realm: "user registration", username: "joe", password: "secret123" oncomplete: function oncomplete() { require("sdk/passwords").store({ realm: "user registration", username: "joe", password: "{new password}" }) } }); para
meters options : object required options: name type username string the username for the credential.
querystring - Archive of obsolete content
globals functions stringify(fields, separator, assignment) serializes an object containing name:value pairs into a query string: querystring.stringify({ foo: 'bar', baz: 4 }); // => 'foo=bar&baz=4' by default '&' and'=' are used as separator and assignment characters, but you can override this using additional optional para
meters: querystring.stringify({ foo: 'bar', baz: 4 }, ';', ':'); // => 'foo:bar;baz:4' para
meters fields : object the data to convert to a query string.
... parse(querystring, separator, assignment) parse a query string into an object containing name:value pairs: querystring.parse('foo=bar&baz=bla') // => { foo: 'bar', baz: 'bla' } optionally separator and assignment arguments may be passed to override default '&' and '=' characters: querystring.parse('foo:bar|baz:bla', '|', ':') // => { foo: 'bar', baz: 'bla' } para
meters querystring : string the query string.
... para
meters query : string the query string to escape.
... para
meters query : string an escaped query string.
timers - Archive of obsolete content
para
meters callback : function function to be called.
... para
meters id : integer an id returned from settimeout().
... para
meters callback : function function to be called.
... para
meters id : integer an id returned from setinterval().
event/core - Archive of obsolete content
para
meters target : object event target object.
... para
meters target : object event target object.
... para
meters target : object event target object.
... para
meters target : object event target object.
io/byte-streams - Archive of obsolete content
para
meters inputstream : stream the backing stream, an nsiinputstream.
... para
meters outputstream : stream the backing stream, an nsioutputstream.
... para
meters numbytes : number the number of bytes to read.
... para
meters str : string the string to write.
system/events - Archive of obsolete content
var events = require("sdk/system/events"); var { ci } = require("chrome"); function listener(event) { var channel = event.subject.queryinterface(ci.nsihttpchannel); channel.setrequestheader("user-agent", "mybrowser/1.0", false); } events.on("http-on-modify-request", listener); globals functions emit(type, event) send an event to observer service para
meters type : string the event type.
... on(type, listener, strong) listen to events of a given type para
meters type : string the event type name to watch.
... once(type, listener, strong) listen only once to a particular event type para
meters type : string the event type name to watch.
... off(type, listener) stop listening for an event para
meters type : string the event type name to unsubscribe to.
util/collection - Archive of obsolete content
para
meters array : array if array is given, it will be used as the backing array.
... para
meters object : object the property will be defined on this object.
... para
meters itemoritems : object an item or array of items.
... para
meters itemoritems : object an item or array of items.
Updating addons broken by private browsing changes - Archive of obsolete content
nsihttpauthmanager: setauthidentity and getauthidentity now take an optional boolean para
meter to indicate whether the identity is classified as private.
... nsistricttransportsecurityservice: processstsheader, removestsstate, isstshost, and isstsuri now take a flags para
meter that understands nsisocketprovider.no_permanent_storage or nothing.
... chrome apis openbrowserwindow: takes an optional para
meter to indicate desired properties of the window.
... openlinkin: can receive an extra private boolean property in the para
meter object.
Dehydra Function Reference - Archive of obsolete content
require supports optional named arguments via javascript object where each para
meter is a property.
...strict boolean: controls js strict mode werror boolean: turns js warnings into errors gczeal int: this is a write-only para
meter to set turn on frequent garbage collection.
... optional: code is an integer para
meter that allows warnings to be enabled(-wfoo) and disabled(-wno-) on the gcc commandline.
... this para
meter is used when the first argument to warning() is an integer.
Dehydra Object Reference - Archive of obsolete content
.para
meters array of variable objects a function definition's para
meter names and types .memberof aggregate type object indicates the aggregate type(class/struct) in the type system that this variable is a member of.
... .hasdefault boolean flag applicable to function para
meters only.
... indicates whether the para
meter has a default value, e.g.
... .para
meters array of type objects the para
meter types for the function.
Twitter - Archive of obsolete content
the first is simple: define properties on the object corresponding to the para
meters of the twitter method.
... for instance, some twitter methods have an id para
meter, so you would define an id property and set its value to a user's id.
... (you can read about the para
meters of the various methods at twitter's api reference.) there are two special, optional properties: success and error.
...in other words, define a data property that is itself an object whose properties correspond to the para
meters of the twitter method.
Nanojit - Archive of obsolete content
fragment *f = fragmento->getanchor((void *)0xdeadbeef); f->lirbuf = buf; f->root = f; // create a lir writer lirbufwriter out(buf); // write a few lir instructions to the buffer: add the first para
meter // to the constant 2.
... typedef js_fastcall int32_t (*addtwofn)(int32_t); addtwofn fn = reinterpret_cast<addtwofn>(f->code()); printf("2 + 5 = %d\n", fn(5)); return 0; } code explanation interesting part are the lines 46-50: // write a few lir instructions to the buffer: add the first para
meter // to the constant 2.
... then a pointer to a function is used, which takes an int as input and returns the sum of that para
meter with two.
... (typedef js_fastcall int32_t (*addtwofn)(int32_t); ) then, printf is hardcoded to call it with a para
meter 5, and on linking with nanojit library, the following program will display 2+5=7 now, what i need to do is generate output for this: start two = int 2 twoplustwo = add two, two ret twoplustwo this adds two and two in the most hardcoded way possible.
DOM Interfaces - Archive of obsolete content
para
meters elt - the element to retrieve anonymous children for.
... para
meters elt - the element to retrieve anonymous children for.
... para
meters node - the node for which the bound element responsible for generation is desired.
... para
meters documenturl of type domstring - the url of a binding document.
confirm - Archive of obsolete content
method of install object syntax int confirm( string atext ); int confirm( string atext, string adialogtitle, number abuttonflags, string abutton0title, string abutton1title, string abutton2title, string acheckmsg, object acheckstate ); para
meters the second, extended confirm() method is supported starting with gecko 1.8.
... it accepts any number of para
meters up to 8.
... previous gecko versions only support the first, one-para
meter method and will throw an error on occuring the extended form.
...tants button_title_ok: an 'ok' button button_title_cancel: a 'cancel' button button_title_yes: a 'yes' button button_title_no: a 'no' button button_title_save: a 'save' button button_title_dont_save: a 'don't save' button button_title_revert: a 'revert' button button_title_is_string: custom title specified by the corresponding abuttonxtitle para
meter other constants button_pos_0_default: specifies button 0 as the default button.
getFolder - Archive of obsolete content
method of install object syntax filespecobject getfolder ( string foldername); filespecobject getfolder ( string foldername, string subdirectory); filespecobject getfolder ( object localdirspec, string subdirectory); para
meters the getfolder method has the following para
meters: foldername a string representing one of netscape's standard directories.
... there are two sets of possible values for this para
meter.
...this para
meter is available in netscape 6 or later and may be case sensitive (depending on the operating system).
...a" "win common files" "win desktop" "win desktop common" "win program files" "win programs" "win programs common" "win startmenu" "win startmenu common" "win startup" "win startup common" "win system" the "file:///" form is only valid when the subdirectory para
meter is used.
patch - Archive of obsolete content
int patch ( string registryname, string xpisourcepath, object localdirspec, string relativelocalpath); int patch ( string registryname, installversion version, string xpisourcepath, object localdirspec, string relativelocalpath); int patch ( string registryname, string version, string xpisourcepath, object localdirspec, string relativelocalpath); para
meters the patch method has the following para
meters: registryname the pathname in the client version registry for the component that is to be patched.this para
meter can be an absolute pathname, such as /royalairways/royalsw/executable or a relative pathname, such as executable.
...this para
meter can also be null, in which case the xpisourcepath para
meter is used as a relative pathname.
... relativelocalpath a pathname relative to the localdirspec para
meter that identifies the subcomponent that is to be patched.
...if this para
meter is blank or null, xpisourcepath is used.
Providing Command-Line Options - Archive of obsolete content
extensions and xul applications can modify the way command line para
meters are handled by writing a component that implements the nsicommandlinehandler interface and registering it in a category.
... see also: xulrunner:commandline overview the code below is an example of writing a javascript xpcom component to handle command line para
meters.
... example the below example component implements two command line para
meters: firefox.exe -myapp opens a chrome window for my application.
...ngeme: change "viewapp" to your command line flag that takes an argument var uristr = cmdline.handleflagwithparam("viewapp", false); if (uristr) { // convert uristr to an nsiuri var uri = cmdline.resolveuri(uristr); openwindow(chrome_uri, uri); cmdline.preventdefault = true; } } catch (e) { components.utils.reporterror("incorrect para
meter passed to -viewapp on the command line."); } // changeme: change "myapp" to your command line flag (no argument) if (cmdline.handleflag("myapp", false)) { openwindow(chrome_uri, null); cmdline.preventdefault = true; } }, // changeme: change the help info as appropriate, but // follow the guidelines in nsicommandlinehandler.idl // specifically, flag descriptio...
Building Trees - Archive of obsolete content
the mode is used for progress
meter columns.
... it may be set to either “normal” for a normal progress
meter or “undetermined” for an undetermined progress
meter.
... the value attribute is used to set the current progress value for normal progress
meters.
...whether a cell is a normal labeled value, a progress
meter or a checkbox is determined by the type attribute on the column the cell is in.
Document Object Model - Archive of obsolete content
we'll change the progress
meter so that its initially hidden.
...<splitter id="splitbar" resizeafter="grow" hidden="true"/> <hbox> <progress
meter id="prog
meter" value="50%" style="margin: 4px;" hidden="true"/> we've added the hidden attribute and set the value to true.
... function dofind(){ var
meter = document.getelementbyid('prog
meter');
meter.hidden = false; } this function first gets a reference to the progress
meter using its id, prog
meter.
... function dofind(){ var
meter=document.getelementbyid('prog
meter');
meter.hidden = false; var searchtext=document.getelementbyid('find-text').value; alert("searching for \"" + searchtext + "\""); } now, with that alert box in there, we know what should happen when we click the find button.
calICalendarViewController - Archive of obsolete content
calidatetime anewstarttime, in calidatetime anewendtime); void deleteoccurrence (in caliitemoccurrence aoccurrence); }; methods createnewevent void createnewevent (in calicalendar acalendar, in calidatetime astarttime, in calidatetime aendtime); the createnewevent method is used for creating a new calievent in the calicalendar specified by the acalendar para
meter.
...the calidatetime para
meters are optional, but aendtime cannot be included without astarttime.
...the calievent should have its enddate set to aendtime, if this para
meter is specified.
...the calidatetime para
meters must either both be specified, or neither.
NPN_GetAuthenticationInfo - Archive of obsolete content
const char *host, int32_t port, const char *scheme, const char *realm, char **username, uint32_t *ulen, char **password, uint32_t *plen); para
meters this function has the following para
meters: instance pointer to the current plug-in instance protocol protocol name (uri scheme) host host name port port number scheme http authentication scheme name realm http authentication realm username out para
meter.
... ulen out para
meter.
... password out para
meter.
... plen out para
meter.
NPN_PostURL - Archive of obsolete content
syntax #include <npapi.h> nperror npn_posturl(npp instance, const char *url, const char *target, uint32 len, const char *buf, npbool file); para
meters the function has the following para
meters: instance pointer to the current plug-in instance.
...if the target para
meter is null, the new stream is passed to the plug-in regardless of mime type.
... when you use npn_posturl to send data to the server, you can handle the response in several different ways by specifying different target para
meters.
...you can also write the response data to a frame by specifying the frame name as the target para
meter.
NPP_NewStream - Archive of obsolete content
syntax #include <npapi.h> nperror npp_newstream(npp instance, npmimetype type, npstream* stream, npbool seekable, uint16* stype); para
meters the function has the following para
meters: instance pointer to current plug-in instance.
... stype out para
meter.
...the mime type of the stream is provided by the type para
meter.
... the para
meter stype defines the mode of the stream.
NPStream - Archive of obsolete content
for these streams, notifydata is set to the value of the notifydata para
meter to npn_geturlnotify or npn_posturlnotify.
... description the browser allocates and initializes the npstream object and passes it to the plug-in in as a para
meter to npp_newstream or npn_newstream.
...streams produced by the browser: the browser creates the npstream object and passes it to the plug-in initially as a para
meter to npp_newstream.
...streams produced by the plug-in: the browser creates the npstream object and returns it as an output para
meter when the plug-in calls npp_newstream.
RDF in Mozilla FAQ - Archive of obsolete content
refresh() takes a single para
meter that indicates whether you'd like it to perform its operation synchronously ("blocking") or asynchrounously ("non-blocking").
... alternatively, if your datasource already has an object that is an rdf container, you can instantiate an nsirdfcontainer object with the @mozilla.org/rdf/container;1 contractid and init() it with the datasource and resource as para
meters.
... rdfcat url takes as a para
meter a url from which to read an rdf/xml file, and will "cat" the file back to the console.
... rdfpoll url [interval ] takes as a para
meter a url from which to read an rdf/xml file.
Building up a basic demo with Three.js - Game development
you might have noticed the antialias para
meter in the first line — this renders the edges of shapes more smoothly.
...for the camera z position) are unitless, and can be anything you deem suitable for your scene: mili
meters,
meters, feet, or miles.
... var torusgeometry = new three.torusgeometry(7, 1, 6, 12); var phongmaterial = new three.meshphongmaterial({color: 0xff9500}); var torus = new three.mesh(torusgeometry, phongmaterial); scene.add(torus); these lines will add a torus geometry; the torusgeometry() method's para
meters define, and the para
meters are radius, tube dia
meter, radial segment count, and tubular segment count.
...the para
meter, dodecahedrongeometry(), defines the size of the object.
Audio for Web games - Game development
start() takes two optional para
meters.
... here's a bit of code that given a tempo (the time in seconds of your beat/bar) will calculate how long to wait until you play the next part — you feed the resulting value to the start() function with the first para
meter, which takes the absolute time of when that playback should commence.
... note the second para
meter (where to start playing from in the new track) is relative: if (offset == 0) { source.start(); offset = context.currenttime; } else { var relativetime = context.currenttime - offset; var beats = relativetime / tempo; var remainder = beats - math.floor(beats); var delay = tempo - (remainder*tempo); source.start(context.currenttime+delay, relativetime+delay); } note: you can try our wait calculator code here, on jsfiddle (i've synched to the bar in this case).
... note: if the first para
meter is 0 or less than the context currenttime, playback will commence immediately.
Signature (functions) - MDN Web Docs Glossary: Definitions of Web-related terms
a signature can include: para
meters and their types a return value and type exceptions that might be thrown or passed back information about the availability of the method in an object-oriented program (such as the keywords public, static, or prototype).
... the method accepts one para
meter, which is called value and is not further defined.
...java is strictly typed and will check any para
meters at compilation time if they are correct.
... the method accepts one para
meter of type string array.
Introducing asynchronous JavaScript - Learn web development
an example of an async callback is the second para
meter of the addeventlistener() method (as we saw in action above): btn.addeventlistener('click', () => { alert('you clicked me!'); let pelem = document.createelement('p'); pelem.textcontent = 'this is a newly-added paragraph.'; document.body.appendchild(pelem); }); the first para
meter is the type of event to be listened for, and the second para
meter is a callback function that is invoked wh...
...however, we then create a loadasset() function that takes a callback as a para
meter, along with a url to fetch and a content type.
...the expected para
meter of foreach() is a callback function, which itself takes two para
meters, a reference to the array name and index values.
... here we see fetch() taking a single para
meter — the url of a resource you want to fetch from the network — and returning a promise.
Function return values - Learn web development
vious article in this series): let mytext = 'the weather is cold'; let newstring = mytext.replace('cold', 'warm'); console.log(newstring); // should print "the weather is warm" // the replace() string function takes a string, // replaces one substring with another, and returns // a new string with the replacement made the replace() function is invoked on the mytext string, and is passed two para
meters: the substring to find ('cold').
...the random() function takes one para
meter — a whole number — and it returns a whole random number between 0 and that number.
...ons: function squared(num) { return num * num; } function cubed(num) { return num * num * num; } function factorial(num) { if (num < 0) return undefined; if (num == 0) return 1; let x = num - 1; while (x > 1) { num *= x; x--; } return num; } the squared() and cubed() functions are fairly obvious — they return the square or cube of the number that was given as a para
meter.
...it is generally a good idea to check that any necessary para
meters are validated, and that any optional para
meters have some kind of default value provided.
Adding features to our bouncing balls demo - Learn web development
you also need to add a new para
meter to the new ball() ( ...
... ) constructor call — the exists para
meter should be the 5th para
meter, and should be given a value of true.
... you should do this something like shape.call(this, x, y, 20, 20, exists); it should also define its own properties, as follows: color — 'white' size — 10 again, remember to define your inherited properties as para
meters in the constructor, and set the prototype and constructor properties correctly.
... first of all, create a new evil circle object instance (specifying the necessary para
meters), then call its setcontrols() method.
Inheritance in JavaScript - Learn web development
the first para
meter specifies the value of this that you want to use when running the function, and the other para
meters are those that should be passed to the function when it is invoked.
... we want the teacher() constructor to take the same para
meters as the person() constructor it is inheriting from, so we specify them all as para
meters in the call() invocation.
... inheriting from a constructor with no para
meters note that if the constructor you are inheriting from doesn't take its property values from para
meters, you don't need to specify them as additional arguments in call().
...mple, if you had something really simple like this: function brick() { this.width = 10; this.height = 20; } you could inherit the width and height properties by doing this (as well as the other steps described below, of course): function blueglassbrick() { brick.call(this); this.opacity = 0.5; this.color = 'blue'; } note that we've only specified this inside call() — no other para
meters are required as we are not inheriting any properties from the parent that are set via para
meters.
Working with JSON - Learn web development
add the following line: request.open('get', requesturl); this takes at least two para
meters — there are other optional para
meters available.
...following function definition below the previous code: function populateheader(jsonobj) { const myh1 = document.createelement('h1'); myh1.textcontent = jsonobj['squadname']; header.appendchild(myh1); const mypara = document.createelement('p'); mypara.textcontent = 'hometown: ' + jsonobj['hometown'] + ' // formed: ' + jsonobj['formed']; header.appendchild(mypara); } we named the para
meter jsonobj, to remind ourselves that this javascript object originated from json.
...luckily, these two problems are so common in web development that a built-in json object is available in browsers, which contains the following two methods: parse(): accepts a json string as a para
meter, and returns the corresponding javascript object.
... stringify(): accepts an object as a para
meter, and returns the equivalent json string form.
Componentizing our Svelte app - Learn web development
the child component will execute the handler, passing the needed information as a para
meter, and the handler will modify the parent's state.
...whenever the user clicks on any filter button, the child will call the onclick handler, passing the selected filter as a para
meter, back up to its parent.
...go back to this file and update your <todo> component call like so: <todo {todo} on:remove={e => removetodo(e.detail)} /> our handler receives the e para
meter (the event object), which as described before holds the todo being deleted in the detail property.
... when the user clicks on the checkbox we call the ontoggle() function, which executes update(), passing an object with the new completed value as a para
meter.
Adding a new todo form: Vue events, methods, and models - Learn web development
.passive: equivalent to using the { passive: true } para
meter when creating an event listener in vanilla javascript using addeventlistener().
...this is done by including the data you want to pass as another para
meter in the $emit() method: this.$emit("todo-added", this.label).
... update your onsubmit() method like so: onsubmit() { this.$emit('todo-added', this.label) } to actually pick up this data inside app.vue, we need to add a para
meter to our addtodo() method that includes the label of the new to-do item.
...but this is easy to fix — because we're using v-model to bind the data to the <input> in todoform, if we set the name para
meter to equal an empty string, the input will update as well.
Multiprocess on Windows
marrayparamindex is the index of the para
meter that contains the array (excluding the this pointer).
... mlengthparamindex is the index of the out para
meter that contains the length of the array (excluding the this pointer).
... the interceptor needs to be able to read this para
meter to know how many interface pointers exist in the array.
...this receives the com interface which you want to wrap as its first para
meter, and outputs the wrapped object (with the same interface) as its second para
meter.
Communicating with frame scripts
asynchronous messaging to send an asynchronous message the frame script uses the global sendasyncmessage() function: // frame script sendasyncmessage("my-addon@me.org:my-e10s-extension-message"); sendasyncmessage() takes one mandatory para
meter, which is the name of the message.
... data the json object passed as the second para
meter to sendasyncmessage().
... you can use the message manager's sendasyncmessage method: // chrome script browser.messagemanager.sendasyncmessage("my-addon@me.org:message-from-chrome"); if you have a window or a global message manager, you need to use the broadcastasyncmessage method: // chrome script window.messagemanager.broadcastasyncmessage("my-addon@me.org:message-from-chrome"); these methods takes one mandatory para
meter, which is the message name.
...this takes two para
meters: the name of the message and a listener function.
Downloads.jsm
promise<download> createdownload( object aproperties ); para
meters aproperties provides the initial properties for the newly created download.
... promise fetch( asource, atarget, object aoptions ); para
meters asource string containing the uri for the download source.
... promise<downloadlist> getlist(atype); para
meters atype this can be downloads.public, downloads.private, or downloads.all.
... promise<downloadsummary> getsummary(atype); para
meters atype this can be downloads.public, downloads.private, or downloads.all.
Date and Time
macros for time unit conversion types and constants time para
meter callback functions functions macros for time unit conversion macros for converting between seconds, milliseconds, microseconds, and nanoseconds.
... pr_msec_per_sec pr_usec_per_sec pr_nsec_per_sec pr_usec_per_msec pr_nsec_per_msec types and constants types and constants defined for nspr dates and times are: prtime prtimepara
meters prexplodedtime time para
meter callback functions in some geographic locations, use of daylight saving time (dst) and the rule for determining the dates on which dst starts and ends have changed a few times.
... you can define your own time para
meter callback functions, which must conform to the definition prtimeparamfn.
... two often-used callback functions of this type are provided by nspr: prtimeparamfn pr_localtimepara
meters and pr_gmtpara
meters functions the functions that create and manipulate time and date values are: pr_now pr_explodetime pr_implodetime pr_normalizetime ...
PRSeekWhence
specifies how to interpret the offset para
meter in setting the file pointer associated with the fd para
meter for the pr_seek and pr_seek64 functions.
... syntax #include <prio.h> typedef prseekwhence { pr_seek_set = 0, pr_seek_cur = 1, pr_seek_end = 2 } prseekwhence; enumerators the enumeration has the following enumerators: pr_seek_set sets the file pointer to the value of the offset para
meter.
... pr_seek_cur sets the file pointer to its current location plus the value of the offset para
meter.
... pr_seek_end sets the file pointer to the size of the file plus the value of the offset para
meter.
PR_CWait
syntax #include <prcmon.h> prstatus pr_cwait( void *address, printervaltime timeout); para
meters the function has the following para
meters: address the address of the protected object--the same address previously passed to pr_centermonitor.
... returns the function returns one of the following values: pr_success indicates either that the monitored object has been notified or that the interval specified in the timeout para
meter has been exceeded.
... description using the value specified in the address para
meter to find a monitor in the monitor cache, pr_cwait waits for a notification that the monitor's state has changed.
... the thread waiting on the monitor resumes execution when the monitor is notified (assuming the thread is the next in line to receive the notify) or when the interval specified in the timeout para
meter has been exceeded.
PR_CreateThread
syntax #include <prthread.h> prthread* pr_createthread( prthreadtype type, void (*start)(void *arg), void *arg, prthreadpriority priority, prthreadscope scope, prthreadstate state, pruint32 stacksize); para
meters pr_createthread has the following para
meters: type specifies that the thread is either a user thread (pr_user_thread) or a system thread (pr_system_thread).
... arg a pointer to the root function's only para
meter.
... nspr does not assess the type or the validity of the value passed in this para
meter.
...if you pass zero in this para
meter, pr_createthread chooses the most favorable machine-specific stack size.
PR_Open
syntax #include <prio.h> prfiledesc* pr_open( const char *name, printn flags, printn mode); para
meters the function has the following para
meters: name the pathname of the file to be opened.
...if the flags para
meter does not include any of the first three flags (pr_rdonly, pr_wronly, or pr_rdwr), the open file can't be read or written, which is not useful.
...possible values of the mode para
meter are listed in the table below.
...if a new file is created as a result of the pr_open call, its file mode bits are set according to the mode para
meter.
PR_OpenSharedMemory
syntax #include <prshm.h> nspr_api( prsharedmemory * ) pr_opensharedmemory( const char *name, prsize size, printn flags, printn mode ); /* define values for pr_opensharememory(...,create) */ #define pr_shm_create 0x1 /* create if not exist */ #define pr_shm_excl 0x2 /* fail if already exists */ para
meters the function has the following para
meters: name the name of the shared memory segment.
...when para
meter create is (pr_shm_excl | pr_shm_create) and the shared memory already exists, the function returns null with the error set to pr_file_exists_error.
... when para
meter create is pr_shm_create and the shared memory already exists, a handle to that memory segment is returned.
... when para
meter create is 0, and the shared memory exists, a pointer to a prsharedmemory structure is returned.
NSS 3.39 release notes
nss 3.39 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_39_rtm/src/ new in nss 3.39 new functionality the tstclnt and selfserv utilities added support for configuring the enabled tls signature schemes using the -j para
meter.
... previous versions of nss accepted an rsa pkcs#1 v1.5 signature where the digestinfo structure was missing the null para
meter.
... starting with version 3.39, nss requires the encoding to contain the null para
meter.
... the tstclnt and selfserv test utilities no longer accept the -z para
meter, as support for tls compression was removed in a previous nss version.
Bytecode Descriptions
this instruction and the branch around the iterator loop are emitted only when arr is itself a rest para
meter, as in (...arr) => f(...arr), a strong hint that it's a packed array whose prototype is array.prototype.
... the weird scoping rules for functions with default para
meter expressions, as specified in functiondeclarationinstantiation step 28 ("note: a separate environment record is needed...").
... rest stack: ⇒ rest create and push the rest para
meter array for current function call.
... this must appear only in a script for a function that has a rest para
meter.
JSClass.call
var custom = new specialcustomobject(); custom(); // the jsclass.call hook receives the global object as the obj para
meter.
... new custom(); // the jsclass.construct hook receives the global object as the obj para
meter.
... var x = { specialmethod: custom }; x.specialmethod(); // the jsclass.call hook receives x as the obj para
meter.
... new x.specialmethod(); // the jsclass.construct hook receives x as the obj para
meter.
JS_ConvertArguments
(the purpose is to ensure gc safety.) format const char * null-terminated string describing the types of the out para
meters and how to convert the values in argv.
... void * out para
meters.
...there must be one pointer for each para
meter described in format.
... variables for optional para
meters must already be initialized, because if an optional para
meter is not in argv, js_convertarguments does not modify the corresponding variable.
JS_GetPropertyAttrsGetterAndSetter
attrsp unsigned int * out para
meter.
... foundp jsbool * out para
meter.
... getterp jspropertyop * out para
meter.
... setterp jspropertyop * out para
meter.
JS_NewArrayObject
obsolete since jsapi 30 description js_newarrayobject with contents para
meter creates a new array object with the specified contents elements.
... js_newarrayobject with length para
meter creates a new array object with the specified length; the result is like the javascript expression new array(length).
... js_newarrayobject with length para
meter creates a new array object with the specified length.
... see also mxr id search for js_newarrayobject bug 969812 - change para
meter to contents ...
Parser API
all binding forms (such as function para
meters, variable declarations, and catch block headers) accept array and object destructuring patterns in addition to plain identifiers.
...in binding positions (such as function para
meters, variable declarations, and catch headers), patterns can only be identifiers in the base case, not arbitrary expressions.
... builder objects the optional builder para
meter to reflect.parse() makes it possible to construct user-specified data from the parser, rather than the default node objects.
... if the loc option is enabled (see the reflect.parse() options above), then each callback is provided with the source location information of the parsed node as an extra para
meter.
SpiderMonkey 1.8.5
getters and setters of type jspropertyop took an id para
meter of type jsval.
... the type of the para
meter has been changed to jsid.
...to migrate, simply add a jsbool strict para
meter to each setter function.
...sion js_evaluateucscriptforprincipalsversion js_executeregexp js_executeregexpnostatics js_executescriptversion js_forget_string_flatness js_fileescapedstring js_finishjsonparse (removed in future releases, replaced with js_parsejson) js_flatstringequalsascii js_flattenstring js_flushcaches js_freezeobject js_getcompartmentprivate js_getemptystring js_getflatstringchars js_getgcpara
meter js_getgcpara
meterforthread js_getglobalforscopechain js_getinternedstringchars js_getinternedstringcharsandlength js_getownpropertydescriptor js_getpropertyattrsgetterandsetterbyid js_getpropertybyid js_getpropertybyiddefault js_getpropertydefault js_getpropertydescriptorbyid js_getruntimesecuritycallbacks js_getsecuritycallbacks js_getstringcharsandlength js_getstringcharsz js_get...
Using RAII classes in Mozilla
blic: explicit nsautoscriptblocker(jscontext *cx moz_guard_object_notifier_param) { // note: no ',' before macro moz_guard_object_notifier_init; nscontentutils::addscriptblocker(cx); } ~nsautoscriptblocker() { nscontentutils::removescriptblocker(); } private: moz_decl_use_guard_object_notifier }; moz_guard_object_notifier_param is added to the end of the constructor's para
meter list.
...(this is needed because the macro adds a para
meter only when debug is defined, and in this case, it can't add the leading comma.) class moz_raii nsautoscriptblocker { public: explicit nsautoscriptblocker(moz_guard_object_notifier_only_param) { moz_guard_object_notifier_init; nscontentutils::addscriptblocker(); } ~nsautoscriptblocker() { nscontentutils::removescriptblocker(); } private: moz_decl_use_guard_object_notifier }; ...
...second, if the constructor is not inline, it needs the para
meter added in its implementation as well.
... in this case, the implementation must use the moz_guard_object_notifier_param_in_impl macro to add to the implementation: nsautoscriptblocker::nsautoscriptblocker(jscontext *cx moz_guard_object_notifier_param_in_impl) { moz_guard_object_notifier_init; nscontentutils::addscriptblocker(cx); } or, if it is the only para
meter: nsautoscriptblocker::nsautoscriptblocker(moz_guard_object_notifier_only_param_in_impl) { moz_guard_object_notifier_init; nscontentutils::addscriptblocker(); } finally, if an raii class that uses these macros has derived classes, the derived classes must also use some of the macros in order to get the benefit of the assertions.
Using the Places livemark service
var newlvmkid = livemarkservice.createlivemark(parentfolderid, "livemark name", uri("http://example.com/"), uri("http://example.com/rss.xml"), -1); the first para
meter is the id of the folder in which to create the livemark.
... the second para
meter is the livemark's name as it will appear in the bookmark's title.
... the third para
meter is the uri of the site the livemark was created from (specified as an nsiuri object.
...ot = bmsvc.bookmarksmenufolder; // item id of the bookmarks menu var newlvmkid = livemarkservice.createlivemarkfolderonly(bmsvc, root, "livemark name", uri("http://example.com/"), uri("http://example.com/rss.xml"), -1); the para
meters here are the same as for nsilivemarkservice.createlivemark(), except for the insertion of a new para
meter at the beginning, which is the nsinavbookmarksservice to use when creating the livemark.
Using XPCOM Components
getter_addrefs(cookiemanager)); if (ns_failed(rv)) return -1; pruint32 len; deletedcookies->getlength(&len); for (int c=0; c<len; c++) cookiemanager->remove(deletedcookies[c].host, deletedcookies[c].name, deletedcookies[c].path, pr_false); xxx: in the original document, there were only the first three para
meters to the |remove| call.
... i added |pr_false| as a fourth para
meter because the interface seems to require it: http://lxr.mozilla.org/mozilla/source/netwerk/cookie/public/nsicookiemanager.idl#64 this problem also appears in the javascript version below, and i've added |false| as a fourth para
meter there as well.
...*/ } function finalizecookiedeletions() { for (var c=0; c<deletedcookies.length; c++) { cmgr.remove(deletedcookies[c].host, deletedcookies[c].name, deletedcookies[c].path, false); } deletedcookies.length = 0; } xxx: in the original document, there were only the first three para
meters to the |remove| call.
... i added |false| as a fourth para
meter because the interface seems to require it: http://lxr.mozilla.org/mozilla/source/netwerk/cookie/public/nsicookiemanager.idl#64 this problem also appears in the c++ version above, and i've added |pr_false| as a fourth para
meter there as well.
operator+=
self_type& operator+=( const self_type& astring ); para
meters astring [in] a nsastring to append to this string.
... self_type& operator+=( const char_type* adata ); para
meters adata [in] a raw character array to append to this string.
... self_type& operator+=( char_type achar ); para
meters achar [in] a character to append to this string.
...see also append para
meters astring [in] a nsastring to append to this string.
nsEmbedCString
nsembedcstring(); explicit nsembedcstring( const self_type& astring ); para
meters astring [in] a nsembedcstring to copy into this string.
... nsembedcstring( const abstract_string_type& aabstractstring ); para
meters aabstractstring [in] a nsacstring to copy into this string.
... explicit nsembedcstring( const abstract_string_type& aabstractstring ); para
meters aabstractstring [in] a nsacstring to copy into this string.
... explicit nsembedcstring( const char_type* adata, size_type adatalength = pr_uint32_max ); para
meters adata [in] a raw character array to copy into this string.
operator=
self_type& operator=( const self_type& astring ); para
meters astring [in] a nsembedcstring to append to this string.
... self_type& operator=( const abstract_string_type& astring ); para
meters astring [in] a nsacstring to append to this string.
... self_type& operator=( const char_type* adata ); para
meters adata [in] a raw character array to append to this string.
... self_type& operator=( char_type achar ); para
meters achar [in] a character to append to this string.
nsEmbedString
nsembedstring(); explicit nsembedstring( const self_type& astring ); para
meters astring [in] a nsembedstring to copy into this string.
... nsembedstring( const abstract_string_type& aabstractstring ); para
meters aabstractstring [in] a nsastring to copy into this string.
... explicit nsembedstring( const abstract_string_type& aabstractstring ); para
meters aabstractstring [in] a nsastring to copy into this string.
... explicit nsembedstring( const char_type* adata, size_type adatalength = pr_uint32_max ); para
meters adata [in] a raw character array to copy into this string.
operator=
self_type& operator=( const self_type& astring ); para
meters astring [in] a nsembedstring to append to this string.
... self_type& operator=( const abstract_string_type& astring ); para
meters astring [in] a nsastring to append to this string.
... self_type& operator=( const char_type* adata ); para
meters adata [in] a raw character array to append to this string.
... self_type& operator=( char_type achar ); para
meters achar [in] a character to append to this string.
IAccessibleApplication
[propget] hresult appname( [out] bstr name ); para
meters name the application name.
...[propget] hresult appversion( [out] bstr version ); para
meters version the application version.
...[propget] hresult toolkitname( [out] bstr name ); para
meters name the toolkit/bridge name.
...[propget] hresult toolkitversion( [out] bstr version ); para
meters version the toolkit/bridge version.
IAccessibleValue
[propget] hresult currentvalue( [out] variant currentvalue ); para
meters currentvalue returns the current value represented by this object.
...[propget] hresult maximumvalue( [out] variant maximumvalue ); para
meters maximumvalue returns the maximal value in an implementation dependent type.
...[propget] hresult minimumvalue( [out] variant minimumvalue ); para
meters minimumvalue returns the minimal value in an implementation dependent type.
...hresult setcurrentvalue( [in] variant value ); para
meters value the new value represented by this object.
imgICache
any images from windows in private browsing mode will not be present in the cache returned from a call with a null para
meter).
...void clearcache( in boolean chrome ); para
meters chrome if true, evict only chrome images.
...nsiproperties findentryproperties( in nsiuri uri ); para
meters uri the uri to look up.
...void removeentry( in nsiuri uri ); para
meters uri the uri to remove.
imgIEncoder
methods addimageframe() void addimageframe( [array, size_is(length), const] in pruint8 data, in unsigned long length, in pruint32 width, in pruint32 height, in pruint32 stride, in pruint32 frameformat, in astring frameoptions ); para
meters data list of bytes in the format specified by inputformat.
...frameformat missing description frameoptions missing description encodeclipboardimage() obsolete since gecko 1.9 (firefox 3) void encodeclipboardimage( in nsiclipboardimage aclipboardimage, out nsifile aimagefile ); para
meters aclipboardimage missing description aimagefile missing description endimageencode() void endimageencode(); para
meters none.
... initfromdata() void initfromdata( [array, size_is(length), const] in pruint8 data, in unsigned long length, in pruint32 width, in pruint32 height, in pruint32 stride, in pruint32 inputformat, in astring outputoptions ); para
meters data list of bytes in the format specified by inputformat.
... startimageencode() void startimageencode( in pruint32 width, in pruint32 height, in pruint32 inputformat, in astring outputoptions ); para
meters width width in pixels.
mozIJSSubScriptLoader
jsval loadsubscript( in string url, in object targetobj optional, in string charset optional, ); example let context = {}; services.scriptloader.loadsubscript("chrome://my-package/content/foo-script.js", context, "utf-8" /* the script's encoding */); para
meters url the url pointing to the script to load.
... loadsubscriptwithoptions() same as loadsubscript(), except that para
meters after url are expressed as an object, and a new ignorecache option is available.
... jsval loadsubscriptwithoptions( in string url, in object options ); para
meters url the url pointing to the script to load.
... options an object that may include any of these para
meters: property type description target object the object to use as the scope object for the script being executed.
mozIStorageService
nsifile backupdatabasefile( in nsifile adbfile, in astring abackupfilename, in nsifile abackupparentdirectory optional ); para
meters adbfile the database file to back up.
...mozistorageconnection opendatabase( in nsifile adatabasefile ); para
meters adatabasefile an nsifile indicating the database file to open.
...mozistorageconnection openspecialdatabase( in string astoragekey ); para
meters astoragekey a string key identifying the type of storage requested.
...mozistorageconnection openunshareddatabase( in nsifile adatabasefile ); para
meters adatabasefile an nsifile indicating the database file to open.
nsIAccessibleHyperLink
nsiaccessible getanchor( in long index ); para
meters index the 0-based index whose object is to be returned.
... nsiuri geturi( in long index ); para
meters index the 0-based index of the uri to be returned.
... boolean isselected(); para
meters none.
... boolean isvalid(); para
meters none.
nsIAccessibleTreeCache
nsiaccessible getcachedtreeitemaccessible( in long arow, in nsitreecolumn acolumn ); para
meters arow the row index.
...void invalidatecache( in long arow, in long acount ); para
meters arow row index the invalidation starts from.
...void treeviewchanged(); para
meters none.
...void treeviewinvalidated( in long astartrow, in long aendrow, in long astartcol, in long aendcol ); para
meters astartrow row index invalidation starts from.
nsIAnnotationObserver
void onitemannotationremoved( in long long aitemid, in autf8string aname ); para
meters aitemid the item whose annotation is to be deleted.
...void onitemannotationset( in long long aitemid, in autf8string aname ); para
meters aitemid the item on which the annotation is to be set.
...void onpageannotationremoved( in nsiuri auri, in autf8string aname ); para
meters auri the uri whose annotation is to be deleted.
...void onpageannotationset( in nsiuri apage, in autf8string aname ); para
meters apage the uri on which the annotation is to be set.
nsIArray
null is a valid entry in the array, and as such any nsisupports para
meters may be null, except where noted.
...nsisimpleenumerator enumerate(); para
meters none.
...unsigned long indexof( in unsigned long startindex, in nsisupports element ); para
meters startindex the initial element to search in the array.
...void queryelementat( in unsigned long index, in nsiidref uuid, [iid_is(uuid), retval] out nsqiresult result ); para
meters index position of element.
nsIAsyncInputStream
void asyncwait( in nsiinputstreamcallback acallback, in unsigned long aflags, in unsigned long arequestedcount, in nsieventtarget aeventtarget ); para
meters acallback this object is notified when the stream becomes ready.
... this para
meter may be null to clear an existing callback.
... aflags this para
meter specifies optional flags passed in to configure the behavior of this method.
...void closewithstatus( in nsresult astatus ); para
meters astatus the error that will be reported if this stream is accessed after it has been closed.
nsIAsyncOutputStream
void asyncwait( in nsioutputstreamcallback acallback, in unsigned long aflags, in unsigned long arequestedcount, in nsieventtarget aeventtarget ); para
meters acallback this object is notified when the stream becomes ready.
... this para
meter may be null to clear an existing callback.
... aflags this para
meter specifies optional flags passed in to configure the behavior of this method.
...void closewithstatus( in nsresult reason ); para
meters reason the error that will be reported if this stream is accessed after it has been closed.
nsIAuthModule
void getnexttoken( [const] in voidptr aintoken, in unsigned long aintokenlength, out voidptr aouttoken, out unsigned long aouttokenlength ); para
meters aintoken a buffer containing the input token (for example a challenge from a server).
...void init( in string aservicename, in unsigned long aserviceflags, in wstring adomain, in wstring ausername, in wstring apassword ); para
meters aservicename the service name, which may be null if not applicable (for example, for ntlm, this para
meter should be null).
...void unwrap( [const] in voidptr aintoken, in unsigned long aintokenlength, out voidptr aouttoken, out unsigned long aouttokenlength ); para
meters aintoken a buffer containing the data received from the server.
...void wrap( [const] in voidptr aintoken, in unsigned long aintokenlength, in boolean confidential, out voidptr aouttoken, out unsigned long aouttokenlength ); para
meters aintoken a buffer containing the data to be sent to the server.
nsIChromeRegistry
void canonify( in nsiuri achromeurl ); para
meters achromeurl the url that is to be canonified.
...void checkfornewchrome(); para
meters none.
... nsiuri convertchromeurl( in nsiuri achromeurl ); para
meters achromeurl the url that is to be converted.
...boolean wrappersenabled( in nsiuri auri ); para
meters auri the uri for which to determine if xpcnativewrappers are enabled.
nsICommandLineRunner
void init( in long argc, in nscharptrarray argv, in nsifile workingdir, in unsigned long state ); para
meters argc the number of arguments being passed.
...void run(); para
meters none.
... setwindowcontext() sets the windowcontext para
meter.
... void setwindowcontext( in nsidomwindow awindow ); para
meters awindow the dom window object which will be set.
nsIController
void docommand( in string command ); para
meters command the name of the command to execute.
...boolean iscommandenabled( in string command ); para
meters command the name of the command whose availability is to be checked.
...void onevent( in string eventname ); para
meters eventname the name of the event to process.
...boolean supportscommand( in string command ); para
meters command the name of the command to determine whether or not it is supported.
nsICrashReporter
void annotatecrashreport( in acstring key, in acstring data ); para
meters key name of the data to be added.
...void appendappnotestocrashreport( in acstring data ); para
meters data data to be added.
...void appendobjcexceptioninfotoappnotes( in voidptr aexception ); para
meters aexception nsexception object to append note for.
...void writeminidumpforexception( in voidptr aexceptioninfo ); para
meters aexceptioninfo exception_info* provided by window's seh.
nsICycleCollectorListener
ng aaddress, in boolean amarked); void describerefcountedobject(in unsigned long long aaddress, in unsigned long aknownedges, in unsigned long atotaledges); void end(); void noteedge(in unsigned long long afromaddress, in unsigned long long atoaddress, in string aedgename); void noteobject(in unsigned long long aaddress, in string aobjectdescription); methods begin() void begin(); para
meters none.
... begindescriptions() void begindescriptions(); para
meters none.
... describegcedobject() void describegcedobject( in unsigned long long aaddress, in boolean amarked ); para
meters aaddress amarked describerefcountedobject() void describerefcountedobject( in unsigned long long aaddress, in unsigned long aknownedges, in unsigned long atotaledges ); para
meters aaddress aknownedges atotaledges end() void end(); para
meters none.
... noteedge() void noteedge( in unsigned long long afromaddress, in unsigned long long atoaddress, in string aedgename ); para
meters afromaddress atoaddress aedgename noteobject() void noteobject( in unsigned long long aaddress, in string aobjectdescription ); para
meters aaddress aobjectdescription ...
nsIDNSRecord
prnetaddr getnextaddr( in pruint16 aport ); para
meters aport a port number to initialize the prnetaddr with.
...acstring getnextaddrasstring(); para
meters none.
...boolean hasmore(); para
meters none.
...void rewind(); para
meters none.
nsIDOMGeoPositionCoords
altitude double the user's current altitude, in
meters.
... accuracy double the accuracy of position information, in
meters.
... altitudeaccuracy double the accuracy of altitude information, in
meters.
... speed double the speed at which the user is moving, in
meters per second (confirm this).
nsIDOMNode
constants constant value description element_node 1 attribute_node 2 text_node 3 cdata_section_node 4 entity_reference_node 5 entity_node 6 processing_instruction_node 7 comment_node 8 document_node 9 document_type_node 10 document_fragment_node 11 notation_node 12 methods appendchild() nsidomnode appendchild( in nsidomnode newchild ); para
meters newchild return value clonenode() nsidomnode clonenode( in boolean deep ); para
meters deep return value hasattributes() boolean hasattributes(); para
meters none.
... return value haschildnodes() boolean haschildnodes(); para
meters none.
... return value insertbefore() nsidomnode insertbefore( in nsidomnode newchild, in nsidomnode refchild ); para
meters newchild refchild return value issupported() boolean issupported( in domstring feature, in domstring version ); para
meters feature version return value normalize() void normalize(); para
meters none.
... removechild() nsidomnode removechild( in nsidomnode oldchild ); para
meters oldchild return value replacechild() nsidomnode replacechild( in nsidomnode newchild, in nsidomnode oldchild ); para
meters newchild oldchild return value see also document object model (dom) level 2 core specificationrec ...
nsIDebug
void abort( in string afile, in long aline ); para
meters afile file containing abort request.
...void assertion( in string astr, in string aexpr, in string afile, in long aline ); para
meters astr assertion message.
...void break( in string afile, in long aline ); para
meters afile file containing break request.
...void warning( in string astr, in string afile, in long aline ); para
meters astr warning message.
nsIDirIndexListener
void onindexavailable( in nsirequest arequest, in nsisupports actxt, in nsidirindex aindex ); para
meters arequest the request.
... actxt opaque para
meter aindex new index to add.
...void oninformationavailable( in nsirequest arequest, in nsisupports actxt, in astring ainfo ); para
meters arequest the request.
... actxt opaque para
meter ainfo new info to add.
nsIDynamicContainer
void oncontainermoved( in long long aitemid, in long long anewparent, in long anewindex ); para
meters aitemid the item-id of the container item.
...void oncontainernodeclosed( in nsinavhistorycontainerresultnode acontainer ); para
meters acontainer the container node of the container being closed.
...void oncontainernodeopening( in nsinavhistorycontainerresultnode acontainer, in nsinavhistoryqueryoptions aoptions ); para
meters acontainer the container node for the container being opened.
...void oncontainerremoving( in long long aitemid ); para
meters aitemid the item-id of the container item.
nsIEffectiveTLDService
acstring getbasedomain( in nsiuri auri, [optional] in pruint32 aadditionalparts ); para
meters auri the uri to be analyzed.
... acstring getbasedomainfromhost( in autf8string ahost, in pruint32 aadditionalparts optional ); para
meters ahost the host string to be analyzed.
... acstring getpublicsuffix( in nsiuri auri ); para
meters auri the uri to be analyzed.
... acstring getpublicsuffixfromhost( in autf8string ahost ); para
meters ahost the host string to be analyzed.
nsIFeedProgressListener
void handleentry( in nsifeedentry entry, in nsifeedresult result ); para
meters entry pointer to an nsifeedentry containing information about the entry that was just processed.
... void handlefeedatfirstentry( in nsifeedresult result ); para
meters result an nsifeedresult describing the feed at the point at which the first entry is found, but before processing it.
... void handlestartfeed( in nsifeedresult result ); para
meters result an nsifeedresult describing the current state of the feed at the moment parsing begins.
... void reporterror( in astring errortext, in long linenumber, in boolean bozo ); para
meters errortext a short description of the error.
nsIFrameMessageManager
void addmessagelistener( in astring amessage, in nsiframemessagelistener alistener [optional in boolean listenwhenclosed ); para
meters amessage the name of the message for which to add a listener.
...this para
meter only has an effect for frame message managers in the main process.
... void removemessagelistener( in astring amessage, in nsiframemessagelistener alistener ); para
meters amessage the name of the message for which to remove a listener.
... void sendasyncmessage( in astring amessage, in astring json ); para
meters amessage the name of the message to send to the listeners.
nsIGeolocationProvider
boolean isready(); para
meters none.
...void shutdown(); para
meters none.
...void startup(); para
meters none.
...void watch( in nsigeolocationupdate callback ); para
meters callback an nsigeolocationupdate to be notified when position changes.
nsIIdleService
the data para
meter for the notification contains the current user idle time in gecko 15 and earlier or 0 in gecko 16 and later.
...the data para
meter for the notification contains the current user idle time.
... void addidleobserver( in nsiobserver observer, in unsigned long time ); para
meters observer the nsiobserver to be notified.
... void removeidleobserver( in nsiobserver observer, in unsigned long time ); para
meters observer the nsiobserver to be removed.
nsILoginInfo
nsilogininfo clone(); para
meters none.
... boolean equals( in nsilogininfo alogininfo ); para
meters alogininfo the login to which to compare for equality.
... void init( in astring ahostname, in astring aformsubmiturl, in astring ahttprealm, in astring ausername, in astring apassword, in astring ausernamefield, in astring apasswordfield ); para
meters ahostname the value to assign to the hostname field.
... boolean matches( in nsilogininfo alogininfo, in boolean ignorepassword ); para
meters alogininfo the login to which to compare for equality.
nsILoginManagerPrompter
void init( in nsidomwindow awindow ); para
meters awindow the in which the user is doing some login-related action that is resulting in a need to prompt them for something.
... void prompttochangepassword( in nsilogininfo aoldlogin, in nsilogininfo anewlogin ); para
meters aoldlogin the existing login (with the old password).
... void prompttochangepasswordwithusernames( [array, size_is(count)] in nsilogininfo logins, in pruint32 count, in nsilogininfo anewlogin ); para
meters logins an array of existing logins.
... prompttosavepassword() ask the user if they want to save a login (yes, never, not now) void prompttosavepassword( in nsilogininfo alogin ); para
meters alogin the login to be saved.
nsIMicrosummaryGenerator
long calculateupdateinterval( in nsidomnode apagecontent ); para
meters apagecontent the content of the page being summarized.
...boolean equals( in nsimicrosummarygenerator aother ); para
meters aother the generator to compare against.
...if a generator doesn't need content, pass null as the para
meter to this method.
...astring generatemicrosummary( in nsidomnode apagecontent ); para
meters apagecontent the content of the page being summarized.
nsIModule
boolean canunload( in nsicomponentmanager acompmgr ); para
meters acompmgr the global component manager.
...void getclassobject( in nsicomponentmanager acompmgr, in nscidref aclass, in nsiidref aiid, [retval, iid_is(aiid)] out nsqiresult aresult ); para
meters acompmgr the global component manager.
...void registerself( in nsicomponentmanager acompmgr, in nsifile alocation, in string aloaderstr, in string atype ); para
meters acompmgr the global component manager.
...void unregisterself( in nsicomponentmanager acompmgr, in nsifile alocation, in string aloaderstr ); para
meters acompmgr the global component manager.
nsIMsgAccount
void addidentity( in nsimsgidentity identity ); para
meters identity the identity to add.
...void clearallvalues(); para
meters none.
...void init(); para
meters none.
...void removeidentity( in nsimsgidentity identity ); para
meters identity the identity to remove.
nsIMsgDatabase
void open(in nsilocalfile afoldername, in boolean acreate, in boolean aleaveinvaliddb); para
meters afoldername the name of the folder to create.
... forcefolderdbclosed() void forcefolderdbclosed(in nsimsgfolder afolder); para
meters afolder close() void close(in boolean aforcecommit); para
meters aforcecommit commit() void commit(in nsmsgdbcommit committype); para
meters committype forceclosed() force closed is evil, and we should see if we can do without it.
... void forceclosed(); clearcachedhdrs() void clearcachedhdrs(); resethdrcachesize() void resethdrcachesize(in unsigned long size); getmsghdrforkey() nsimsgdbhdr getmsghdrforkey(in nsmsgkey key); para
meters key getmsghdrformessageid() nsimsgdbhdr getmsghdrformessageid(in string messageid); para
meters messageid containskey() returns whether or not this database contains the given key.
... boolean containskey(in nsmsgkey key); para
meters key createnewhdr() must call addnewhdrtodb after creating.
nsIObserver
void observe( in nsisupports asubject, in string atopic, in wstring adata ); para
meters asubject in general reflects the object whose change or action is being observed.
... adata an optional para
meter or other auxiliary data further describing the change or action.
... remarks the specific values and meanings of the para
meters provided varies widely, though, according to where the observer was registered, and what topic is being observed.
... a single nsiobserver implementation can observe multiple types of notification, and is responsible for dispatching its own behavior on the basis of the para
meters for a given callback.
nsIPasswordManager
astring adduser(in autf8string ahost, in astring auser, in astring apassword); para
meters ahost the hostname of the password to store.
... void removeuser(in autf8string ahost, in astring auser); para
meters ahost the hostname of the password to remove.
... void addreject(in autf8string ahost); para
meters ahost the name of the hostname for which passwords should no longer be saved.
... void removereject(in autf8string ahost); para
meters ahost the name of the hostname for which passwords can be saved again.
nsIProtocolHandler
boolean allowport( in long port, in string scheme ); para
meters port the port for which an override is being requested.
... nsichannel newchannel( in nsiuri auri ); para
meters auri the uri for which to construct a channel.
...(many servers do not support utf-8 iris at the present time, so we must be careful about tracking the native charset of the origin server.) nsiuri newuri( in autf8string aspec, in string aorigincharset, in nsiuri abaseuri ); para
meters aspec the uri string in utf-8 encoding.
...if the protocol has no concept of relative uris, this para
meter is ignored.
nsIPushService
void subscribe( in domstring scope, in nsiprincipal principal, in nsipushsubscriptioncallback callback ); para
meters scope the serviceworkerregistration.scope for a service worker subscription, or a unique url (for example, chrome://my-module/push) for a system subscription.
... void getsubscription( in domstring scope, in nsiprincipal principal, in nsipushsubscriptioncallback callback ); para
meters scope the unique scope url, as passed to nsipushservice.subscribe().
... void unsubscribe( in domstring scope, in nsiprincipal principal, in nsiunsubscriberesultcallback callback ); para
meters scope the unique scope url, as passed to nsipushservice.subscribe().
...your nsiobserver should ensure the data para
meter matches your subscription scope.
nsIRequest
void cancel( in nsresult astatus ); para
meters astatus the reason for canceling this request.
... boolean ispending(); para
meters none.
... void resume(); para
meters none.
... void suspend(); para
meters none.
nsISecurityCheckedComponent
string cancallmethod( in nsiidptr iid, in wstring methodname ); para
meters iid the iid of the interface this method exists on.
...string cancreatewrapper( in nsiidptr iid ); para
meters iid the interface to reflect into javascript.
...string cangetproperty( in nsiidptr iid, in wstring propertyname ); para
meters iid the interface that the property to get exists on.
...string cansetproperty( in nsiidptr iid, in wstring propertyname ); para
meters iid the interface that the property to set exists on.
nsISeekableStream
void seek( in long whence, in long long offset ); para
meters whence specifies how to interpret the 'offset' para
meter in setting the stream offset associated with the implementing stream, according to the table of constants above.
... offset specifies a value, in bytes, that is used in conjunction with the 'whence' para
meter to set the stream offset of the implementing stream.
...void seteof(); para
meters none.
...long long tell(); para
meters none.
nsIServiceManager
void getservice( in nscidref aclass, in nsiidref aiid, [iid_is(aiid),retval] out nsqiresult result ); para
meters aclass the classid of the service that is being requested.
... void getservicebycontractid( in string acontractid, in nsiidref aiid, [iid_is(aiid),retval] out nsqiresult result ); para
meters acontractid the contractid of the service that is being requested.
... boolean isserviceinstantiated( in nscidref aclass, in nsiidref aiid ); para
meters aclass the classid of the service that is being tested.
... boolean isserviceinstantiatedbycontractid( in string acontractid, in nsiidref aiid ); para
meters acontractid the contractid of the service that is being tested.
nsISocketProvider
when set, the hostname para
meter passed in this interface will be used instead of the address structure passed for a later request.
...para
meters are the same as newsocket() with the exception of afiledesc, which is an input para
meter instead.
... void addtosocket( in long afamily, in string ahost, in long aport, in string aproxyhost, in long aproxyport, in unsigned long aflags, in prfiledescstar afiledesc, out nsisupports asecurityinfo ); para
meters afamily the address family for this socket (pr_af_inet or pr_af_inet6).
...void newsocket( in long afamily, in string ahost, in long aport, in string aproxyhost, in long aproxyport, in unsigned long aflags, out prfiledescstar afiledesc, out nsisupports asecurityinfo ); para
meters afamily the address family for this socket (pr_af_inet or pr_af_inet6).
nsIStringBundleService
mponents.interfaces.nsistringbundleservice); method overview nsistringbundle createbundle(in string aurlspec); nsistringbundle createextensiblebundle(in string aregistrykey); void flushbundles(); wstring formatstatusmessage(in nsresult astatus, in wstring astatusarg); methods createbundle() nsistringbundle createbundle( in string aurlspec ); para
meters aurlspec the url of the properties file to load.
... createextensiblebundle() nsistringbundle createextensiblebundle( in string aregistrykey ); para
meters aregistrykey the name of the category under which the properties file(s) have been registered.
...(automatically called for the memory-pressure and chrome-flush-caches global observer topics.) void flushbundles(); para
meters none.
... wstring formatstatusmessage( in nsresult astatus, in wstring astatusarg ); para
meters astatus the status code.
nsIStructuredCloneContainer
nsivariant deserializetovariant(); para
meters none.
...astring getdataasbase64(); para
meters none.
...void initfrombase64( in astring adata, in unsigned long aformatversion ); para
meters adata a base-64-encoded byte stream.
...void initfromvariant( in nsivariant adata ); para
meters adata a nsivariant, must be backed by a jsval.
nsIThread
void shutdown() para
meters none.
... boolean haspendingevents() para
meters none.
...if there aren't any pending events, this method may wait -- depending on the value of the maywait para
meter -- until an event is dispatched to the thread.
... boolean processnextevent( in boolean maywait ); para
meters maywait if true, this method blocks until an event is available to process if the event queue is empty.
nsIThreadObserver
void afterprocessnextevent( in nsithreadinternal thread, in unsigned long recursiondepth ); para
meters thread the nsithread on which the event was processed.
... void ondispatchedevent( in nsithreadinternal thread ); para
meters thread the nsithread on which the event was dispatched.
... void onprocessnextevent( in nsithreadinternal thread, in boolean maywait, in unsigned long recursiondepth ); para
meters thread the nsithread on which the event is going to be processed.
...this para
meter will be false during thread shutdown.
nsITimer
void cancel(); para
meters none.
... void init( in nsiobserver aobserver, in unsigned long adelay, in unsigned long atype ); para
meters aobserver a callback object, that is capable listening to timer events.
... void initwithcallback( in nsitimercallback acallback, in unsigned long adelay, in unsigned long atype ); para
meters acallback an nsitimercallback interface to call when timer expires.
... void initwithfunccallback( in nstimercallbackfunc acallback, in voidptr aclosure, in unsigned long adelay, in unsigned long atype ); para
meters acallback a nstimercallbackfunc interface compatible function to call when timer fires.
nsIToolkitProfileService
nsitoolkitprofile createprofile( in nsilocalfile arootdir, in autf8string aname ); para
meters arootdir the profile directory.
...void flush(); para
meters none.
...nsitoolkitprofile getprofilebyname( in autf8string aname ); para
meters aname the profile name to find.
...nsiprofilelock lockprofilepath( in nsilocalfile adirectory, in nsilocalfile atempdirectory ); para
meters adirectory the directory to lock as a profile directory.
nsITransaction
void dotransaction(); para
meters none.
...boolean merge( in nsitransaction atransaction ); para
meters atransaction the previously executed transaction to merge.
...void redotransaction(); para
meters none.
...void undotransaction(); para
meters none.
nsITransactionList
nsitransactionlist getchildlistforitem( in long aindex ); para
meters aindex the index of the item in the list.
...nsitransaction getitem( in long aindex ); para
meters aindex the index of the item in the list.
...long getnumchildrenforitem( in long aindex ); para
meters aindex the index of the item in the list.
...boolean itemisbatch( in long aindex ); para
meters aindex the index of the item in the list.
nsIURIFixup
nsiuri createexposableuri( in nsiuri auri ); para
meters auri the uri to be converted.
... nsiuri createfixupuri( in autf8string auritext, in unsigned long afixupflags ); para
meters auritext candidate uri.
... nsiuri keywordtouri( in autf8string akeyword ); para
meters akeyword the keyword to convert into a uri.
... nsiuri createfixupuri( in autf8string auritext, in unsigned long afixupflags ); para
meters auritext candidate uri.
nsIUploadChannel
for this reason, we have a special meaning for the acontenttype para
meter.
... void setuploadstream( in nsiinputstream astream, in acstring acontenttype, in long acontentlength ); para
meters astream the stream to be uploaded by this channel.
...in the case of http, if this para
meter is non-empty, then its value will replace any existing content-type header on the http request.
... in the case of ftp and file, this para
meter is ignored.
nsIXULBrowserWindow
astring onbeforelinktraversal( in astring originaltarget, in nsiuri linkuri, in nsidomnode linknode, in prbool isapptab ); para
meters originaltarget the specified target for the link.
...void setjsdefaultstatus( in astring status ); para
meters status the status string.
...void setjsstatus( in astring status ); para
meters status the status string.
...void setoverlink( in astring link, in nsidomelement element ); para
meters link the link string.
nsIXULTemplateResult
astring getbindingfor( in nsiatom avar ); para
meters avar the variable to look up.
...nsisupports getbindingobjectfor( in nsiatom avar ); para
meters avar the variable to look up.
...void hasbeenremoved(); para
meters none.
...void rulematched( in nsisupports aquery, in nsidomnode arulenode ); para
meters aquery the query that matched.
Using the clipboard
this function takes three para
meters.
...the first para
meter of this function is the transferable.
... the second para
meter can usually be set to null but you could set it to an nsiclipboardowner so that you can tell when the data you've copied is overwritten by another copy operation.
... the third para
meter to setdata (and the para
meter to emptyclipboard) indicates which clipboard buffer to use.
xptcall FAQ
the core invoke function has the declaration: xptc_public_api(nsresult) xptc_invokebyindex(nsisupports* that, pruint32 methodindex, pruint32 paramcount, nsxptcvariant* params); nsxptcvariant is a discriminated union of the types that can be passed as para
meters to the target function (including void* to represent arbitrary pointer types).
... given the correct set of para
meters, this function can call any method on any xpcom interface.
...the information in the typelibs allows xpconnect to convert function para
meters and build the nsxptcvariant array required to make this call.
...these stubs forward calls to a shared function whose job it is to use the typelib information to extract the para
meters from the platform specific calling convention to build an array of variants to hold the para
meters and then call an inherited method which can then do whatever it wants with the call.
ArrayType
ctype arraytype() type[ length] ); para
meters type: it represents the type of the elements or variable which is going to be present in an array length optional it denotes the number of entries present in an array or the number of elements that an array should contain.
... if you don't specify this para
meter, the array's length is unspecified.
... para
meters length the number of entries the array type should be able to contain.
... cdata addressofelement( idx ); para
meters idx a numeric value indicating the offset into the array of the element just to return a pointer.
CType
ctype array( [n] }; para
meters n optional the number of elements in the declared array type.
... if this para
meter is left out, the array's size is indeterminate.
... string tosource(); para
meters none.
... string tostring(); para
meters none.
Library
close(); para
meters none.
... cdata declare( name[, abi, returntype argtype1, ...] ); para
meters name the name of the symbol exported by the native library that is to be declared as usable from javascript abi the abi used by the exported function; this will be ctypes.default_abi for most libraries, except for windows libraries, which will be ctypes.winapi_abi or ctypes.stdcall_abi.
...this para
meter should not be provided if the api is an exported data symbol.
... argtype1...argtypen zero or more para
meter ctype may be specified for the para
meters of the function being declared.
Version, UI, and Status Information - Plugins
void npn_status(npp instance, const char *message); the instance para
meter is the current plug-in instance, that is, the one that the status message belongs to.
... in the message para
meter, pass the string you want to display on the status line.
... const char* npn_useragent(npp instance); the instance para
meter represents the current plug-in instance.
... void npn_reloadplugins(npbool reloadpages); the reloadpages para
meter is a boolean that indicates whether to reload the page (true) or not (false).
Debugger.Object - Firefox Developer Tools
for example: function h() { var i = function() {}; // display name: h/i f(function () {}); // display name: h/< } var s = f(function () {}); // display name: s< para
meternames if the referent is a debuggee function, the names of the its para
meters, as an array of strings.
... if the referent is a host function for which para
meter names are not available, return an array with one element per para
meter, each of which is undefined.
... if the referent uses destructuring para
meters, then the array’s elements reflect the structure of the para
meters.
...} then this debugger.object instance’s para
meternames property would have the value: ["a", ["b", "c"], {d:"d", e:"f"}] script if the referent is a function that is debuggee code, this is that function’s script, as a debugger.script instance.
Debugger.Object - Firefox Developer Tools
for example: function h() { var i = function() {}; // display name: h/i f(function () {}); // display name: h/< } var s = f(function () {}); // display name: s< para
meternames if the referent is a debuggee function, the names of the its para
meters, as an array of strings.
... if the referent is a host function for which para
meter names are not available, return an array with one element per para
meter, each of which is undefined.
... if the referent uses destructuring para
meters, then the array's elements reflect the structure of the para
meters.
...} then this debugger.object instance's para
meternames property would have the value: ["a", ["b", "c"], {d:"d", e:"f"}] script if the referent is a function that is debuggee code, this is that function's script, as a debugger.script instance.
AudioParam.setTargetAtTime() - Web APIs
syntax var paramref = param.settargetattime(target, starttime, timeconstant); para
meters target the value the para
meter will start to transition towards at the given start time.
...if it is less than or equal to audiocontext.currenttime, the para
meter will start changing immediately.
... description the change starts at the time specified in starttime and exponentially moves towards the value given by the target para
meter.
... the decay rate as defined by the timeconstant para
meter is exponential; therefore the value will never reach target completely, but after each timestep of length timeconstant, the value will have approached target by another 1-e-1≈63.2%1 - e^{-1} \approx 63.2%.
AudioParam.setValueCurveAtTime() - Web APIs
the setvaluecurveattime() method of the audioparam interface schedules the para
meter's value to change following a curve defined by a list of values.
... syntax var paramref = param.setvaluecurveattime(values, starttime, duration); para
meters values an array of floating-point numbers representing the value curve the audioparam will change through along the specified duration.
... duration a double representing the total time (in seconds) over which the para
meter's value will change following the specified curve.
... usage notes when the para
meter's value finishes following the curve, its value is guaranteed to match the last value in the set of values specified in the values para
meter.
CSSPrimitiveValue - Web APIs
conversions are allowed between absolute values (from milli
meters to centi
meters, from degrees to radians, and so on) but not between relative values.
... (for example, a pixel value cannot be converted to a centi
meter value.) percentage values can't be converted since they are relative to the parent value (or another property value).
... css_cm the value is a <length> in centi
meters.
... css_mm the value is a <length> in milli
meters.
console.assert() - Web APIs
syntax console.assert(assertion, obj1 [, obj2, ..., objn]); console.assert(assertion, msg [, subst1, ..., substn]); // c-like message formatting para
meters assertion any boolean expression.
...this para
meter gives you additional control over the format of the output.
...g: errormsg}); // or, using es2015 object property shorthand: // console.assert(number % 2 === 0, {number, errormsg}); } // output: // the # is 2 // the # is 3 // assertion failed: {number: 3, errormsg: "the # is not even"} // the # is 4 // the # is 5 // assertion failed: {number: 5, errormsg: "the # is not even"} note that, while a string containing a substitution string works as a para
meter for console.log in node and many, if not most, browsers...
... console.log('the word is %s', 'foo'); // output: the word is foo ...the use of such a string does not currently work as intended as a para
meter for console.assert in all browsers: console.assert(false, 'the word is %s', 'foo'); // correct output in node.js and some browsers // (e.g.
ConstantSourceNode.offset - Web APIs
so you can change the value of offset by setting the value of constantsourcenode.offset.value: myconstantsourcenode.offset.value = newvalue; syntax let offsetpara
meter = constantaudionode.offset; let offset = constantsourcenode.offset.value; constantsourcenode.offset.value = newvalue; value an audioparam object indicating the a-rate value returned for every sample by this node.
... to access the offset para
meter's current value, access the para
meter's value property, as shown in the syntax box above.
... example this example shows how to set up a constantsourcenode so its offset is used as the input to a pair of gainnodes; this snippet is derived from the complete example you can find in controlling multiple para
meters with constantsourcenode.
...with the linkage above in place, that can be done using this simple event handler: function handleclickevent(event) { volumeslidercontrol.value = constantsource.offset.value; } all this function has to do is fetch the current value of the slider control we're using to control the paired nodes' gains, then store that value into the constantsourcenode's offset para
meter.
Document.createTouch() - Web APIs
syntax var touch = documenttouch.createtouch(view, target, identifier, pagex, pagey, screenx, screeny); para
meters note: all para
meters are optional.
... note: previous versions of this method included the following additional para
meters but those para
meters are not included in either of the standards listed below.
... consequently, these para
meters should be considered deprecated and not used.
... return value touch a touch object configured as described by the input para
meters.
EventTarget.removeEventListener() - Web APIs
the event listener to be removed is identified using a combination of the event type, the event listener function itself, and various optional options that may affect the matching process; see matching event listeners for removal syntax target.removeeventlistener(type, listener[, options]); target.removeeventlistener(type, listener[, usecapture]); para
meters type a string which specifies the type of event for which to remove an event listener.
...if this para
meter is absent, a default value of false is assumed.
...obviously, you need to specify the same type and listener para
meters to removeeventlistener().
... but what about the options or usecapture para
meters?
FileSystemDirectoryReader.readEntries() - Web APIs
syntax readentries(successcallback[, errorcallback]); para
meters successcallback a function which is called when the directory's contents have been retrieved.
... the function receives a single input para
meter: an array of file system entry objects, each based on filesystementry.
...it receives one input para
meter: a fileerror object describing the error which occurred.
...this function takes as input a filesystementry representing an entry in the file system to be scanned and processed (the item para
meter), and an element into which to insert the list of contents (the container para
meter).
FileSystemEntry.copyTo() - Web APIs
syntax filesystementry.copyto(newparent[, newname][, successcallback][, errorcallback]); para
meters newparent a filesystemdirectoryentry object specifying the destination directory for the copy operation.
... newname optional if this para
meter is provided, the copy is given this string as its new file or directory name.
...receives a single input para
meter: a filesystementry based object providing the copied item's new details.
...there's a single para
meter: a fileerror describing what went wrong.
FileSystemEntry.moveTo() - Web APIs
syntax filesystementry.moveto(newparent[, newname][, successcallback][, errorcallback]); para
meters newparent a filesystemdirectoryentry object specifying the destination directory for the move operation.
... newname optional if this para
meter is provided, the entry is renamed to have this string as its new file or directory name.
...receives a single input para
meter: a filesystementry based object providing the moved item's new details.
...there's a single para
meter: a fileerror describing what went wrong.
GeolocationCoordinates - Web APIs
geolocationcoordinates.altitude read only secure context returns a double representing the position's altitude in
meters, relative to sea level.
... geolocationcoordinates.accuracy read only secure context returns a double representing the accuracy of the latitude and longitude properties, expressed in
meters.
... geolocationcoordinates.altitudeaccuracy read only secure context returns a double representing the accuracy of the altitude expressed in
meters.
... geolocationcoordinates.speed read only secure context returns a double representing the velocity of the device in
meters per second.
HTMLParamElement - Web APIs
the htmlparamelement interface provides special properties (beyond those of the regular htmlelement object interface it inherits) for manipulating <param> elements, representing a pair of a key and a value that acts as a para
meter for an <object> element.
... htmlparamelement.name is a domstring representing the name of the para
meter.
... htmlparamelement.value is a domstring representing the value associated to the para
meter.
... htmlparamelement.type is a domstring containing the type of the para
meter when valuetype has the "ref" value.
History.pushState() - Web APIs
syntax history.pushstate(state, title[, url]) para
meters state the state object is a javascript object which is associated with the new history entry created by pushstate().
... title most browsers currently ignore this para
meter, although they may use it in the future.
... url optional the new history entry's url is given by this para
meter.
...if this para
meter isn't specified, it's set to the document's current url.
IDBDatabase.createObjectStore() - Web APIs
the method takes the name of the store as well as a para
meter object that lets you define important optional properties.
... syntax idbdatabase.createobjectstore(name); idbdatabase.createobjectstore(name, options); para
meters name the name of the new object store to be created.
... optionalpara
meters optional an options object whose attributes are optional para
meters to the method.
... unknown para
meters are ignored.
IDBDatabase.transaction() - Web APIs
syntax idbdatabase.transaction(storenames); idbdatabase.transaction(storenames, mode); para
meters "durability" -- the durability constrints for the transction.
...if you don't provide the para
meter, the default access mode is readonly.
... notfounderror an object store specified in in the storenames para
meter has been deleted or removed.
... typeerror the value for the mode para
meter is invalid.
Using the Media Capabilities API - Web APIs
these features include: the ability to query the browser to determine its ability to encode or decode media given a specified set of encoding para
meters.
... these para
meters may include the codecs, resolutions, bit rates, frame rates, and other such details.
...you can, therefore, test for the presence of the api like so: if ("mediacapabilities" in navigator) { // mediacapabilities is available } else { // mediacapabilities is not available } taking video as an example, to obtain information about video decoding abilities, you create a video decoding configuration which you pass as a para
meter to mediacapabilities.decodinginfo() method.
... creating a video decoding configuration the mediacapabilities.decodinginfo() method takes as a para
meter a media decoding configuration.
RTCInboundRtpStreamStats.qpSum - Web APIs
the qpsum property of the rtcinboundrtpstreamstats dictionary is a value generated by adding the quantization para
meter (qp) values for every frame sent or received to date on the video track corresponding to this rtcinboundrtpstreamstats object.
... syntax var qpsum = rtcinboundrtpstreamstats.qpsum; value an unsigned 64-bit integer value which indicates the sum of the quantization para
meter (qp) value for every frame sent or received so far on the track described by the rtcinboundrtpstreamstats object.
...the quantization process and the amount of compression can be controlled using one or more para
meters.
...additionally, qp is not likely to be the only para
meter the codec uses to adjust the compression.
RTCOutboundRtpStreamStats.qpSum - Web APIs
the qpsum property of the rtcoutboundrtpstreamstats dictionary is a value generated by adding the quantization para
meter (qp) values for every frame this sender has produced to date on the video track corresponding to this rtcoutboundrtpstreamstats object.
... syntax var qpsum = rtcoutboundrtpstreamstats.qpsum; value an unsigned 64-bit integer value which indicates the sum of the quantization para
meter (qp) value for every frame sent so far on the track described by the rtcoutboundrtpstreamstats object.
...the quantization process and the amount of compression can be controlled using one or more para
meters.
...additionally, qp is not likely to be the only para
meter the codec uses to adjust the compression.
RTCRtpCodecCapability - Web APIs
the iana maintains a list of codecs and their para
meters, including their clock rates.
... sdpfmtpline optional a domstring giving the format specific para
meters field from the a=fmtp line in the sdp which corresponds to the codec, if such a line exists.
... if there is no para
meters field, this property is left out.
... description rtcrtpcodeccapabilities describes the basic para
meters for a single codec supported by the user's device.
RTCRtpStreamStats.qpSum - Web APIs
the qpsum property of the rtcrtpstreamstats dictionary is a value generated by adding the quantization para
meter (qp) values for every frame sent or received to date on the video track corresponding to this rtcrtpstreamstats object.
... syntax var qpsum = rtcrtpstreamstats.qpsum; value an unsigned 64-bit integer value which indicates the sum of the quantization para
meter (qp) value for every frame sent or received so far on the track described by the rtcrtpstreamstats object.
...the quantization process and the amount of compression can be controlled using one or more para
meters.
...additionally, qp is not likely to be the only para
meter the codec uses to adjust the compression.
Using Service Workers - Web APIs
resolve(request.response); } else { reject(error('image didn\'t load successfully; error code:' + request.statustext)); } }; request.onerror = () => { reject(error('there was a network error.')); }; request.send(); }); } we return a new promise using the promise() constructor, which takes as an argument a callback function with resolve and reject para
meters.
... next, we use the serviceworkercontainer.register() function to register the service worker for this site, which is just a javascript file residing inside our app (note this is the file's url relative to the origin, not the js file that references it.) the scope para
meter is optional, and can be used to specify the subset of your content that you want the service worker to control.
...this returns a promise for a created cache; once resolved, we then call a function that calls addall() on the created cache, which for its para
meter takes an array of origin-relative urls to all the resources you want to cache.
...urce, to get the new resource from the network if it is available: fetch(event.request); if a match wasn’t found in the cache, and the network isn’t available, you could just match the request with some kind of default fallback page as a response using match(), like this: caches.match('./fallback.html'); you can retrieve a lot of information about each request by calling para
meters of the request object returned by the fetchevent: event.request.url event.request.method event.request.headers event.request.body recovering failed requests so caches.match(event.request) is great when there is a match in the service worker cache, but what about cases when there isn’t a match?
SubtleCrypto.decrypt() - Web APIs
it takes as arguments a key to decrypt with, some optional extra para
meters, and the data to decrypt (also known as "ciphertext").
... syntax const result = crypto.subtle.decrypt(algorithm, key, data); para
meters algorithm is an object specifying the algorithm to be used, and any extra para
meters as required.
... the values given for the extra para
meters must match those passed into the corresponding encrypt() call.
...algorithm para
meters of invalid sizes, or there was an error decrypting the ciphertext).
URLSearchParams.get() - Web APIs
the get() method of the urlsearchparams interface returns the first value associated to the given search para
meter.
... syntax urlsearchparams.get(name) para
meters name the name of the para
meter to return.
... return value a usvstring if the given search para
meter is found; otherwise, null.
... examples if the url of your page is https://example.com/?name=jonathan&age=18 you could parse out the 'name' and 'age' para
meters using: let params = new urlsearchparams(document.location.search.substring(1)); let name = params.get("name"); // is the string "jonathan" let age = parseint(params.get("age"), 10); // is the number 18 requesting a para
meter that isn't present in the query string will return null: let address = params.get("address"); // null specifications specification status comment urlthe definition of 'get()' in that specification.
WebGLRenderingContext.getActiveUniform() - Web APIs
syntax webglactiveinfo webglrenderingcontext.getactiveuniform(program, index); para
meters program a webglprogram specifying the webgl shader program from which to obtain the uniform variable's information.
...this value is an index 0 to n - 1 as returned by gl.getprogrampara
meter(program, gl.active_uniforms).
... gl.invalid_value is generated if index is not in the range [0, gl.getprogrampara
meter(program, gl.active_uniforms) - 1].
... examples const numuniforms = gl.getprogrampara
meter(program, gl.active_uniforms); for (let i = 0; i < numuniforms; ++i) { const info = gl.getactiveuniform(program, i); console.log('name:', info.name, 'type:', info.type, 'size:', info.size); } specifications specification status comment webgl 1.0the definition of 'getactiveuniform' in that specification.
WebGLRenderingContext.vertexAttribPointer() - Web APIs
syntax void gl.vertexattribpointer(index, size, type, normalized, stride, offset); para
meters index a gluint specifying the index of the vertex attribute that is to be modified.
... for types gl.float and gl.half_float, this para
meter has no effect.
... the maximum number of vertex attributes depends on the graphics card, and you can call gl.getpara
meter(gl.max_vertex_attribs) to get this value.
... querying current settings you can call gl.getvertexattrib() and gl.getvertexattriboffset() to get the current para
meters for an attribute, e.g.
Adding 2D content to a WebGL context - Web APIs
loadshader(gl, gl.vertex_shader, vssource); const fragmentshader = loadshader(gl, gl.fragment_shader, fssource); // create the shader program const shaderprogram = gl.createprogram(); gl.attachshader(shaderprogram, vertexshader); gl.attachshader(shaderprogram, fragmentshader); gl.linkprogram(shaderprogram); // if creating the shader program failed, alert if (!gl.getprogrampara
meter(shaderprogram, gl.link_status)) { alert('unable to initialize the shader program: ' + gl.getprograminfolog(shaderprogram)); return null; } return shaderprogram; } // // creates a shader of the given type, uploads the source and // compiles it.
... // function loadshader(gl, type, source) { const shader = gl.createshader(type); // send the source to the shader object gl.shadersource(shader, source); // compile the shader program gl.compileshader(shader); // see if it compiled successfully if (!gl.getshaderpara
meter(shader, gl.compile_status)) { alert('an error occurred compiling the shaders: ' + gl.getshaderinfolog(shader)); gl.deleteshader(shader); return null; } return shader; } the loadshader() function takes as input the webgl context, the shader type, and the source code, then creates and compiles the shader as follows: a new shader is created by calling gl.createshader().
... to check to be sure the shader successfully compiled, the shader para
meter gl.compile_status is checked.
... to get its value, we call gl.getshaderpara
meter(), specifying the shader and the name of the para
meter we want to check (gl.compile_status).
Using the Web Audio API - Web APIs
you can specify a range's values and use them directly with the audio node's para
meters.
...gainnode.gain) are not simple values; they are actually objects of type audioparam — these called para
meters.
...this enables them to be much more flexible, allowing for passing the para
meter a specific set of values to change between over a set period of time, for example.
...again let's use a range type input to vary this para
meter: <input type="range" id="panner" min="-1" max="1" value="0" step="0.01"> we use the values from that input to adjust our panner values in the same way as we did before: const pannercontrol = document.queryselector('#panner'); pannercontrol.addeventlistener('input', function() { panner.pan.value = this.value; }, false); let's adjust our audio graph again, to connect all the nodes togeth...
Web audio spatialization basics - Web APIs
let's create constants that store the values we'll use for these para
meters later on: const innercone = 60; const outercone = 90; const outergain = 0.3; the next para
meter is distancemodel — this can only be set to linear, inverse, or exponential.
...these are also the para
meters we're going to change when the controls on our interface are used.
... let's use the relevant constructor for creating our panner node and pass in all those para
meters we set above: const panner = new pannernode(audioctx, { panningmodel: pannermodel, distancemodel: distancemodel, positionx: positionx, positiony: positiony, positionz: positionz, orientationx: orientationx, orientationy: orientationy, orientationz: orientationz, refdistance: refdistance, maxdistance: maxdistance, rollofffactor: rolloff, coneinnerangle: in...
...ector('.boombox-body'); // the values for our css transforms let transform = { xaxis: 0, yaxis: 0, zaxis: 0.8, rotatex: 0, rotatey: 0 } // set our bounds const topbound = -posy; const bottombound = posy; const rightbound = posx; const leftbound = -posx; const innerbound = 0.1; const outerbound = 1.5; let's create a function that takes the direction we want to move as a para
meter, and both modifies the css transform and updates the position and orientation values of our panner node properties to change the sound as appropriate.
Window.requestFileSystem() - Web APIs
window.requestfilesystem(type, size, successcallback[, errorcallback]); para
meters type the type of storage to request.
...the callback receives a single para
meter: a filesystem object representing the file system the app has permission to use.
... errorcallback optional an optional para
meter specifying a function which is called if an error occurs while attempting to obtain the file system, or if the user denies permission to create or access the file system.
... the callback receives as input a single para
meter: a fileerror object describing the error.
Synchronous and asynchronous requests - Web APIs
var xhr = new xmlhttprequest(); xhr.open("get", "/bar/foo.txt", true); xhr.onload = function (e) { if (xhr.readystate === 4) { if (xhr.status === 200) { console.log(xhr.responsetext); } else { console.error(xhr.statustext); } } }; xhr.onerror = function (e) { console.error(xhr.statustext); }; xhr.send(null); line 2 specifies true for its third para
meter to indicate that the request should be handled asynchronously.
... line 15 specifies true for its third para
meter to indicate that the request should be handled asynchronously.
...the null para
meter indicates that no body content is needed for the get request.
... window.addeventlistener('unload', logdata, false); function logdata() { var client = new xmlhttprequest(); client.open("post", "/log", false); // third para
meter indicates sync xhr.
XRRigidTransform.position - Web APIs
the read-only xrrigidtransform property position is a dompointreadonly object which provides the 3d point, specified in
meters, describing the translation component of the transform.
...the units are
meters.
... example to create a reference space which can be used to place an object at eye level (assuming eye level is 1.5
meters): function onsessionstarted(xrsession) { xrsession.addeventlistener("end", onsessionended); gl = initgraphics(xrsession); let gllayer = new xrwebgllayer(xrsession, gl); xrsession.updaterenderstate({ baselayer: gllayer }); if (immersivesession) { xrsession.requestreferencespace("bounded-floor").then((refspace) => { refspacecreated(refspace); }).catch(() => { session.requestreferencespace("local-floor").then(refspacecreated); }); } else { session.requestreferencespace("viewer").then(refspacecreated); } } function refspacecreated(refspace) { if (immersivesession) { xrrefer...
...however, for inline sesions, we know we're in a space not automatically adjusted for floor level, so we request an offset reference space to shift the viewer's height to 1.5
meters above the presumed floor level of 0
meters.
filter - CSS: Cascading Style Sheets
if the para
meter for any function is invalid, the function returns none.
...the para
meter is specified as a css length, but does not accept percentage values.
...the function accepts a para
meter of type <shadow> (defined in css3 backgrounds), with the exception that the inset keyword is not allowed.
...the para
meters of the <shadow> para
meter are as follows: <offset-x> <offset-y> (required) these are two <length> values to set the shadow offset.
Cross-browser audio basics - Developer guides
it takes no para
meters.
...it takes no para
meters.
...it takes the mime type of the type to check as a para
meter.
...this is useful in many ways, for example since play() does not take a para
meter we need to set the point to play from separately if we don't want it to be 0.
Content categories - Developer guides
ss>, <article>, <aside>, <audio>, <b>,<bdo>, <bdi>, <blockquote>, <br>, <button>, <canvas>, <cite>, <code>, <command>, <data>, <datalist>, <del>, <details>, <dfn>, <div>, <dl>, <em>, <embed>, <fieldset>, <figure>, <footer>, <form>, <h1>, <h2>, <h3>, <h4>, <h5>, <h6>, <header>, <hgroup>, <hr>, <i>, <iframe>, <img>, <input>, <ins>, <kbd>, <keygen>, <label>, <main>, <map>, <mark>, <math>, <menu>, <
meter>, <nav>, <noscript>, <object>, <ol>, <output>, <p>, <picture>, <pre>, <progress>, <q>, <ruby>, <s>, <samp>, <script>, <section>, <select>, <small>, <span>, <strong>, <sub>, <sup>, <svg>, <table>, <template>, <textarea>, <time>, <ul>, <var>, <video>, <wbr> and text.
... elements belonging to this category are <abbr>, <audio>, <b>, <bdo>, <br>, <button>, <canvas>, <cite>, <code>, <command>, <data>, <datalist>, <dfn>, <em>, <embed>, <i>, <iframe>, <img>, <input>, <kbd>, <keygen>, <label>, <mark>, <math>, <
meter>, <noscript>, <object>, <output>, <picture>, <progress>, <q>, <ruby>, <samp>, <script>, <select>, <small>, <span>, <strong>, <sub>, <sup>, <svg>, <textarea>, <time>, <var>, <video>, <wbr> and plain text (not only consisting of white spaces characters).
... <button> <fieldset> <input> <keygen> <label> <
meter> <object> <output> <progress> <select> <textarea> this category contains several sub-categories: listed elements that are listed in the form.elements and fieldset.elements idl collections.
...contains <button>, <input>, <keygen>, <
meter>, <output>, <progress>, <select>, and <textarea>.
Applying color to HTML elements using CSS - HTML: Hypertext Markup Language
among the options for the shadow is the shadow's base color (which is then blurred and blended with the background based on the other para
meters).
...this function accepts as its input para
meters the values of the red, green, and blue components and an optional fourth para
meter, the value for the alpha channel.
... legal values for each of these para
meters are: red, green, and blue each must be an <integer> value between 0 and 255 (inclusive), or a <percentage> from 0% to 100%.
...its color para
meter is set to black.
Standard metadata names - HTML: Hypertext Markup Language
origin-when-cross-origin send the full url (stripped of para
meters) for same-origin requests, but only send the origin for other cases.
... same-origin send the full url (stripped of para
meters) for same-origin requests.
... strict-origin-when-cross-origin send the full url (stripped of para
meters) for same-origin requests.
... unsafe-url send the full url (stripped of para
meters) for same-origin or cross-origin requests.
Identifying resources on the Web - HTTP
query ?key1=value1&key2=value2 are extra para
meters provided to the web server.
... those para
meters are a list of key/value pairs separated with the & symbol.
... the web server can use those para
meters to do extra stuff before returning the resource to the user.
... each web server has its own rules regarding para
meters, and the only reliable way to know how a specific web server is handling para
meters is by asking the web server owner.
MIME types (IANA media types) - HTTP
an optional para
meter can be added to provide additional details: type/subtype;para
meter=value for example, for any mime type whose main type is text, the optional charset para
meter can be used to specify the character set used for the characters in the data.
... mime types are case-insensitive but are traditionally written in lowercase, with the exception of para
meter values, whose case may or may not have specific meaning.
... some content you find may have a charset para
meter at the end of the text/javascript media type, to specify the character set used to represent the code's content.
...the optional codecs para
meter can be added to the mime type to further specify which codecs to use and what options were used to encode the media, such as codec profile, level, or other such information.
Array.prototype.forEach() - JavaScript
syntax arr.foreach(callback(currentvalue [, index [, array]])[, thisarg]) para
meters callback function to execute on each element.
...(for sparse arrays, see example below.) callback is invoked with three arguments: the value of the element the index of the element the array object being traversed if a thisarg para
meter is provided to foreach(), it will be used as callback's this value.
...g thisarg the following (contrived) example updates an object's properties from each entry in the array: function counter() { this.sum = 0 this.count = 0 } counter.prototype.add = function(array) { array.foreach((entry) => { this.sum += entry ++this.count }, this) // ^---- note } const obj = new counter() obj.add([2, 5, 9]) obj.count // 3 obj.sum // 16 since the thisarg para
meter (this) is provided to foreach(), it is passed to callback each time it's invoked.
... note: if passing the callback function uses an arrow function expression, the thisarg para
meter can be omitted, since all arrow functions lexically bind the this value.
Array.prototype.map() - JavaScript
syntax let new_array = arr.map(function callback( currentvalue[, index[, array]]) { // return element for new_array }[, thisarg]) para
meters callback function that is called for every element of arr.
... para
meters in detail callback is invoked with three arguments: the value of the element, the index of the element, and the array object being mapped.
... if a thisarg para
meter is provided, it will be used as callback's this value.
...2', '3'].map(number) // [1, 2, 3] // but unlike parseint(), number() will also return a float or (resolved) exponential notation: ['1.1', '2.2e2', '3e300'].map(number) // [1.1, 220, 3e+300] // for comparison, if we use parseint() on the array above: ['1.1', '2.2e2', '3e300'].map( str => parseint(str) ) // [1, 2, 3] one alternative output of the map method being called with parseint as a para
meter runs as follows: let xs = ['10', '10', '10'] xs = xs.map(parseint) console.log(xs) // actual result of 10,nan,2 may be unexpected based on the above description.
Date.prototype.setFullYear() - JavaScript
syntax dateobj.setfullyear(yearvalue[, monthvalue[, datevalue]]) para
meters yearvalue an integer specifying the numeric value of the year, for example, 1995.
...if you specify the datevalue para
meter, you must also specify the monthvalue.
... description if you do not specify the monthvalue and datevalue para
meters, the values returned from the getmonth() and getdate() methods are used.
... if a para
meter you specify is outside of the expected range, setfullyear() attempts to update the other para
meters and the date information in the date object accordingly.
Date.prototype.setMonth() - JavaScript
syntax dateobj.setmonth(monthvalue[, dayvalue]) versions prior to javascript 1.3 dateobj.setmonth(monthvalue) para
meters monthvalue a zero-based integer representing the month of the year offset from the start of the year.
... description if you do not specify the dayvalue para
meter, the value returned from the getdate() method is used.
... if a para
meter you specify is outside of the expected range, setmonth() attempts to update the date information in the date object accordingly.
...conceptually it will add the number of days given by the current day of the month to the 1st day of the new month specified as the para
meter, to return the new date.
Date.prototype.setUTCFullYear() - JavaScript
syntax dateobj.setutcfullyear(yearvalue[, monthvalue[, dayvalue]]) para
meters yearvalue an integer specifying the numeric value of the year, for example, 1995.
...if you specify the dayvalue para
meter, you must also specify the monthvalue.
... description if you do not specify the monthvalue and dayvalue para
meters, the values returned from the getutcmonth() and getutcdate() methods are used.
... if a para
meter you specify is outside of the expected range, setutcfullyear() attempts to update the other para
meters and the date information in the date object accordingly.
Function.length - JavaScript
the length property indicates the number of para
meters expected by the function.
...the number of formal para
meters.
... this number excludes the rest para
meter and only includes para
meters before the first one with a default value.
...*/ console.log((function(...args) {}).length); // 0, rest para
meter is not counted console.log((function(a, b = 1, c) {}).length); // 1, only para
meters before the first one with // a default value is counted specifications specification ecmascript (ecma-262)the definition of 'function.length' in that specification.
Math.min() - JavaScript
the static function math.min() returns the lowest-valued number passed into it, or nan if any para
meter isn't a number and can't be converted into one.
... syntax math.min([value1[, value2[, ...]]]) para
meters value1, value2, ...
...if any one or more of the para
meters cannot be converted into a number, nan is returned.
... the result is infinity if no para
meters are provided.
RegExp - JavaScript
the literal notation's para
meters are enclosed between slashes and do not use quotation marks.
... the constructor function's para
meters are not enclosed between slashes but do use quotation marks.
... regexp.prototype.exec() executes a search for a match in its string para
meter.
... regexp.prototype.test() tests for a match in its string para
meter.
WebAssembly.instantiate() - JavaScript
syntax primary overload — taking wasm binary code promise<resultobject> webassembly.instantiate(buffersource, importobject); para
meters buffersource a typed array or arraybuffer containing the binary code of the .wasm module you want to compile.
... exceptions if either of the para
meters are not of the correct type or structure, a typeerror is thrown.
... secondary overload — taking a module object instance promise<webassembly.instance> webassembly.instantiate(module, importobject); para
meters module the webassembly.module object to be instantiated.
... exceptions if either of the para
meters are not of the correct type or structure, a typeerror is thrown.
Comma operator (,) - JavaScript
this is commonly used to provide multiple para
meters to a for loop.
... para
meters expr1, expr2, expr3...
...the most common usage of this operator is to supply multiple para
meters in a for loop.
... the comma operator is fully different from the comma within arrays, objects, and function arguments and para
meters.
Destructuring assignment - JavaScript
const {a: aa = 10, b: bb = 5} = {a: 3}; console.log(aa); // 3 console.log(bb); // 5 unpacking fields from objects passed as function para
meter const user = { id: 42, displayname: 'jdoe', fullname: { firstname: 'john', lastname: 'doe' } }; function userid({id}) { return id; } function whois({displayname, fullname: {firstname: name}}) { return `${displayname} is ${name}`; } console.log(userid(user)); // 42 console.log(whois(user)); // "jdoe is john" this unpacks the id, displayname and firstname from the user obj...
... setting a function para
meter's default value function drawchart({size = 'big', coords = {x: 0, y: 0}, radius = 25} = {}) { console.log(size, coords, radius); // do some chart drawing } drawchart({ coords: {x: 18, y: 30}, radius: 30 }); in the function signature for drawchart above, the destructured left-hand side is assigned to an empty object literal on the right-hand side: {size = 'big', coords = {x: 0, y: 0}, radius = 25} = {}.
...however, if you leave out the right-hand side assignment, the function will look for at least one argument to be supplied when invoked, whereas in its current form, you can simply call drawchart() without supplying any para
meters.
... the current design is useful if you want to be able to call the function without supplying any para
meters, the other can be useful when you want to ensure an object is passed to the function.
Object initializer - JavaScript
syntax let o = {} let o = {a: 'foo', b: 42, c: {}} let a = 'foo', b = 42, c = {} let o = {a: a, b: b, c: c} let o = { property: function (para
meters) {}, get property() {}, set property(value) {} }; new notations in ecmascript 2015 please see the compatibility table for support for these notations.
... // shorthand property names (es2015) let a = 'foo', b = 42, c = {}; let o = {a, b, c} // shorthand method names (es2015) let o = { property(para
meters) {} } // computed property names (es2015) let prop = 'foo' let o = { [prop]: 'hey', ['b' + 'ar']: 'there' } description an object initializer is an expression that describes the initialization of an object.
... let o = { property: function (para
meters) {}, get property() {}, set property(value) {} } in ecmascript 2015, a shorthand notation is available, so that the keyword "function" is no longer necessary.
... // shorthand method names (es2015) let o = { property(para
meters) {}, } in ecmascript 2015, there is a way to concisely define properties whose values are generator functions: let o = { *generator() { ...........
Spread syntax (...) - JavaScript
syntax for function calls: myfunction(...iterableobj); for array literals or strings: [...iterableobj, '4', 'five', 6]; for object literals (new in ecmascript 2018): let objclone = { ...obj }; rest syntax (para
meters) rest syntax looks exactly like spread syntax.
...see rest para
meters.
...however, an array can be easily used with new thanks to spread syntax: const datefields = [1970, 0, 1]; // 1 jan 1970 const d = new date(...datefields); to use new with an array of para
meters without spread syntax, you would have to do it indirectly through partial application: function applyandnew(constructor, args) { function partial () { return constructor.apply(this, args); }; if (typeof constructor.prototype === "object") { partial.prototype = object.create(constructor.prototype); } return partial; } function myconstructor () { console.log("argum...
...cts ) => ( { ...objects } ); let mergedobj1 = merge (obj1, obj2); // object { 0: { foo: 'bar', x: 42 }, 1: { foo: 'baz', y: 13 } } let mergedobj2 = merge ({}, obj1, obj2); // object { 0: {}, 1: { foo: 'bar', x: 42 }, 2: { foo: 'baz', y: 13 } } in the above example, the spread syntax does not work as one might expect: it spreads an array of arguments into the object literal, due to the rest para
meter.
begin - SVG: Scalable Vector Graphics
a valid repeat value consists of an element id followed by a dot and the function repeat() with an integer value specifying the number of repetitions as para
meter.
... a valid accesskey-value consists of the function accesskey() with the character to be input as para
meter.
... a valid wallclock-sync-value consists of the function wallclock() with a time value as para
meter.
...the behavior is the same as if node.removechild() were called on the parent of the target element with the target element as para
meter.
<xsl:param> - XSLT: Extensible Stylesheet Language Transformations
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the <xsl:param> element establishes a para
meter by name and, optionally, a default value for that para
meter.
... when used as a top-level element, the para
meter is global .
... when used inside an <xsl:template> element, the para
meter is local to that template.
... syntax <xsl:param name=name select=expression> template </xsl:param> required attributes name names the para
meter.
JavaScript/XSLT Bindings - XSLT: Extensible Stylesheet Language Transformations
the first para
meter references the dom node to clone.
... by making the second para
meter "true", it will clone all descendants as well (a deep clone).
...both take in the xml document as the first para
meter that will be transformed.
... xsltprocessor.transformtofragment() requires a second para
meter, namely the document object that will own the generated fragment.
port - Archive of obsolete content
it may be called with any number of para
meters, but is most likely to be called with a name for the message and an optional payload.
... it takes two para
meters: the name of the message and a function to handle it.
...this takes the same two para
meters as port.on(): the name of the message, and the name of the listener function.
self - Archive of obsolete content
postmessage() send a message from a content script to a listener in the main add-on code: self.postmessage(contentscriptmessage); this takes a single para
meter, the message payload, which may be any json-serializable value.
... on() start listening to messages from the main add-on code: self.on("message", function(addonmessage) { // handle the message }); this takes two para
meters: the name of the event, and the handler function.
...this takes two para
meters: the name of the event to stop listening to, and the listener function to remove.
Communicating using "port" - Archive of obsolete content
it may be called with any number of para
meters, but is most likely to be called with a name for the message and an optional payload.
... it takes two para
meters: the name of the message and a function to handle it.
...this takes the same two para
meters as port.on(): the name of the message, and the name of the listener function.
simple-prefs - Archive of obsolete content
the event listener may take an optional para
meter that specifies the name of the property which changed.
... example: function onprefchange(prefname) { console.log("the preference " + prefname + " value has changed!"); } require("sdk/simple-prefs").on("somepreference", onprefchange); require("sdk/simple-prefs").on("someotherpreference", onprefchange); // `""` listens to all changes in the extension's branch require("sdk/simple-prefs").on("", onprefchange); para
meters prefname : string the name of the preference to watch for changes.
... para
meters prefname : string the name of the preference to watch for changes.
tabs - Archive of obsolete content
} }); para
meters options : object required options: name type url string string url to be opened in the new tab.
... para
meters callback : function a function to be called when the tab finishes its closing process.
... example var tabs = require("sdk/tabs"); tabs.on('ready', function(tab) { var worker = tab.attach({ contentscript: 'document.body.style.border = "5px solid red";' }); }); para
meters options : object optional options: name type contentscriptfile string,array the local file urls of content scripts to load.
event/target - Archive of obsolete content
worker.on('message', function (data) { console.log('data received: ' + data) }); para
meters type : string the type of event.
... para
meters type : string the type of event.
... para
meters type : string the type of event.
frame/hidden-frame - Archive of obsolete content
para
meters options : object required options: name type onready function,array functions to call when the frame is ready to load content.
... para
meters hiddenframe : hiddenframe the frame to add remove(hiddenframe) unregister a hidden frame, unloading any content that was loaded in it.
... para
meters hiddenframe : hiddenframe the frame to remove hiddenframe hiddenframe objects represent hidden frames.
loader/sandbox - Archive of obsolete content
para
meters source : string|window|null an object that determines the privileges that will be given to the sandbox.
... para
meters sandbox : sandbox the sandbox to use.
... para
meters sandbox : sandbox the sandbox to use.
remote/parent - Archive of obsolete content
if you use a relative path, you must use the module para
meter.
... para
meters id : string the module to load.
... to use a relative path you must pass the module para
meter.
stylesheet/utils - Archive of obsolete content
para
meters window : nsidomwindow uri : string, nsiuri} type : string the type of the sheet.
... para
meters window : nsidomwindow uri : string, nsiuri} type : string the type of the sheet.
... para
meters type : string the type of the sheet.
test/utils - Archive of obsolete content
para
meters exports : object a test file's exports object beforefn : function the function to be called before each test.
... para
meters exports : object a test file's exports object afterfn : function the function to be called after each test.
... para
meters predicate : function a function that gets called every interval milliseconds to determine if the promise should be resolved.
Install Manifests - Archive of obsolete content
note: as of gecko 2.0, the dialog receives the addon object representing your add-on as a para
meter.
...if any value matches the application's build para
meters, it will be installed; if not, the user will get an appropriate error message.
...every time you upload a new version of your add-on or change its compatibility para
meters through the author interface, your update manifest will be generated automatically.
Chapter 5: Let's build a Firefox extension - Archive of obsolete content
clear: function(event) { event.preventbubble(); var fileenum = this._dir.directoryentries; while (fileenum.hasmoreelements()) { var file = fileenum.getnext().queryinterface(components.interfaces.nsifile); file.remove(false); // debug dump("sessionstore> clear: " + file.leafname + "\n"); } }, _readfile method reads the nslfile object passed as a para
meter, and returns its contents as a text string.
...ents.interfaces.nsiconverterinputstream.default_replacement_character); var content = ""; var data = {}; while (cvstream.readstring(4096, data)) { content += data.value; } cvstream.close(); return content.replace(/\r\n?/g, "\n"); } catch (ex) { } return null; }, _writefile method creates a new file for the nslfile object passed as a para
meter, and writes the text string, also passed as a para
meter.
... setwindowstate(awindow, astate, aoverwrite) restores the browser window indicated by the para
meter awindow to the state indicated by astate.
Adding windows and dialogs - Archive of obsolete content
it allows you to send a set of optional para
meters that can be used to communicate with the dialog.
... let somevalue = 2; let returnvalue = { accepted : false , result : "" }; window.opendialog( "chrome://xulschoolhello/content/somedialog.xul", "xulschoolhello-some-dialog", "chrome,centerscreen", somevalue, returnvalue); // you can send as many extra para
meters as you need.
... // if (returnvalue.accepted) { do stuff } the optional para
meters are available in the dialog code through the window.arguments property: let somevalue = window.arguments[0]; let returnvalue = window.arguments[1]; // returnvalue.accepted = true; // returnvalue.result = "something"; the para
meter named returnvalue is an object that the dialog will modify to reflect what the user did in it.
Connecting to Remote Content - Archive of obsolete content
in the onload callback function, the responsetext para
meter contains the server response as text.
... the open method takes two required para
meters: the http request method and the url to send the request.
... request.open("post", url, true); request.setrequestheader("content-type", "application/x-www-form-urlencoded"); request.send("data=hello&version=2"); the third para
meter for the open method specifies whether the request should be handled asynchronously or not.
JavaScript Object Management - Archive of obsolete content
this anyway, one way to do it is to have a timeout execute the code after a delay: init : function(aevent) { let that = this; this._stringbundle = document.getelementbyid("xs-hw-string-bundle"); window.settimeout( function() { window.alert(that._stringbundle.getstring("xulschoolhello.greeting.label")); }, 0); } the settimeout function executes the function in the first para
meter, after a delay in miliseconds specified by the second para
meter.
... notice the way we send callback functions as para
meters, and the use of an alternate reference for this which we always name that.
... the general guideline we follow is this: whenever you have to set a callback function para
meter, wrap it in an anonymous function.
Setting up an extension development environment - Archive of obsolete content
to quickly achieve our task of creating just a developer profile, we will start the application with the para
meters: /path/to/firefox -no-remote -p profilename without these para
meters, the default behavior of your mozilla applications is to only open the everyday user profile: named default.
... the para
meter -p profilename doesn't imply -no-remote, therefore use them together.
... if you are already running a firefox instance without -no-remote, and you attempt to start another instance with -p profilename (but without the -no-remote para
meter), that second invocation would ignore its -p profilename para
meter, instead opening a new window for the already running instance; sharing all its profile, sessions etc.
Drag and Drop JavaScript Wrapper - Archive of obsolete content
each of the functions takes two para
meters, the first is the event object and the second is an observer object that you create.
...the first para
meter is the event object, available in all event handlers.
... the second para
meter to this function is the observer, which we'll create soon.
Monitoring downloads - Archive of obsolete content
var dbconn = this.storageservice.opendatabase(this.dbfile); statement = dbconn.createstatement("replace into items values " + "(?1, ?2, ?3, 0, 0.0, 0)"); statement.bindstringpara
meter(0, adownload.source.spec); statement.bindint64para
meter(1, adownload.size); statement.bindint64para
meter(2, adownload.starttime); statement.execute(); statement.reset(); dbconn.close(); break; // record the completion (whether failed or successful) of the download case components.interfaces.nsidownloadmanager.download_finished: case compo...
... var dbconn = this.storageservice.opendatabase(this.dbfile); var statement = dbconn.createstatement("update items set size=?1, " + "endtime=?2, speed=?3, status=?4 where source=?5 and starttime=?6"); statement.bindint64para
meter(0, adownload.size); statement.bindint64para
meter(1, endtime.gettime()); statement.binddoublepara
meter(2, adownload.speed); statement.bindint32para
meter(3, adownload.state); statement.bindstringpara
meter(4, adownload.source.spec); statement.bindint64para
meter(5, adownload.starttime); statement.execute(); statement.reset(); dbconn.close(); }, this simply o...
...these methods take as a para
meter the zero-based index number of the column whose value you wish to retrieve.
Binding Implementations - Archive of obsolete content
a method with para
meters specifies those para
meters and their names with para
meter elements declared underneath the method element.
...the para
meters specified are bound to their names in the method body.
... <method name="scrolltoindex"> <para
meter name="index"/> <body> <![cdata[ if (index < 0) return; ...
Using XPInstall to Install Plugins - Archive of obsolete content
the initinstall method is polymorphic, but here is a recommended invocation mechanism: initinstall("my plugin software", "@myplugin.com/myplugin,version=2.5", "2.5.0.0"); in the code snippet above, the initinstall method is invoked with three para
meters: a string for the name of the application a string signifying the plugin identifier associated with the plugin.
...you can pass command line para
meters to the executable.
...) has already been called // using the install object's execute method to block on a native installer execute("setup.exe", "-s", true); // in the above sample, assume that running "setup -s" from the // command prompt runs the setup executable, and that "-s" is some // invocation para
meter defined by the setup.exe file, perhaps to force // the installer to run silently.
compareTo - Archive of obsolete content
compareto compares the version information specified in this object to the version information specified in the version para
meter.
... method of installversion object syntax compareto ( installversion version); compareto ( string version); compareto ( int major, int minor, int release, int build); para
meters the compareto method has the following para
meters: maj the major version number.
...if this version object represents a smaller (earlier) version than that represented by the version para
meter, this method returns a negative number.
registerChrome - Archive of obsolete content
method of install object syntax int registerchrome( switch, srcdir, xpipath); para
meters the registerchrome method has the following para
meters: switch switch is the chrome switch indicating what type of file is being registered.
...one final option for the switch para
meter is delayed_chrome, which registers the switch only after a relaunch of the browser.
...description when the third para
meter is omitted (pointing to a specific location within the xpi file), this function is being used in a somewhat deprecated way.
treecell.mode - Archive of obsolete content
« xul reference home mode type: one of the values below for columns that are progress
meters, this determines the type of progress
meter to use.
... none no progress
meter is displayed.
... undetermined the progress
meter is indeterminate.
addTab - Archive of obsolete content
the rest of the para
meters are optional.
... firefox 3.6 note the second form of this method was added in firefox 3.6; it allows you to specify the para
meters by name, in any order.
... it also adds the relatedtocurrent para
meter; firefox uses this to decide whether the new tab should be inserted next to the current tab.
Adding Style Sheets - Archive of obsolete content
<spacer class="titlespace"/> <hbox> <progress
meter id="prog
meter" value="50%" style="display:none;"/> the new xml-stylesheet line is used to import the style sheet.
...one that wasn't was the display property on the progress
meter.
...in this file, we'll add the style declarations, as shown below: #find-text { min-width: 15em; } #prog
meter { margin: 4px; } .springspace { width: 10px; } .titlespace { height: 10px; } notice how these styles are equivalent to the styles we had before.
Focus and Selection - Archive of obsolete content
it takes three para
meters, the event type, a function to execute when the event occurs and a boolean indicating whether to capture or not.
...it takes two para
meters, the first is the starting character and the second is the character after the last one that you want to have selected.
...if you use the same value for both para
meters, the start and end of the selection changes to the same position.
XBL Example - Archive of obsolete content
it will take one para
meter, the page number to set the page to.
... <method name="setpage"> <para
meter name="newidx"/> <body> <![cdata[ var thedeck=document.getanonymousnodes(this)[0].childnodes[0]; var totalpages=this.childnodes.length; if (newidx<0) return 0; if (newidx>=totalpages) return totalpages; thedeck.setattribute("selectedindex",newidx); document.getanonymousnodes(this)[0].childnodes[1].childnodes[1] .setattribute("value",(newidx+1)+" of "+totalpages); return newidx; ]]> </body> </method> this function is called setpage and takes one para
meter newidx.
...des.length; document.getanonymousnodes(this)[0].childnodes[1].childnodes[1] .setattribute("value",(this.page+1)+" of "+totalpages); </constructor> <property name="page" onget="return parseint(document.getanonymousnodes(this)[0].childnodes[0].getattribute('selectedindex'));" onset="return this.setpage(val);"/> <method name="setpage"> <para
meter name="newidx"/> <body> <![cdata[ var thedeck=document.getanonymousnodes(this)[0].childnodes[0]; var totalpages=this.childnodes.length; if (newidx<0) return 0; if (newidx>=totalpages) return totalpages; thedeck.setattribute("selectedindex",newidx); document.getanonymousnodes(this)[0].childnodes[1].childnodes[1] ...
Using the Editor from XUL - Archive of obsolete content
it does some getting of window.arguments (which is a way callers can pass para
meters to new windows -- we use this to get the url to be loaded), then it calls editorstartup(), where the real work happens.
... it passes two para
meters; the first indicates whether we want a plain text or html editor (pass text or html here), and the second is the <iframe> element on which we wish to create the editor.
...this para
meter is more important when the editor is in a text widget, where it points to the the subtree of the parent document that corresponds to widget content.
XUL controls - Archive of obsolete content
menulist reference related elements: menupopup menuitem <progress
meter> a progress
meter is used to display the progress of a lengthy task.
... <progress
meter value="40"/> more information about the progress
meter element.
... progress
meter reference <radio> a radio button is used when only one of a set of options may be selected at a time.
promptBox - Archive of obsolete content
nsidomelement appendprompt( args, onclosecallback ); para
meters args arguments for the prompt.
...void removeprompt( nsidomelement aprompt ); para
meters aprompt the prompt to dispose of.
...nodelist listprompts( nsidomelement aprompt ); para
meters aprompt this para
meter isn't used; i don't know why it's even there.
treecell - Archive of obsolete content
mode type: one of the values below for columns that are progress
meters, this determines the type of progress
meter to use.
... none no progress
meter is displayed.
... undetermined the progress
meter is indeterminate.
nsIContentPolicy - Archive of obsolete content
mozilla callers will handle this like reject_request; third-party implementors may, for example, use this to direct their own callers to consult the extra para
meter for additional details.
... short shouldload( in unsigned long acontenttype, in nsiuri acontentlocation, in nsiuri arequestorigin, in nsisupports acontext, in acstring amimetypeguess, in nsisupports aextra, in nsiprincipal arequestprincipal ); para
meters acontenttype the type of content being tested.
... short shouldprocess( in unsigned long acontenttype, in nsiuri acontentlocation, in nsiuri arequestorigin, in nsisupports acontext, in acstring amimetype, in nsisupports aextra, in nsiprincipal arequestprincipal ); para
meters acontenttype the type of content being tested.
NPN_GetValueForURL - Archive of obsolete content
syntax #include <npapi.h> typedef enum { npnurlvcookie = 501, npnurlvproxy } npnurlvariable; nperror npn_getvalueforurl(npp instance, npnurlvariable variable, const char *url, char **value, uint32_t *len); para
meters this function has the following para
meters: instance pointer to the current plug-in instance.
... value out para
meter.
... when multiple cookies are returned for a given url, the format of the return value is: cookie1=value1;cookie2=value2;cookie3=value3 len out para
meter.
NPN_PostURLNotify - Archive of obsolete content
syntax #include <npapi.h> nperror npn_posturlnotify(npp instance, const char* url, const char* target, uint32 len, const char* buf, npbool file, void* notifydata); para
meters the function has the following para
meters: instance current plug-in instance, specified by the plug-in.
...if this function is called with a target para
meter value of _self or a parent to _self, this function should return an invalid_param nperror.
...see npn_geturl for information about this para
meter.
NPP_SetWindow - Archive of obsolete content
syntax #include <npapi.h> nperror npp_setwindow(npp instance, npwindow *window); para
meters the function has the following para
meters: instance pointer to the current plug-in instance.
... for windowed plug-ins on windows and unix, the window para
meter contains a handle to a subwindow of the browser window hierarchy.
... before setting the window para
meter to point to a new window, it is a good idea to compare the information about the new window to the previous window (if one existed) to account for any changes.
JavaArray - Archive of obsolete content
in javascript 1.4 and later, the componenttype para
meter is either a javaclass object representing the type of the array or class object, such as one returned by java.lang.class.forname.
...in addition, the tostring method is inherited from the object object and returns the following value: [object javaarray] you must specify a class object, such as one returned by java.lang.object.forname, for the componenttype para
meter of newinstance when you use this method to create an array.
... you cannot use a javaclass object for the componenttype para
meter.
Explaining basic 3D theory - Game development
the camera has three para
meters — location, direction, and orientation — which have to be defined for the newly created scene.
... fragment processing fragment processing focuses on textures and lighting — it calculates final colors based on the given para
meters.
... during output merging some processing is also applied to ignore information that is not needed — for example the para
meters of objects that are outside of the screen or behind other objects, and thus not visible, are not calculated.
Load the assets and print them on screen - Game development
game.load.image('ball', 'img/ball.png'); } the first para
meter we want to give the asset is the name that will be used across our game code — for example, in our ball variable name — so we need to make sure it is the same.
... the second para
meter is the relative path to the graphic asset.
...the first two para
meters are the x and y coordinates of the canvas where you want it added, and the third one is the name of the asset we defined earlier.
CSS values and units - Learn web development
unit name equivalent to cm centi
meters 1cm = 96px/2.54 mm milli
meters 1mm = 1/10th of 1cm q quarter-milli
meters 1q = 1/40th of 1cm in inches 1in = 2.54cm = 96px pc picas 1pc = 1/6th of 1in pt points 1pt = 1/72th of 1in px pixels 1px = 1/96th of 1in most of these values are more useful when used for print, rather than screen output.
... for example we don't typically use cm (centi
meters) on screen.
...an rgb value is a function — rgb() — which is given three para
meters that represent the red, green, and blue channel values of the colors, in much the same way as hex values.
HTML text fundamentals - Learn web development
w solution') { userentry = textarea.value; } else { solutionentry = textarea.value; } updatecode(); }; ordered ordered lists are lists in which the order of the items does matter—let's take a set of directions as an example: drive to the end of the road turn right go straight across the first two roundabouts turn left at the third roundabout the school is on your right, 300
meters up the road the markup structure is the same as for unordered lists, except that you have to wrap the list items in an <ol> element, rather than <ul>: <ol> <li>drive to the end of the road</li> <li>turn right</li> <li>go straight across the first two roundabouts</li> <li>turn left at the third roundabout</li> <li>the school is on your right, 300
meters up the road</li> </ol> active ...
...ss="output" style="min-height: 50px;"> </div> <h2>editable code</h2> <p class="a11y-label">press esc to move focus away from the code area (tab inserts a tab character).</p> <textarea id="code" class="input" style="min-height: 200px; width: 95%">drive to the end of the road turn right go straight across the first two roundabouts turn left at the third roundabout the school is on your right, 300
meters up the road</textarea> <div class="playable-buttons"> <input id="reset" type="button" value="reset"> <input id="solution" type="button" value="show solution"> </div> html { font-family: sans-serif; } h2 { font-size: 16px; } .a11y-label { margin: 0; text-align: right; font-size: 0.7rem; width: 98%; } body { margin: 10px; background: #f5f9fa; } var textarea = document.get...
... textarea.value = solutionentry; solution.value = 'hide solution'; } else { textarea.value = userentry; solution.value = 'show solution'; } updatecode(); }); var htmlsolution = '<ol>\n<li>drive to the end of the road</li>\n<li>turn right</li>\n<li>go straight across the first two roundabouts</li>\n<li>turn left at the third roundabout</li>\n<li>the school is on your right, 300
meters up the road</li>\n</ol>'; var solutionentry = htmlsolution; textarea.addeventlistener('input', updatecode); window.addeventlistener('load', updatecode); // stop tab key tabbing out of textarea and // make it write a tab at the caret position instead textarea.onkeydown = function(e){ if (e.keycode === 9) { e.preventdefault(); insertatcaret('\t'); } if (e.keycode === 27) { te...
Index - Learn web development
90 build your own function article, beginner, codingscripting, functions, guide, javascript, learn, tutorial, build, invoke, l10n:priority, para
meters with most of the essential theory dealt with in the previous article, this article provides practical experience.
... 92 functions — reusable blocks of code api, article, beginner, browser, codingscripting, custom, functions, guide, javascript, learn, method, anonymous, invoke, l10n:priority, para
meters another essential concept in coding is functions, which allow you to store a piece of code that does a single task inside a defined block, and then call that code whenever you need it using a single short command — rather than having to type out the same code multiple times.
... in this article we'll explore fundamental concepts behind functions such as basic syntax, how to invoke and define them, scope, and para
meters.
Making decisions in your code — conditionals - Learn web development
we also have a function called update(), which takes two colors as para
meters (inputs).
...if this returns true, we run the update() function with para
meters of black and white, meaning that we end up with background color of black and text color of white.
... if it returns false, we run the update() function with para
meters of white and black, meaning that the site color are inverted.
Client-side storage - Learn web development
the storage.setitem() method allows you to save a data item in storage — it takes two para
meters: the name of the item, and its value.
... try typing this into your javascript console (change the value to your own name, if you wish!): localstorage.setitem('name','chris'); the storage.getitem() method takes one para
meter — the name of a data item you want to retrieve — and returns the item's value.
... the storage.removeitem() method takes one para
meter — the name of a data item you want to remove — and removes that item out of web storage.
Website security - Learn web development
for example, consider a site search function where the search terms are encoded as url para
meters, and these terms are displayed along with the results.
... an attacker can construct a search link that contains a malicious script as a para
meter (e.g., http://mysite.com?q=beer<script%20src="http://evilsite.com/tricky.js"></script>) and email it to another user.
...this includes, but is not limited to data in url para
meters of get requests, post requests, http headers and cookies, and user-uploaded files.
Advanced Svelte: Reactivity, lifecycle, accessibility - Learn web development
in our immediate use case, we will define a function called selectonfocus() that will receive a node as para
meter.
...ll onfocus() return { destroy: () => node.removeeventlistener('focus', onfocus) // this will be executed when the node is removed from the dom } } } now we need to tell the <input> to use that function with the use:action directive: <input use:selectonfocus /> with this directive we are telling svelte to run this function, passing the dom node of the <input> as a para
meter, as soon as the component is mounted on the dom.
...actions can also have reactive para
meters, and svelte lets us detect when any of those para
meters change.
AddonUpdateChecker
updateinfo getcompatibilityupdate( in updateinfo updates[], in string version, in boolean ignorecompatibility, in string appversion, in string platformversion ) para
meters updates an array of update objects version the version of the add-on to get new compatibility information for ignorecompatibility an optional para
meter to get the first compatibility update that is compatible with any version of the application or toolkit appversion the version of the application or null to use the current version platformversion the version of the platform or null t...
... updateinfo getnewestcompatibleupdate( in updateinfo updates[], in string appversion, in string platformversion ) para
meters updates an array of update objects appversion the version of the application or null to use the current version platformversion the version of the platform or null to use the current version checkforupdates() starts an update check.
... void checkforupdates( in string id, in string type, in string updatekey, string url, in updatechecklistener listener ) para
meters id the id of the add-on being checked for updates type the type of add-on being checked for updates updatekey an optional update key for the add-on url the url of the add-on's update manifest listener an observer to notify of results ...
DownloadSummary
promise bindtolist( downloadlist alist ); para
meters alist underlying downloadlist whose contents should be summarized.
...promise addview( object aview ); para
meters aview the view object to add.
...promise removeview( object aview ); para
meters aview the view object to remove.
Promise.jsm
deferred defer(); obsolete since gecko 30 para
meters none.
... promise resolve( avalue ); para
meters avalue optional if this value is not a promise, including undefined, it becomes the fulfillment value of the returned promise.
... promise reject( areason ); para
meters areason optional the rejection reason for the returned promise.
WebChannel.jsm
para
meters callback callback function containing function(id, message, sendercontext) para
meters.
... para
meters none send() sends messages over the webchannel id using the "webchannelmessagetocontent" event.
... para
meters message the message object that will be sent sendercontext the sendercontext para
meter passed to the .listen method.
Encodings for localization files
this is tricky to hook up in the build process, so here it goes: file encoding notes toolkit/installer/windows/charset.mk ascii the win_installer_charset variable must be set to an encoding which matches toolkit/installer/windows/install.it charset= para
meter.
...this must match the charset= para
meter in this file, and the win_installer_charset para
meter in charset.mk the fontname/fontsize/charset para
meters in this file must be set to good values.
...see the table below for appropriate values for the charset= para
meter.
PRExplodedTime
syntax #include <prtime.h> typedef struct prexplodedtime { print32 tm_usec; print32 tm_sec; print32 tm_min; print32 tm_hour; print32 tm_mday; print32 tm_month; print16 tm_year; print8 tm_wday; print16 tm_yday; prtimepara
meters tm_params; } prexplodedtime; description the prexplodedtime structure represents clock/calendar time.
...in addition, prexplodedtime includes a prtimepara
meters structure representing the local time zone information, so that the time point is non-ambiguously specified.
... tm_params: a prtimepara
meters structure representing the local time zone information.
PR_Accept
syntax #include <prio.h> prfiledesc* pr_accept( prfiledesc *fd, prnetaddr *addr, printervaltime timeout); para
meters the function has the following para
meters: fd a pointer to a prfiledesc object representing the rendezvous socket on which the caller is willing to accept new connections.
... if the addr para
meter is not null, pr_accept stores the address of the connecting entity in the prnetaddr object pointed to by addr.
...if the timeout para
meter is not pr_interval_no_timeout and no pending connection can be accepted before the time limit, pr_accept returns null with the error code pr_io_timeout_error.
PR_AcceptRead
syntax #include <prio.h> print32 pr_acceptread( prfiledesc *listensock, prfiledesc **acceptedsock, prnetaddr **peeraddr, void *buf, print32 amount, printervaltime timeout); para
meters the function has the following para
meters: listensock a pointer to a prfiledesc object representing a socket descriptor that has been called with the pr_listen function, also known as the rendezvous socket.
...this para
meter is valid only if the function return does not indicate failure.
...this para
meter is valid only if the function return does not indicate failure.
PR_CEnterMonitor
syntax #include <prcmon.h> prmonitor* pr_centermonitor(void *address); para
meter the function has the following para
meter: address a reference to the data that is to be protected by the monitor.
... returns the function returns one of the following values: if successful, the function returns a pointer to the prmonitor associated with the value specified in the address para
meter.
... description pr_centermonitor uses the value specified in the address para
meter to find a monitor in the monitor cache, then enters the lock associated with the monitor.
PR_CExitMonitor
syntax #include <prcmon.h> prstatus pr_cexitmonitor(void *address); para
meters the function has the following para
meters: address the address of the protected object--the same address previously passed to pr_centermonitor.
...this may indicate that the address para
meter is invalid or that the calling thread is not in the monitor.
... description using the value specified in the address para
meter to find a monitor in the monitor cache, pr_cexitmonitor decrements the entry count associated with the monitor.
PR_CNotify
syntax #include <prcmon.h> prstatus pr_cnotify(void *address); para
meter the function has the following para
meter: address the address of the monitored object.
... returns pr_success indicates that the calling thread is the holder of the mutex for the monitor referred to by the address para
meter.
... description using the value specified in the address para
meter to find a monitor in the monitor cache, pr_cnotify notifies single a thread waiting for the monitor's state to change.
PR_CreateFileMap
syntax #include <prio.h> prfilemap* pr_createfilemap( prfiledesc *fd, print64 size, prfilemapprotect prot); para
meters the function has the following para
meters: fd a pointer to a prfiledesc object representing the file that is to be mapped to memory.
...this para
meter consists of one of the following options: pr_prot_readonly.
... description the prfilemapprotect enumeration used in the prot para
meter is defined as follows: typedef enum prfilemapprotect { pr_prot_readonly, pr_prot_readwrite, pr_prot_writecopy } prfilemapprotect; pr_createfilemap only prepares for the mapping a file to memory.
PR_CreatePipe
syntax #include <prio.h> prstatus pr_createpipe( prfiledesc **readpipe, prfiledesc **writepipe); para
meters the function has the following para
meters: readpipe a pointer to a prfiledesc pointer.
... on return, this para
meter contains the file descriptor for the read end of the pipe.
...on return, this para
meter contains the file descriptor for the write end of the pipe.
PR EnumerateAddrInfo
syntax #include <prnetdb.h> void *pr_enumerateaddrinfo( void *enumptr, const praddrinfo *addrinfo, pruint16 port, prnetaddr *result); para
meters the function has the following para
meters: enumptr the index pointer of the enumeration.
...this para
meter is not checked for validity.
... returns the function returns the value you should specify in the enumptr para
meter for the next call of the enumerator.
PR_EnumerateHostEnt
syntax #include <prnetdb.h> printn pr_enumeratehostent( printn enumindex, const prhostent *hostent, pruint16 port, prnetaddr *address); para
meters the function has the following para
meters: enumindex the index of the enumeration.
...this para
meter is not checked for validity.
... returns the function returns one of the following values: if successful, the function returns the value you should specify in the enumindex para
meter for the next call of the enumerator.
PR_ExplodeTime
syntax #include <prtime.h> void pr_explodetime( prtime usecs, prtimeparamfn params, prexplodedtime *exploded); para
meters the function has these para
meters: usecs an absolute time in the prtime format.
... params a time para
meter callback function.
...upon return, the location pointed to by the exploded para
meter contains the converted time value.
PR_Init
syntax #include <prinit.h> void pr_init( prthreadtype type, prthreadpriority priority, pruintn maxptds); para
meters pr_init has the following para
meters: type this para
meter is ignored.
... priority this para
meter is ignored.
... maxptds this para
meter is ignored.
PR_Send
syntax #include <prio.h> print32 pr_send( prfiledesc *fd, const void *buf, print32 amount, printn flags, printervaltime timeout); para
meters the function has the following para
meters: fd a pointer to a prfiledesc object representing a socket.
... flags this obsolete para
meter must always be zero.
...if the para
meter fd is a blocking socket, this number must always equal amount.
PR_Wait
syntax #include <prmon.h> prstatus pr_wait( prmonitor *mon, printervaltime ticks); para
meters the function has the following para
meter: mon a reference to an existing structure of type prmonitor.
... returns the function returns one of the following values: pr_success means the thread is being resumed from the pr_wait call either because it was explicitly notified or because the time specified by the para
meter ticks has expired.
... a thread waiting on the monitor resumes when the monitor is notified or when the timeout specified by the ticks para
meter elapses.
PR_Writev
syntax #include <prio.h> print32 pr_writev( prfiledesc *fd, priovec *iov, print32 size, printervaltime timeout); #define pr_max_iovector_size 16 para
meters the function has the following para
meters: fd a pointer to a prfiledesc object for a socket.
...the value of this para
meter must not be greater than pr_max_iovector_size.
...if the timeout para
meter is not pr_interval_no_timeout and all the data cannot be written in the specified interval, pr_writev returns -1 with the error code pr_io_timeout_error.
An overview of NSS Internals
in the most simple scenario, the programmer will provide a directory on your filesystem as a para
meter to the init function, and nss is designed to do the rest.
...the programmer's task is to initialize nss with the required para
meters (such as a database), and nss will then transparently manage the database files.
...create a context handle while providing all the para
meters required for the operation, then call an “update” function multiple times to pass subsets of the input to nss.
HTTP delegation
no full uri is provided as a para
meter.
... instead, the para
meters are a server session object (that carries host and port information already) and the request path.
...once the http response has been obtained from the http server, the function will provide the results in its "out para
meters".
HTTP delegation
no full uri is provided as a para
meter.
... instead, the para
meters are a server session object (that carries host and port information already) and the request path.
...once the http response has been obtained from the http server, the function will provide the results in its "out para
meters".
NSS 3.33 release notes
new functions in cert.h cert_findcertbyissuerandsncx - a variation of existing function cert_findcertbyissuerandsn that accepts an additional password context para
meter.
... cert_findcertbynicknameoremailaddrcx - a variation of existing function cert_findcertbynicknameoremailaddr that accepts an additional password context para
meter.
... cert_findcertbynicknameoremailaddrforusagecx - a variation of existing function cert_findcertbynicknameoremailaddrforusage that accepts an additional password context para
meter.
NSS Developer Tutorial
variable, and function para
meter names, always start with a lowercase letter.
... the function prototype of an exported function, cannot be changed, with these exceptions: a foo * para
meter can be changed to const foo *.
... sometimes an int para
meter can be changed to unsigned int, or an int * para
meter can be changed to unsigned int *.
Enc Dec MAC Using Key Wrap CertReq PKCS10 CSR
, "problem while vfy_update\n"); goto cleanup; } } rv = vfy_end(vfy); if (rv != secsuccess) { pr_fprintf(pr_stderr, "problem while vfy_end\n"); goto cleanup; } cleanup: if (infile) { pr_close(infile); } if (vfy) { vfy_destroycontext(vfy, pr_true); } return rv; } /* * write cryptographic para
meters to header file */ secstatus writetoheaderfile(const char *buf, unsigned int len, headertype type, prfiledesc *outfile) { secstatus rv; const char *header; const char *trailer; switch (type) { case symkey: header = enckey_header; trailer = enckey_trailer; break; case mackey: header = mackey_heade...
...fprintf(outfile, "%s\n", header); pr_fprintf(outfile, "%s\n", buf); pr_fprintf(outfile, "%s\n\n", trailer); return secsuccess; break; default: return secfailure; } pr_fprintf(outfile, "%s\n", header); printashex(outfile, buf, len); pr_fprintf(outfile, "%s\n\n", trailer); return secsuccess; } /* * read cryptographic para
meters from the header file */ secstatus readfromheaderfile(const char *filename, headertype type, secitem *item, prbool ishexdata) { secstatus rv = secsuccess; prfiledesc* file = null; secitem filedata; secitem outbuf; unsigned char *nonbody; unsigned char *body; char *header; char *trailer; o...
...null; certcertificate *cert = null; if ( !selfsign ) { issuercert = cert_findcertbynicknameoremailaddr(handle, issuernickname); if (!issuercert) { pr_fprintf(pr_stderr, "could not find certificate named %s\n", issuernickname); goto cleanup; } } now = pr_now(); pr_explodetime (now, pr_gmtpara
meters, &printabletime); if ( warpmonths ) { printabletime.tm_month += warpmonths; now = pr_implodetime (&printabletime); pr_explodetime (now, pr_gmtpara
meters, &printabletime); } printabletime.tm_month += validitymonths; after = pr_implodetime (&printabletime); /* note that the time is now in micro-second unit */ validity = cert_createvalidity (...
sample2
le, ibuf, sizeof(ibuf))) > 0) { rv = vfy_update(vfy, ibuf, nb); if (rv != secsuccess) { pr_fprintf(pr_stderr, "problem while vfy_update\n"); goto cleanup; } } rv = vfy_end(vfy); if (rv != secsuccess) { pr_fprintf(pr_stderr, "problem while vfy_end\n"); goto cleanup; } cleanup: if (infile) { pr_close(infile); } if (vfy) { vfy_destroycontext(vfy, pr_true); } return rv; } /* * write cryptographic para
meters to header file */ secstatus writetoheaderfile(const char *buf, unsigned int len, headertype type, prfiledesc *outfile) { secstatus rv; const char *header; const char *trailer; switch (type) { case symkey: header = enckey_header; trailer = enckey_trailer; break; case mackey: header = mackey_header; trailer = mackey_trailer; break; case iv: header = iv_header; trailer = iv_trailer; break; case mac...
...s_sig_trailer; break; case lab: header = lab_header; trailer = lab_trailer; pr_fprintf(outfile, "%s\n", header); pr_fprintf(outfile, "%s\n", buf); pr_fprintf(outfile, "%s\n\n", trailer); return secsuccess; break; default: return secfailure; } pr_fprintf(outfile, "%s\n", header); printashex(outfile, buf, len); pr_fprintf(outfile, "%s\n\n", trailer); return secsuccess; } /* * read cryptographic para
meters from the header file */ secstatus readfromheaderfile(const char *filename, headertype type, secitem *item, prbool ishexdata) { secstatus rv = secsuccess; prfiledesc* file = null; secitem filedata; secitem outbuf; unsigned char *nonbody; unsigned char *body; char *header; char *trailer; outbuf.type = sibuffer; file = pr_open(filename, pr_rdonly, 0); if (!file) { pr_fprintf(pr_stderr, "failed to o...
...dtime printabletime; prtime now; prtime after; certvalidity *validity = null; certcertificate *issuercert = null; certcertificate *cert = null; if ( !selfsign ) { issuercert = cert_findcertbynicknameoremailaddr(handle, issuernickname); if (!issuercert) { pr_fprintf(pr_stderr, "could not find certificate named %s\n", issuernickname); goto cleanup; } } now = pr_now(); pr_explodetime (now, pr_gmtpara
meters, &printabletime); if ( warpmonths ) { printabletime.tm_month += warpmonths; now = pr_implodetime (&printabletime); pr_explodetime (now, pr_gmtpara
meters, &printabletime); } printabletime.tm_month += validitymonths; after = pr_implodetime (&printabletime); /* note that the time is now in micro-second unit */ validity = cert_createvalidity (now, after); if (validity) { cert = cert_createcertificat...
NSS tools : modutil
(y/n) y using installer script "installer_script" successfully parsed installation script current platform is linux:5.4.08:x86 using installation para
meters for platform linux:5.4.08:x86 installed file crypto.so to /tmp/crypto.so installed file setup.sh to ./pk11inst.dir/setup.sh executing "./pk11inst.dir/setup.sh"...
... "./pk11inst.dir/setup.sh" executed successfully installed module "example pkcs #11 module" into module database installation completed successfully adding module spec each module has information stored in the security database about its configuration and para
meters.
...(this information can be edited by loading new specs using the -rawadd command.) modutil -rawlist -dbdir sql:/home/my/sharednssdb name="nss internal pkcs #11 module" para
meters="configdir=.
NSS tools : pk12util
there are optional para
meters that can be used to encrypt the file to protect the certificate material.
...id encryption algorithm: pkcs #12 v2 pbe with sha-1 and 3key triple des-cbc para
meters: salt: 45:2e:6a:a0:03:4d:7b:a1:63:3c:15:ea:67:37:62:1f iteration count: 1 (0x1) certificate: data: version: 3 (0x2) serial number: 13 (0xd) signature algorithm: pkcs #1 sha-1 with rsa encryption issuer: "e=personal-freemail@thawte.com,cn=thawte personal freemail c a,ou=certification services division,o=thawte consulting,l=cape t own,st=western cape,c=za" alternatively, the -r prints ...
...id encryption algorithm: pkcs #12 v2 pbe with sha-1 and 3key triple des-cbc para
meters: salt: 45:2e:6a:a0:03:4d:7b:a1:63:3c:15:ea:67:37:62:1f iteration count: 1 (0x1) certificate friendly name: thawte personal freemail issuing ca - thawte consulting certificate friendly name: thawte freemail member's thawte consulting (pty) ltd.
NSS Tools crlutil
arg1, arg2: specific to extension type extension para
meters addext uses the range that was set earlier by addcert and will install an extension to every cert entries within the range.
... see "implemented extensions" for more information regarding extensions and theirs para
meters.
...xample lists all the crls in the nss database in the specified directory: crlutil -l -d certdir the crl management tool displays output similar to the following: crl name crl type cn=nss test ca,o=bogus nss,l=mountain view,st=california,c=us crl cn=john smith,o=netscape,l=mountain view,st=california,c=us crl to view a particular crl user should specify -n nickname para
meter.
NSS tools : modutil
(y/n) y using installer script "installer_script" successfully parsed installation script current platform is linux:5.4.08:x86 using installation para
meters for platform linux:5.4.08:x86 installed file crypto.so to /tmp/crypto.so installed file setup.sh to ./pk11inst.dir/setup.sh executing "./pk11inst.dir/setup.sh"...
... "./pk11inst.dir/setup.sh" executed successfully installed module "example pkcs #11 module" into module database installation completed successfully adding module spec each module has information stored in the security database about its configuration and para
meters.
...(this information can be edited by loading new specs using the -rawadd command.) modutil -rawlist -dbdir sql:/home/my/sharednssdb name="nss internal pkcs #11 module" para
meters="configdir=.
NSS tools : pk12util
there are optional para
meters that can be used to encrypt the file to protect the certificate material.
...id encryption algorithm: pkcs #12 v2 pbe with sha-1 and 3key triple des-cbc para
meters: salt: 45:2e:6a:a0:03:4d:7b:a1:63:3c:15:ea:67:37:62:1f iteration count: 1 (0x1) certificate: data: version: 3 (0x2) serial number: 13 (0xd) signature algorithm: pkcs #1 sha-1 with rsa encryption issuer: "e=personal-freemail@thawte.com,cn=thawte personal freemail c a,ou=certification services divisio...
...id encryption algorithm: pkcs #12 v2 pbe with sha-1 and 3key triple des-cbc para
meters: salt: 45:2e:6a:a0:03:4d:7b:a1:63:3c:15:ea:67:37:62:1f iteration count: 1 (0x1) certificate friendly name: thawte personal freemail issuing ca - thawte consulting certificate friendly name: thawte freemail member's thawte consulting (pty) ltd.
JS::SetLargeAllocationFailureCallback
data void * data para
meter which will be passed to js::largeallocationfailurecallback.
... added in spidermonkey 38 callback syntax typedef void (* js::largeallocationfailurecallback)(void *data); name type description data void * data para
meter passed to js::setlargeallocationfailurecallback.
... see also mxr id search for js::setlargeallocationfailurecallback mxr id search for js::largeallocationfailurecallback bug 936236 bug 987995 - added data para
meter ...
JS::SetOutOfMemoryCallback
data void * data para
meter which will be passed to js::outofmemorycallback.
... added in spidermonkey 38 callback syntax typedef void (* outofmemorycallback)(jscontext *cx, void *data); name type description data void * data para
meter passed to js::setoutofmemorycallback.
... see also mxr id search for js::setoutofmemorycallback mxr id search for js::outofmemorycallback bug 969415 bug 987995 - added data para
meter ...
JSNewEnumerateOp
properties js::autoidvector & out para
meter.
... statep js::mutablehandleid obsolete since jsapi 37 in/out para
meter.
... idp js::mutablehandleid obsolete since jsapi 37 in/out para
meter.
JSObjectOps.lookupProperty
objp jsobject ** out para
meter.
... propp jsproperty ** out para
meter.
... if jslookuppropop succeeds and returns with *propp non-null, that pointer may be passed as the prop para
meter to a jsattributesop, as a short-cut that bypasses id re-lookup.
JS_CheckAccess
mode jsaccessmode the type of access requested (read, write, etc.) vp jsval * out para
meter.
... attrsp unsigned int * out para
meter.
... the mode para
meter specifies what kind of access to check for.
JS_DefineProperty
result js::objectopresult & (out para
meter) receives the result of the operation.
... the para
meters specify the new property's name, initial stored value, getter, setter, and property attributes (attrs).
... see also mxr id search for js_defineproperty mxr id search for js_defineucproperty mxr id search for js_definepropertybyid js_defineelement bug 461163 bug 1113369 -- added desc and result para
meters ...
JS_DefinePropertyWithTinyId
except for the tinyid para
meter, these functions behave exactly as js_defineproperty and js_defineucproperty.
...any time the javascript engine would pass the name of the property as a string to the id para
meter of a tiny-id-aware callback, it passes int_to_jsval(tinyid) instead.
...for example, if a property named "color" is defined with tiny id 10, then the javascript expressions obj[10] and obj.color will both result in int_to_jsval(10) being passed to jsclass.getproperty as the id para
meter.
JS_DeleteProperty
result js::objectopresult & (out para
meter) receives the result of the operation.
...these functions are identical to js_deleteproperty2 and js_deletepropertybyid2 except that they do not have an out para
meter.
... see also mxr id search for js_deleteproperty mxr id search for js_deletepropertybyid js_deleteproperty2 js_deletepropertybyid2 bug 461163 bug 1113369 -- added result para
meter and js_deleteucproperty ...
JS_EvaluateScript
this para
meter is documented in detail at js_executescript.
... rval jsval * out para
meter.
... rval is an optional out para
meter.
JS_ExecuteScriptPart
this para
meter is documented in detail at js_executescript.
... rval jsval * out para
meter.
...the part para
meter must be either jsexec_prolog to execute the script prolog or jsexec_main to execute the main section of the script.
JS_GetFunctionArity
description js_getfunctionarity returns the number of formal para
meters of a function, fun.
...specifically, if fun is a native function, the result is the value that was passed to the nargs para
meter of js_definefunction.
... otherwise fun is implemented in javascript, and the result is the number of identifiers in its formal para
meter list (see ecma 262-3 §13).
JS_NewExternalString
since the program allocated the memory, it will need to free it; this happens in an external string finalizer indicated by the type para
meter.
... js_newexternalstringwithclosure works similarly, except it accepts an additional para
meter, closure, which is saved in the string's internal data structure.
... see also mxr id search for js_newexternalstring js_getexternalstringclosure js_isexternalstring bug 724810 - replaced type with fin para
meter, and remove js_newexternalstringwithclosure ...
JS_ScheduleGC
this article covers features introduced in spidermonkey 17 set nextscheduled para
meter of gc.
... frequency uint32_t the value of nextscheduled para
meter of gc.
... description js_schedulegc sets the nextscheduled para
meter of gc.
A Web PKI x509 certificate primer
the attributes of the certificates in the verification path have valid para
meters for that verification (for example the validity period of all the certificates are valid for the time the verification is being done) revocation checks are considered ok for that particular validation.
...this type of hierarchy allows for a relatively simple long term root to be distributed to clients, and some flexibility on the intermediate cert so that you can change para
meters based on best practices and security research.
...sp.example.com:80/ intermediate signs the csr (using sha256) and appends the extensions described in the file "openssl x509 -req -sha256 -days 1096 -in example.csr -cakey intkey.pem -ca int.pem -set_serial $some_large_integer -out www.example.com.pem -extfile openssl.int.cnf" security notes there are several organizations that provide recommendations regarding the security para
meters for key/hash sizes given current computational power.
Animated PNG graphics
the output buffer is a pixel array with dimensions specified by the width and height para
meters of the png 'ihdr' chunk.
... the boundaries of the entire animation are specified by the width and height para
meters of the png 'ihdr' chunk, regardless of whether the default image is part of the animation.
... constraints on frame regions: x_offset >= 0 y_offset >= 0 width > 0 height > 0 x_offset + width <= 'ihdr' width y_offset + height <= 'ihdr' height the delay_num and delay_den para
meters together specify a fraction indicating the time to display the current frame, in seconds.
Embedded Dialog API
the precise appearance and contents of the new window are defined by the application, though the app should conform to the chromeflags para
meter of nsiwindowcreator::createchromewindow.
...most if not all of these dialogs will need to be child/dependent/transient windows, so each method responsible for actually opening a window must take an nsidomwindow *aparent para
meter, and use that window as the dialog's parent, if non-null.
...embedded dialog posing interface coding conventions the nsidomwindow *aparent para
meter mentioned above should be the first para
meter to each method in which it appears.
extISessionStorage
boolean has(in astring aname) para
meters aname the name of an item return value true if an item exists with the given name, false otherwise.
... void set(in astring aname, in nsivariant avalue) para
meters aname the name of an item return value get() gets the value of a storage item with the given name.
... nsivariant get(in astring aname, in nsivariant adefaultvalue) para
meters aname the name of an item return value value of the item or the given default value if no item exists with the given name.
XPCOM array guide
void notifyobservers(nsiarray* aarray) { pruint32 length; aarray->getlength(&length); for (pruint32 i=0; i<length; ++i) { nscomptr<nsimyobserver> element = do_queryelementat(aarray, i); element->observe(); } } passing as a para
meter since nsiarray is an xpcom object, it should be passed as a pointer.
...n nsisupportsarray* void getfirstobject(nsielement** aresult) { // no need to call ns_addref - this does it for you melements->queryelementat(0, ns_get_iid(nsielement), (void**)aresult); } // new version, make sure to call ns_addref() // melements is now a nscomarray<nsielement> void getfirstobject(nsielement** aresult) { *aresult = melements[0]; ns_addref(*aresult); } passing as a para
meter when passing nscomarray<t> among functions, the convention is to pass by reference.
... passing as a para
meter when passing nstarray<t> among functions, the convention is to pass by reference.
Components.utils.Sandbox
options the constructor accepts an optional para
meter.
... this para
meter is an object with the following optional properties: freshzone if true creates a new gc region separate from both the calling context's and the sandbox prototype's region.
...content scripts should pass the window they're running in as this para
meter, in order to ensure that the script is cleaned up at the same time as the content itself.
NS_InitXPCOM2
#include "nsxpcom.h" nsresult ns_initxpcom2( nsiservicemanager** aresult, nsifile* abindirectory, nsidirectoryserviceprovider* aappfilelocationprovider ); para
meters aresult [out] the resulting xpcom service manager.
...this para
meter may be nsnull.
...the one exception is that you may call ns_newlocalfile or ns_newnativelocalfile to create a nsifile needed for the abindirectory para
meter to ns_initxpcom2.
NS_InitXPCOM3
#include "nsxpcom.h" nsresult ns_initxpcom3( nsiservicemanager** aresult, nsifile* abindirectory, nsidirectoryserviceprovider* aappfilelocationprovider, nsstaticmoduleinfo const* astaticmodules, pruint32 astaticmodulecount ); para
meters aresult [out] the resulting xpcom service manager.
...this para
meter may be nsnull.
...the one exception is that you may call ns_newlocalfile or ns_newnativelocalfile to create a nsifile needed for the abindirectory para
meter to ns_initxpcom3.
NS_NewLocalFile
#include "nsxpcom.h" #include "nsilocalfile.h" nsresult ns_newlocalfile( const nsastring& apath, prbool afollowlinks, nsilocalfile** aresult ); para
meters apath [in] a utf-16 string object that specifies an absolute filesystem path.
...this para
meter has no effect on unix systems.
...nsembedstring is used to convert the ucs-2 character array to an object that can be passed as a const nsastring& para
meter.
NS_NewNativeLocalFile
#include "nsxpcom.h" #include "nsilocalfile.h" nsresult ns_newnativelocalfile( const nsacstring& apath, prbool afollowlinks, nsilocalfile** aresult ); para
meters apath [in] a string object that specifies an absolute filesystem path.
...this para
meter has no effect on unix systems.
... example code // create a local file that references c:\foo.txt nsresult rv; nscomptr<nsilocalfile> file; rv = ns_newnativelocalfile(nsembedcstring("c:\\foo.txt"), pr_false, getter_addrefs(file)); if (ns_failed(rv)) return rv; here, nsembedcstring is used to convert the ascii string literal to an object that can be passed as a const nsacstring& para
meter.
Append
void append( const self_type& astring ); para
meters astring [in] a nsacstring to append to this string.
... void append( const char_type* adata, size_type adatalength = pr_uint32_max ); para
meters adata [in] a raw character array to append to this string.
... void append( char_type achar ); para
meters achar [in] a character to append to this string.
Assign
void assign( const self_type& astring ); para
meters astring [in] a nsacstring to copy into this string.
... void assign( const char_type* adata, size_type adatalength = pr_uint32_max ); para
meters adata [in] a raw character array to copy into this string.
... void assign( char_type achar ); para
meters achar [in] the character to copy into this string.
Insert
void insert( const self_type& astring, index_type aposition ); para
meters astring [in] a nsacstring to append to this string.
... void insert( const char_type* adata, index_type aposition, size_type adatalength = pr_uint32_max ); para
meters adata [in] a raw character array to append to this string.
... void insert( char_type achar, index_type aposition ); para
meters achar [in] a character to append to this string.
Replace
void replace( index_type acutstart, index_type acutlength, const self_type& astring ); para
meters acutstart [in] the starting index of the section to remove, measured in storage units.
... void replace( index_type acutstart, size_type acutlength, const char_type* adata, size_type adatalength = pr_uint32_max ); para
meters acutstart [in] the starting index of the section to remove, measured in storage units.
... void replace( index_type acutstart, index_type acutlength, char_type achar ); para
meters acutstart [in] the starting index of the section to remove, measured in storage units.
operator=
self_type& operator=( const self_type& astring ); para
meters astring [in] a nsacstring to append to this string.
... self_type& operator=( const char_type* adata ); para
meters adata [in] a raw character array to append to this string.
... self_type& operator=( char_type achar ); para
meters achar [in] a character to append to this string.
operator+=
self_type& operator+=( const self_type& astring ); para
meters astring [in] a nsacstring to append to this string.
... self_type& operator+=( const char_type* adata ); para
meters adata [in] a raw character array to append to this string.
... self_type& operator+=( char_type achar ); para
meters achar [in] a character to append to this string.
Append
void append( const self_type& astring ); para
meters astring [in] a nsastring to append to this string.
... void append( const char_type* adata, size_type adatalength = pr_uint32_max ); para
meters adata [in] a raw character array to append to this string.
... void append( char_type achar ); para
meters achar [in] a character to append to this string.
Assign
void assign( const self_type& astring ); para
meters astring [in] a nsastring to copy into this string.
... void assign( const char_type* adata, size_type adatalength = pr_uint32_max ); para
meters adata [in] a raw character array to copy into this string.
... void assign( char_type achar ); para
meters achar [in] the character to copy into this string.
Insert
void insert( const self_type& astring, index_type aposition ); para
meters astring [in] a nsastring to append to this string.
... void insert( const char_type* adata, index_type aposition, size_type adatalength = pr_uint32_max ); para
meters adata [in] a raw character array to append to this string.
... void insert( char_type achar, index_type aposition ); para
meters achar [in] a character to append to this string.
Replace
void replace( index_type acutstart, index_type acutlength, const self_type& astring ); para
meters acutstart [in] the starting index of the section to remove, measured in storage units.
... void replace( index_type acutstart, size_type acutlength, const char_type* adata, size_type adatalength = pr_uint32_max ); para
meters acutstart [in] the starting index of the section to remove, measured in storage units.
... void replace( index_type acutstart, index_type acutlength, char_type achar ); para
meter acutstart [in] the starting index of the section to remove, measured in storage units.
operator=
self_type& operator+=( const self_type& astring ); para
meters astring [in] a nsastring to append to this string.
... self_type& operator=( const char_type* adata ); para
meters adata [in] a raw character array to append to this string.
... self_type& operator=( char_type achar ); para
meters achar [in] a character to append to this string.
IAccessibleComponent
[propget] hresult background( [out] ia2color background ); para
meters background the returned color is the background color of this object or, if that is not supported, the default background color.
...[propget] hresult foreground( [out] ia2color foreground ); para
meters foreground the returned color is the foreground color of this object or, if that is not supported, the default foreground color.
...[propget] hresult locationinparent( [out] long x, [out] long y ); para
meters x the x coordinate of the upper left corner of the object's bounding box relative to the immediate parent object.
IAccessibleHypertext
[propget] hresult hyperlink( [in] long index, [out] iaccessiblehyperlink hyperlink ); para
meters index this 0 based index specifies the hyperlink to return.
...[propget] hresult hyperlinkindex( [in] long charindex, [out] long hyperlinkindex ); para
meters charindex a 0 based index of the character for which to return the link index.
...[propget] hresult nhyperlinks( [out] long hyperlinkcount ); para
meters hyperlinkcount the number of links and link groups within this hypertext paragraph.
IAccessibleImage
[propget] hresult description( [out] bstr description ); para
meters description the localized description of the image.
...[propget] hresult imageposition( [in] enum ia2coordinatetype coordinatetype, [out] long x, [out] long y ); para
meters coordinatetype specifies whether the returned coordinates should be relative to the screen or the parent object.
...[propget] hresult imagesize( [out] long height, [out] long width ); para
meters height the height of the image.
amIWebInstallListener
boolean onwebinstallblocked( in nsidomwindow awindow, in nsiuri auri, [array, size_is(acount)] in nsivariant ainstalls, in pruint32 acount optional ); para
meters awindow the window that triggered the installs.
...void onwebinstalldisabled( in nsidomwindow awindow, in nsiuri auri, [array, size_is(acount)] in nsivariant ainstalls, in pruint32 acount optional ); para
meters awindow the window that triggered the installs.
...boolean onwebinstallrequested( in nsidomwindow awindow, in nsiuri auri, [array, size_is(acount)] in nsivariant ainstalls, in pruint32 acount optional ); para
meters awindow the window that triggered the installs.
imgILoader
imgirequest loadimage( in nsiuri auri, in nsiuri ainitialdocumenturl, in nsiuri areferreruri, in nsiprincipal aloadingprincipal, in nsiloadgroup aloadgroup, in imgidecoderobserver aobserver, in nsisupports acx, in nsloadflags aloadflags, in nsisupports cachekey, in imgirequest arequest, in nsichannelpolicy channelpolicy ); para
meters auri the uri to load.
...imgirequest loadimagewithchannel( in nsichannel achannel, in imgidecoderobserver aobserver, in nsisupports cx, out nsistreamlistener alistener ); para
meters achannel the channel to load the image from.
...boolean supportimagewithmimetype( in string mimetype ); para
meters mimetype the type to find a decoder for.
mozIAsyncHistory
void getplacesinfo( in jsval aplaceidentifiers, in mozivisitinfocallback acallback ); para
meters aplaceidentifiers the uri for which to determine the visited status.
...void isurivisited( in nsiuri auri, in mozivisitedstatuscallback acallback ); para
meters auri the places for which to retrieve information, identified by either a single place guid, a single uri, or a js array of uris and/or guids.
...void updateplaces( in moziplaceinfo aplaceinfo, in mozivisitinfocallback acallback optional ); para
meters aplaceinfo the moziplaceinfo object[s] containing the information to store or update.
mozIStorageStatementCallback
void handlecompletion( in unsigned short areason ); para
meters areason the reason the statement stopped executing; see the list of possible values in the constants section.
... void handleerror( in mozistorageerror aerror ); para
meters aerror a mozistorageerror object describing the error that occurred.
... void handleresult( in mozistorageresultset aresultset ); para
meters aresultset an mozistorageresultset object describing the available results from the statement's execution.
mozIThirdPartyUtil
boolean isthirdpartychannel( in nsichannel achannel, in nsiuri auri optional ); para
meters achannel the channel associated with the load.
...boolean isthirdpartyuri( in nsiuri afirsturi, in nsiuri aseconduri ); para
meters afirsturi missing description aseconduri missing description return value true if afirsturi is third party with respect to aseconduri.
...boolean isthirdpartywindow( in nsidomwindow awindow, in nsiuri auri optional ); para
meters awindow the bottommost window in the hierarchy.
mozIVisitInfoCallback
void handleerror( in nsresult aresultcode, in moziplaceinfo aplaceinfo ); para
meters aresultcode nsresult indicating the reason why the change failed.
...void handleresult( in moziplaceinfo aplaceinfo ); para
meters aplaceinfo the information that was entered into the database.
...void oncomplete( in nsresult aresultcode, in moziplaceinfo aplaceinfo ); para
meters aresultcode nsresult of the change indicating success or failure reason.
nsIAboutModule
the contract id ends with a para
meter that corresponds to the name of the about page.
...unsigned long geturiflags( in nsiuri auri ); para
meters auri return value a combination of the flags above corresponding to the appropriate flags for this about uri.
...nsichannel newchannel( in nsiuri auri ); para
meters auri the uri of the new channel.
nsIAccessibleDocument
nsiaccessible getaccessibleinparentchain( in nsidomnode adomnode, in boolean acancreate ); para
meters adomnode the dom node we need an accessible for.
... nsiaccessnode getcachedaccessnode( in voidptr auniqueid ); para
meters auniqueid the unique id used to cache the node.
... astring getnamespaceuriforid( in short namespaceid ); para
meters namespaceid the id of the name space.
nsIAccessibleHyperText
nsiaccessiblehyperlink getlink( in long linkindex ); para
meters linkindex 0-based index of the link that is to be retrieved.
... long getlinkindex( in long charindex ); para
meters charindex the 0-based character index.
... getselectedlinkindex() obsolete since gecko 1.9 (firefox 3) long getselectedlinkindex(); para
meters none.
nsIAccessibleImage
this method is the same as nsiaccessible.getbounds() excepting coordinate origin para
meter.
... void getimageposition( in unsigned long coordtype, out long x, out long y ); para
meters coordtype specifies coordinates origin (for available constants refer to nsiaccessiblecoordinatetype).
...void getimagesize( out long width, out long height ); para
meters width the width of the image accessible.
nsIAuthInformation
on return, this para
meter should contain the domain entered by the user.
...on return, this para
meter should contain the password entered by the user.
...on return, this para
meter should contain the username entered by the user.
nsIAuthPrompt
boolean prompt( in wstring dialogtitle, in wstring text, in wstring passwordrealm, in pruint32 savepassword, in wstring defaulttext, out wstring result ); para
meters dialogtitle the title of the dialog.
... boolean promptpassword( in wstring dialogtitle, in wstring text, in wstring passwordrealm, in pruint32 savepassword, inout wstring pwd ); para
meters dialogtitle the title of the dialog.
... boolean promptusernameandpassword( in wstring dialogtitle, in wstring text, in wstring passwordrealm, in pruint32 savepassword, inout wstring user, inout wstring pwd ); para
meters dialogtitle the title of the dialog.
nsIAutoCompleteListener
inherits from: nsisupports last changed in gecko 1.7 method overview void onautocomplete(in nsiautocompleteresults result, in autocompletestatus status); void onstatus(in wstring statustext); attributes attribute type description param nsisupports private para
meter used by the autocomplete widget.
...void onautocomplete( in nsiautocompleteresults result, in nsiautocompletestatus status ); para
meters result an nsiautocompleteresults object containing the (partial) results of the autocomplete.
...void onstatus( in wstring statustext ); para
meters statustext ...
nsIAutoCompleteSearch
void startsearch( in astring searchstring, in astring searchparam, in nsiautocompleteresult previousresult, in nsiautocompleteobserver listener ); para
meters searchstring the string to search for.
... searchparam an extra para
meter.
...void stopsearch(); para
meters none.
nsIBidiKeyboard
(supported on: win32, mac, gtk2) note: prior to gecko 1.9 this method used a para
meter 'out prbool aisrtl' to return the value.
... boolean islangrtl(); para
meters none.
...(supported on: win32) void setlangfrombidilevel( in pruint8 alevel ); para
meters alevel if odd set the keyboard to right-to-left, if even set left-to-right.
nsICacheListener
the status para
meter equals ns_ok on success.
...void oncacheentryavailable( in nsicacheentrydescriptor descriptor, in nscacheaccessmode accessgranted, in nsresult status ); para
meters descriptor the cache entry descriptor.
...void oncacheentrydoomed( in nsresult status ); para
meters status the status is ns_ok when the entry was doomed, or ns_error_not_available when there is no such entry.
nsIClassInfo
nsisupports gethelperforlanguage( in pruint32 language ); para
meters language this para
meter selects the language mapping specific helper object to be returned.
... nsiprogramminglanguage defines language identifiers that may be passed for this para
meter.
... void getinterfaces( out pruint32 count, [array, size_is(count), retval] out nsiidptr array ); para
meters count the length of the resulting array.
nsIClipboardDragDropHookList
void addclipboarddragdrophooks( in nsiclipboarddragdrophooks ahooks ); para
meters ahooks implementation of hooks.
...nsisimpleenumerator gethookenumerator(); para
meters none.
...void removeclipboarddragdrophooks( in nsiclipboarddragdrophooks ahooks ); para
meters ahooks implementation of hooks.
nsICompositionStringSynthesizer
void appendclause(in unsigned long alength, in unsigned long aattribute); para
meters alength the length of appending clause.
... void setcaret(in unsigned long aoffset, in unsigned long alength); para
meters aoffset caret offset in the composition string.
... void setstring(in astring astring); para
meters astring new composition string.
nsIContentFrameMessageManager
para
meters name type description astr string the message to log.
... para
meters name type description aasciistring string ascii string to decode.
... para
meters name type description abase64data string binary data to encode as base64.
nsIContentPrefCallback2
void handlecompletion( in unsigned short reason ); para
meters reason one of the complete_* values indicating the manner in which the method completed.
...void handleerror( in nsresult error ); para
meters error a number in components.results describing the error.
...void handleresult( in nsicontentpref pref ); para
meters pref the retrieved preference.
nsIContentView
void scrollby( in float dxpx, in float dypx ); para
meters dxpx the number of css pixels to scroll on the x axis; specify a positive value to scroll to the right or a negative value to scroll to the left.
... void scrollto( in float xpx, in float ypx ); para
meters xpx the x coordinate to scroll to, in css pixels.
... void setscale( in float xscale, in float yscale ); para
meters xscale horizontal scaling factor; specify 1.0 to use the natural size of the content.
nsIDNSListener
void onlookupcomplete( in nsicancelable arequest, in nsidnsrecord arecord, in nsresult astatus ); para
meters arequest the value returned from asyncresolve.
...this para
meter is null if there was an error.
... astatus if the lookup failed, this para
meter gives the reason.
nsIDOMHTMLAudioElement
unsigned long long mozcurrentsampleoffset(); para
meters none.
...void mozsetup( in pruint32 channels, in pruint32 rate ); para
meters channels the number of audio channels the audio stream should use.
...unsigned long mozwriteaudio( in jsval data ); para
meters data the samples to write into the audio stream, specified either as a javascript array or as a numeric typed array.
nsIDOMOrientationEvent
the nsidomorientationevent interface describes the event that can be delivered to dom windows, providing information from the device's accelero
meter, allowing code to determine the orientation of the device.
...see accelero
meter values explained for details.
...void initprogressevent( in domstring eventtypearg, in boolean canbubblearg, in boolean cancelablearg, in double x, in double y, in double z ); para
meters eventtypearg the type of event.
nsIDOMStorageManager
void clearofflineapps(); para
meters none.
...nsidomstorage getlocalstorageforprincipal( nsiprincipal aprincipal, domstring adocumenturi ); para
meters aprincipal the principal for which to return the local storage object.
...long getusage( astring aownerdomain ); para
meters aownerdomain the domain to check.
nsIDOMXPathEvaluator
nsidomxpathexpression createexpression( in domstring expression, in nsidomxpathnsresolver resolver ); para
meters expression a string representing the xpath to be created.
...nsidomxpathnsresolver creatensresolver( in nsidomnode noderesolver ); para
meters noderesolver the node to be used as a context for name space resolution.
...nsisupports evaluate( in domstring expression, in nsidomnode contextnode, in nsidomxpathnsresolver resolver, in unsigned short type, in nsisupports result ); para
meters expression a string representing the xpath to be evaluated.
nsIDirectoryService
void init(); para
meters none.
...void registerprovider( in nsidirectoryserviceprovider prov ); para
meters prov the nsidirectoryserviceprovider to register with the service.
...void unregisterprovider( in nsidirectoryserviceprovider prov ); para
meters prov the nsidirectoryserviceprovider to unregister from the service.
nsIDroppedLinkHandler
boolean candroplink( in nsidomdragevent aevent, in prbool aallowsamedocument ); para
meters aevent a dragenter or dragover event.
... astring droplink( in nsidomdragevent aevent, out astring aname, [optional] in boolean adisallowinherit ); para
meters aevent a drop event.
... void droplinks( in nsidomdragevent aevent, [optional] in boolean adisallowinherit, [optional] out unsigned long acount, [retval, array, size_is(acount)] out nsidroppedlinkitem alinks ); para
meters aevent a drop event.
nsIEnvironment
void set( in astring aname, in astring avalue ); para
meters aname the variable name to set.
... astring get( in astring aname ); para
meters aname the variable name to retrieve.
... boolean exists( in astring aname ); para
meters aname the variable name to probe.
nsIEventTarget
void dispatch( in nsirunnable event, in unsigned long flags ); para
meters event the event to dispatch.
...boolean isoncurrentthread(); para
meters none.
...void postevent( in pleventptr aevent ); para
meters aevent the event to dispatched.
nsIFeedProcessor
void parseasync( in nsirequestobserver requestobserver, in nsiuri uri ); para
meters requestobserver the observer to be notified when parsing starts and stops.
... void parsefromstream( in nsiinputstream stream, in nsiuri uri ); para
meters stream pointer to the nsiinputstream from which to read and parse the feed.
... void parsefromstring( in astring str, in nsiuri uri ); para
meters str the string to parse as a feed.
nsIFeedTextConstruct
some extension elements also include "type" para
meters, and this interface could be used to represent those as well.
... nsidomdocumentfragment createdocumentfragment( in nsidomelement element ); para
meters element the element in which to create the new document fragment.
... astring plaintext(); para
meters none.
nsIFileView
void setdirectory( in nsifile directory ); para
meters directory the directory to be browsed.
...void setfilter( in astring filterstring ); para
meters filterstring the filter to be applied to the file list.
...void sort( in short sorttype, in boolean reversesort ); para
meters sorttype one of the sort* constants.
nsIGlobalHistory2
void adduri( in nsiuri auri, in boolean aredirect, in boolean atoplevel, in nsiuri areferrer ); para
meters auri the nsiuri of the page being added.
...boolean isvisited( in nsiuri auri ); para
meters auri the nsiuri of the page.
...void setpagetitle( in nsiuri auri, in astring atitle ); para
meters auri the nsiuri for which to set to the title.
nsIGlobalHistory3
void adddocumentredirect( in nsichannel aoldchannel, in nsichannel anewchannel, in print32 aflags, in boolean atoplevel ); para
meters aoldchannel anewchannel aflags flags to add.
...unsigned long geturigeckoflags( in nsiuri auri ); para
meters auri the nsiuri to get flags for.
...void seturigeckoflags( in nsiuri auri, in unsigned long aflags ); para
meters auri the nsiuri to add flags for.
nsIHTTPHeaderListener
this instance is passed in through {geturl,posturl}()'s streamlistener para
meter.
...void newresponseheader( in string headername, in string headervalue ); para
meters headername headervalue statusline() called once for the http response status line.
...void statusline( in string line ); para
meters line ...
nsIHttpActivityObserver
void observeactivity( in nsisupports ahttpchannel, in pruint32 aactivitytype, in pruint32 aactivitysubtype, in prtime atimestamp, in pruint64 aextrasizedata, in acstring aextrastringdata ); para
meters ahttpchannel the nsihttpchannel on which the activity occurred.
... interpreting activity data depending on the values of the aactivitytype and aactivitysubtype fields, the aextrasizedata and aextrastringdata para
meters take on different meanings.
... socket transport activity when the activity type is activity_type_socket_transport and the subtype is status_sending_to, the aextrasizedata para
meter contains the number of bytes sent.
nsIINIParser
nsiutf8stringenumerator getkeys( in autf8string asection ); para
meters asection the name of the section whose keys you wish to enumerate.
...nsiutf8stringenumerator getsections(); para
meters none.
...autf8string getstring( in autf8string asection, in autf8string akey ); para
meters asection the section containing the key whose value is to be returned.
nsIMicrosummary
void addobserver( in nsimicrosummaryobserver observer ); para
meters observer the microsummary observer to add.
...boolean equals( in nsimicrosummary aother ); para
meters aother the microsummary to compare against.
...void removeobserver( in nsimicrosummaryobserver observer ); para
meters observer the microsummary observer to remove.
nsIMicrosummaryObserver
void oncontentloaded( in nsimicrosummary microsummary ); para
meters microsummary the microsummary whose content has just been updated.
...void onelementappended( in nsimicrosummary microsummary ); para
meters microsummary the microsummary that has just been appended to the set.
...void onerror( in nsimicrosummary microsummary ); para
meters microsummary the microsumary which could not be updated.
nsIMicrosummarySet
void addobserver( in nsimicrosummaryobserver observer ); para
meters observer the microsummary observer to add.
...nsisimpleenumerator enumerate(); para
meters none.
...void removeobserver( in nsimicrosummaryobserver observer ); para
meters observer the microsummary observer to remove.
nsIMsgCustomColumnHandler
astring getsortstringforrow(in nsimsgdbhdr ahdr); para
meters ahdr the message's nsimsgdbhdr.
... unsigned long getsortlongforrow(in nsimsgdbhdr ahdr); para
meters ahdr the message's nsimsgdbhdr.
...isstring() boolean isstring(); para
meters none.
nsIMsgDBViewCommandUpdater
void updatecommandstatus(); para
meters none.
... void displaymessagechanged(in nsimsgfolder afolder, in astring asubject, in acstring akeywords ); para
meters afolder the folder containing selected message.
... updatenextmessageafterdelete() allows the backend to tell the front end to re-determine which message we should select after a delete or move void updatenextmessageafterdelete(); para
meters none.
nsIMsgSendLater
void sendunsentmessages(in nsimsgidentity identity) para
meters identity the nsimsgidentity to send unsent messages for removelistener() remove an event listener from this nsisendmsglater instance void removelistener(in nsimsgsendlaterlistener listener); para
meters listener the nsimsgsendlaterlistener to remove.
... void addlistener(in nsimsgsendlaterlistener listener); para
meters listener the nsimsgsendlaterlistener to add.
... nsimsgfolder getunsentmessagesfolder(in nsimsgidentity identity); para
meters identity the nsimsgidentity to get the folder for.
nsINavHistoryContainerResultNode
nsinavhistoryresultnode findnodebydetails( in autf8string auristring, in prtime atime, in long long aitemid, in boolean recursive ); para
meters auristring the uri attribute value to match on.
... nsinavhistoryresultnode getchild( in unsigned long aindex ); para
meters aindex the index into the child list of the node to fetch.
...unsigned long getchildindex( in nsinavhistoryresultnode anode ); para
meters anode the node whose index is to be returned.
nsIParentalControlsService
void log( in short aentrytype, in boolean aflag, in nsiuri asource, in nsifile atarget optional ); para
meters aentrytype the type of event to log.
... boolean requesturioverride( in nsiuri atarget, in nsiinterfacerequestor awindowcontext optional ); para
meters atarget the uri to be overridden.
... boolean requesturioverrides( in nsiarray atargets, in nsiinterfacerequestor awindowcontext optional ); para
meters atargets an array of nsiuri objects, each representing a uri for which an override is desired.
nsIParserUtils
astring converttoplaintext( in astring src, in unsigned long flags, in unsigned long wrapcol ); para
meters src the html source to parse (c++ callers are allowed but not required to use the same string for the return value.) flags conversion option flags defined in nsidocumentencoder.
... nsidomdocumentfragment parsefragment( in astring fragment, in unsigned long flags, in boolean isxml, in nsiuri baseuri, in nsidomelement element ); para
meters fragment the input markup.
... astring sanitize( in astring src, in unsigned long flags ); para
meters src the html source to parse (c++ callers are allowed but not required to use the same string for the return value).
nsIPrefBranch2
for example, if your observer is registered with addobserver("bar.", ...) on a branch with root "foo.", modifying the preference "foo.bar.baz" will trigger the observer, and adata para
meter will be "bar.baz".
... void addobserver( in string adomain, in nsiobserver aobserver, in boolean aholdweak ); para
meters adomain the preference on which to listen for changes.
... void removeobserver( in string adomain, in nsiobserver aobserver ); para
meters adomain the preference which is being observed for changes.
nsIPrinterEnumerator
methods displaypropertiesdlg() void displaypropertiesdlg( in wstring aprinter, in nsiprintsettings aprintsettings ); para
meters 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 ); para
meters acount returns number of printers returned.
...void initprintsettingsfromprinter( in wstring aprintername, in nsiprintsettings aprintsettings ); para
meters aprintername aprintsettings ...
nsIScriptError
void init( in wstring message, in wstring sourcename, in wstring sourceline, in pruint32 linenumber, in pruint32 columnnumber, in pruint32 flags, in string category ); para
meters message the text of the message to add to the log.
... void initwithwindowid( in wstring message, in wstring sourcename, in wstring sourceline, in pruint32 linenumber, in pruint32 columnnumber, in pruint32 flags, in string category, in unsigned long long innerwindowid ); para
meters message the text of the message to add to the log.
... autf8string tostring(); para
meters none.
nsIScriptableUnescapeHTML
nsidomdocumentfragment parsefragment( in astring fragment, in prbool isxml, in nsiuri baseuri, in nsidomelement element ); para
meters fragment a string of html or xml source to parse as a fragment.
...this para
meter is ignored if isxml is false.
... astring unescape( in astring src ); para
meters src the html string to convert into plain text.
nsISelection2
void getrangesforinterval( in nsidomnode beginnode, in print32 beginoffset, in nsidomnode endnode, in print32 endoffset, in prbool allowadjacent, out pruint32 resultcount, [retval, array, size_is(resultcount)] out nsidomrange results ); para
meters beginnode beginoffset endnode endoffset these four para
meters represent the range to compare against the selection.
... native code only!getrangesforintervalcomarray void getrangesforintervalcomarray( in nsidomnode beginnode, in print32 beginoffset, in nsidomnode endnode, in print32 endoffset, in prbool allowadjacent, in rangearray results ); para
meters beginnode beginoffset endnode endoffset these four para
meters represent the range to compare against the selection.
... void scrollintoview( in short aregion, in boolean aissynchronous, in short avpercent, in short ahpercent ); para
meters aregion the region inside the selection to scroll into view (see selection region constants defined in nsiselectioncontroller).
nsISimpleEnumerator
nsisupports getnext(); para
meters none.
... return value ns_ok if the call succeeded in returning a non-null value through the out para
meter.
...boolean hasmoreelements(); para
meters none.
nsISmsService
boolean hassupport(); void send(in domstring number, in domstring message, in long requestid, [optional] in unsigned long long processid); methods createsmsmessage() [implicit_jscontext] nsidommozsmsmessage createsmsmessage( in long id, in domstring delivery, in domstring sender, in domstring receiver, in domstring body, in jsval timestamp, in bool read ); para
meters id a number representing the id of the message.
... return value a smsmessage getnumberofmessagesfortext() unsigned short getnumberofmessagesfortext( in domstring text ); para
meters text a domstring text to check.
... send() void send( in domstring number, in domstring message, in long requestid, in unsigned long long processid optional ); para
meters number a domstring with a telephone number to send to.
nsIStreamListener
void ondataavailable( in nsirequest arequest, in nsisupports acontext, in nsiinputstream ainputstream, in unsigned long aoffset, in unsigned long acount ); para
meters arequest an nsirequest indicating the source of the data.
...in other words, the sum of all previous count para
meters.
... if that number is greater than or equal to 2^32, this para
meter will be pr_uint32_max (2^32 - 1).
nsIStyleSheetService
void loadandregistersheet( in nsiuri sheeturi, in unsigned long type ); para
meters sheeturi uri of the stylesheet to load and register.
... sheetregistered() check if a stylesheet has been registered boolean sheetregistered( in nsiuri sheeturi, in unsigned long type ); para
meters sheeturi uri of the stylesheet to check.
...void unregistersheet( in nsiuri sheeturi, in unsigned long type ); para
meters sheeturi uri of the stylesheet to unregister.
nsISupports
nsrefcnt addref(); para
meters none.
... void queryinterface( in nsiidref uuid, [iid_is(uuid),retval] out nsqiresult result ); para
meters uuid the uuid of the requested interface result the resulting interface pointer.
...nsrefcnt release(); para
meters none.
nsISyncJPAKE
void final( in acstring ab, in acstring agvb, in acstring arb, in acstring ahkdfinfo, out acstring aaes256key, out acstring ahmac256key ); para
meters ab schnorr signature value b, in hex representation.
...void round1( in acstring asignerid, out acstring agx1, out acstring agv1, out acstring ar1, out acstring agx2, out acstring agv2, out acstring ar2 ); para
meters asignerid string identifying the signer.
...void round2( in acstring apeerid, in acstring apin, in acstring agx3, in acstring agv3, in acstring ar3, in acstring agx4, in acstring agv4, in acstring ar4, out acstring aa, out acstring agva, out acstring ara ); para
meters apeerid string identifying the peer.
nsITaskbarTabPreview
void ensureregistration(); para
meters none.
... nativewindow gethwnd(); para
meters none.
... void move( in nsitaskbartabpreview anext ); para
meters anext the preview that this preview should be placed to the left of.
nsIURL
param autf8string para
meters specified after the ; in the url.
... ftp://foo.com/bar ftp://foo.com/ ftp://foo.com/bar/ ftp://foo.com/bar/b.html ftp://foo.com/bar/ http://foo.com/a.htm#i http://foo.com/b.htm http://foo.com/ ftp://foo.com/c.htm#i ftp://foo.com/c.htm ftp://foo.com/c.htm file:///a/b/c.html file:///d/e/c.html file:/// autf8string getcommonbasespec( in nsiuri auritocompare ); para
meters auritocompare a uri to compare with return value the common uri portion getrelativespec() this method takes a uri and returns a substring of this if it can be made relative to the uri passed in.
...autf8string getrelativespec( in nsiuri auritocompare ); para
meters auritocompare a uri to compare with return value the common uri portion see also code snippets:uri parsing nsistandardurl ...
nsIUpdateCheckListener
void oncheckcomplete( in nsixmlhttprequest request, [array, size_is(updatecount)] in nsiupdate updates, in unsigned long updatecount ); para
meters request the nsixmlhttprequest object handling the update check.
...void onerror( in nsixmlhttprequest request, in nsiupdate update ); para
meters request the nsixmlhttprequest object handling the update check.
...void onprogress( in nsixmlhttprequest request, in unsigned long position, in unsigned long totalsize ); para
meters request the nsixmlhttprequest object handling the update check.
nsIWindowsShellService
string getregistryentry( in long ahkeyconstant, in string asubkeyname, in string avaluename ); para
meters ahkeyconstant the starting key, using the constants defined above.
...void restorefilesettings( in boolean aforallusers ); para
meters aforallusers whether or not firefox should restore settings for all users on a multi-user system.
...void shortcutmaintenance(); para
meters none.
nsIXPCException
methods initialize() void initialize( in string amessage, in nsresult aresult, in string aname, in nsistackframe alocation, in nsisupports adata, in nsiexception ainner ); para
meters amessage aresult aname alocation adata ainner native code only!stealjsval xpcexjsval stealjsval(); para
meters none.
... return value native code only!stowjsval void stowjsval( in xpcexjscontextptr cx, in xpcexjsval val ); para
meters cx val remarks components.exception is a javascript constructor to create nsixpcexception objects.
... the call signature of the constructor is: components.exception(message, result, stack, data, inner) all para
meters are optional and the appropriate placeholder is 'unknown'.
nsIZipReaderCache
nsizipreader getinnerzip( in nsifile zipfile, in autf8string zipentry ); para
meters zipfile the zip file.
...note: if nsizipreader.close has been called on the shared nsizipreader, this method will return the closed nsizipreader nsizipreader getzip( in nsifile zipfile ); para
meters zipfile the zip file.
...void init( in unsigned long cachesize ); para
meters cachesize the number of released entries to maintain before beginning to throw some out.
Xptcall Porting Guide
these are discriminated unions describing the type and value of each para
meter of the target function.
... const nsxptmethodinfo* info, nsxptcminivariant* params) = 0; }; code that wishes to make use of this stubs functionality (such as xpconnect) implement a class which inherits from nsxptcstubbase and implements the getinterfaceinfo and callmethod to let the platform specific code know how to get interface information and how to dispatch methods once their para
meters have been pulled out of the platform specific calling frame.
...the stubs forward calls to a platform specific method that uses the interface information supplied by the overridden getinterfaceinfo to extract the para
meters and build an array of platform independent nsxptcminivariant structs which are in turn passed on to the overridden callmethod.
Declaring and Calling Functions
example: no input para
meters in this example, we declare the libc clock() function, which returns the elapsed time since system startup, then fetch and output that value.
... const clock = lib.declare("clock", ctypes.default_abi, ctypes.unsigned_long); console.log("clocks since startup: " + clock()); the clock() function requires no input para
meters; it simply returns an unsigned long.
... example: multiple input para
meters this example declares the libc asctime() function, which converts a time structure into a string.
Working with data
creating initialized cdata objects similarly, you can initialize cdata objects with specific values at the type of creation by specifying them as a para
meter when calling the ctype's constructor, like this: var mycdataobj = new type(value); var mycdataobj = type(value); if the size of the specified type isn't undefined, the specified value is converted to the given type.
... using strings with c functions you don't even need to convert strings when using them as input para
meters to c functions.
...it accepts as its input para
meters the high and low 32-bit values and returns a new 64-bit integer.
ABI
a calling convention is an implementation-level (low-level) scheme regarding how subroutines receive para
meters from their caller and how they revert.
... string tosource() para
meters none.
... string tostring(); para
meters none.
FunctionType
ctype functiontype( abi, returntype[, argtype1, ...] ); para
meters abi the abi type for the function; this is one of the abi constants.
...argtypen zero or more ctype objects indicating the types of each of the para
meters passed into the c function.
... para
meters func a pointer value or javascript function.
PointerType
ctype pointertype( type ); para
meters type specifies the type to which the pointer type points.
... exceptions thrown typeerror thrown if the para
meter isn't a ctype.
... bool isnull(); para
meters none.
StructType
ctype structtype( name[, fields] ); para
meters name the name of the structure.
... define( fields ); para
meters fields a field specification, as described above.
... cdata addressoffield( name ); para
meters name the name of the field whose address is to be returned.
ctypes
cdata cast( data, type ); para
meters data the cdata object to type cast.
...libnss3.dylib for nss3 on os x.) string libraryname( name ); para
meters name the name of the library.
... library open( libspec ); para
meters libspec the native library to open, specified as a pathname string.
Memory - Plugins
the npn_memalloc method has the following syntax: void *npn_memalloc (uint32 size); the size para
meter is an unsigned long integer that represents the amount of memory, in bytes, to allocate in the browser's memory space.
... void npn_memfree (void *ptr); the ptr para
meter represents a block of memory previously allocated using npn_memalloc.
... uint32 npn_memflush (uint32 size); the size para
meter is an unsigned long integer that represents the amount of memory, in bytes, to free in the browser's memory space.
Web Console Helpers - Firefox Developer Tools
the resulttype para
meter specifies the type of result to return; it can be an xpathresult constant, or a corresponding string: "number", "string", "bool", "node", or "nodes"; if not provided, any_type is used.
...if you don't supply a filename, the image file will be named with the following format: screen shot yyy-mm-dd at hh.mm.ss.png the command has the following optional para
meters: command type description --clipboard boolean when present, this para
meter will cause the screenshot to be copied to the clipboard.
...with this para
meter, even the parts of the webpage which are outside the current bounds of the window will be included in the screenshot.
The JavaScript input interpreter - Firefox Developer Tools
the resulttype para
meter specifies the type of result to return; it can be an xpathresult constant, or a corresponding string: "number", "string", "bool", "node", or "nodes"; if not provided, any_type is used.
...if you don't supply a filename, the image file will be named: screen shot yyy-mm-dd at hh.mm.ss.png the command has the following optional para
meters: command type description --clipboard boolean when present, this para
meter will cause the screenshot to be copied to the clipboard.
...with this para
meter, even the parts of the webpage which are outside the current bounds of the window will be included in the screenshot.
AudioListener.setOrientation() - Web APIs
it consists of two direction vectors: the front vector, defined by the three unitless para
meters x, y and z, describes the direction of the face of the listener, that is the direction the nose of the person is pointing towards.
... the up vector, defined by three unitless para
meters xup, yup and zup, describes the direction of the top of the listener's head.
... para
meters x the x value of the front vector of the listener.
AudioWorkletGlobalScope.registerProcessor - Web APIs
syntax audioworkletglobalscope.registerprocessor(name, processorctor); para
meters name a string representing the name under which the processor will be registered.
... typeerror the processorctor is not a callable constructor, or the para
meterdescriptors property of the constructor exists and doesn't return an array of audioparamdescriptor-based objects.
... // test-processor.js class testprocessor extends audioworkletprocessor { process (inputs, outputs, para
meters) { return true } } registerprocessor('test-processor', testprocessor) next, in our main script file we'll load the processor, create an instance of audioworkletnode — passing it the processor name that we used when calling registerprocessor — and connect it to an audio graph.
AudioWorkletNode - Web APIs
audioworkletnode.para
meters read only returns an audioparammap — a collection of audioparam objects.
...if the audioworkletprocessor has a static para
meterdescriptors getter, the audioparamdescriptor array returned from it is used to create audioparam objects on the audioworkletnode.
... // white-noise-processor.js class whitenoiseprocessor extends audioworkletprocessor { process (inputs, outputs, para
meters) { const output = outputs[0] output.foreach(channel => { for (let i = 0; i < channel.length; i++) { channel[i] = math.random() * 2 - 1 } }) return true } } registerprocessor('white-noise-processor', whitenoiseprocessor) next, in our main script file we'll load the processor, create an instance of audioworkletnode passing it the name of the processor, and ...
AudioWorkletProcessor() - Web APIs
var processor = new audioworkletprocessor(options); para
meters options an object that is passed as options para
meter to audioworkletnode constructor and passed through the structured clone algorithm.
... para
meterdata optional an object containing the initial values of custom audioparam objects on this node (in its para
meters property), with key being the name of a custom para
meter and value being its initial value.
... // test-processor.js class testprocessor extends audioworkletprocessor { constructor (options) { super() console.log(options.numberofinputs) console.log(options.processoroptions.someusefulvariable) } process (inputs, outputs, para
meters) { return true } } registerprocessor('test-processor', testprocessor) next, in our main script file we'll load the processor, create an instance of audioworkletnode passing it the name of the processor and options object.
BiquadFilterNode - Web APIs
the meaning of the different para
meters depending of the type of the filter (detune has the same meaning regardless, so isn't listed below) type description frequency q gain lowpass standard second-order resonant lowpass filter with 12db/octave rolloff.
...the larger this para
meter is, the sharper and larger the transition will be.
... biquadfilternode.getfrequencyresponse() from the current filter para
meter settings this method calculates the frequency response for frequencies specified in the provided array of frequencies.
BlobBuilder - Web APIs
void append( in arraybuffer data ); void append( in blob data ); void append( in string data, [optional] in string endings ); para
meters data the data to append to the blob being constructed.
... blob getblob( in domstring contenttype optional ); para
meters contenttype optional the mime type of the data to be returned in the blob.
... file getfile( in domstring name, [optional] in domstring contenttype ); para
meters name the file name.
CSSPrimitiveValue.getFloatValue() - Web APIs
syntax var floatvalue = cssprimitivevalue.getfloatvalue(unit); para
meters unittype an unsigned short representing the code for the unit type, in which the value should be returned.
... valid values are: constant description css_cm the value is a <length> in centi
meters.
... css_mm the value is a <length> in milli
meters.
CSSPrimitiveValue.setFloatValue() - Web APIs
syntax cssprimitivevalue.setfloatvalue(unittype, floatvalue); para
meters unittype an unsigned short representing the code for the unit type, in which the value should be returned.
... valid values are: constant description css_cm the value is a <length> in centi
meters.
... css_mm the value is a <length> in milli
meters.
CanvasRenderingContext2D.drawImage() - Web APIs
syntax void ctx.drawimage(image, dx, dy); void ctx.drawimage(image, dx, dy, dwidth, dheight); void ctx.drawimage(image, sx, sy, swidth, sheight, dx, dy, dwidth, dheight); para
meters image an element to draw into the context.
... for example, if you load an image and specify the optional size para
meters in its constructor, you will have to use the naturalwidth and naturalheight properties of the created instance to properly calculate things like crop and scale regions, rather than element.width and element.height.
...s/db/f374e9c6fc.jpg'; function drawimageactualsize() { // use the intrinsic size of image in css pixels for the canvas element canvas.width = this.naturalwidth; canvas.height = this.naturalheight; // will draw the image as 300x227, ignoring the custom size of 60x45 // given in the constructor ctx.drawimage(this, 0, 0); // to use the custom size we'll have to specify the scale para
meters // using the element's width and height properties - lets draw one // on top in the corner: ctx.drawimage(this, 0, 0, this.width, this.height); } result specifications specification status comment html living standardthe definition of 'canvasrenderingcontext2d: drawimage' in that specification.
CanvasRenderingContext2D.setTransform() - Web APIs
syntax ctx.settransform(a, b, c, d, e, f); ctx.settransform(matrix); the transformation matrix is described by: [acebdf001]\left[ \begin{array}{ccc} a & c & e \\ b & d & f \\ 0 & 0 & 1 \end{array} \right] para
meters settransform() has two types of para
meter that it can accept.
... the older type consists of several para
meters representing the individual components of the transformation matrix to set: a (m11) horizontal scaling.
... the newer type consists of a single para
meter, matrix, representing a 2d transformation matrix to set (technically, a dommatrixinit object; any object will do as long as it contains the above components as properties).
Applying styles and colors - Web APIs
// assigning transparent colors to stroke and fill style ctx.strokestyle = 'rgba(255, 0, 0, 0.5)'; ctx.fillstyle = 'rgba(255, 0, 0, 0.5)'; the rgba() function is similar to the rgb() function but it has one extra para
meter.
... the last para
meter sets the transparency value of this particular color.
...the para
meters represent two circles, one with its center at (x1, y1) and a radius of r1, and the other with its center at (x2, y2) with a radius of r2.
Console.table() - Web APIs
this function takes one mandatory argument data, which must be an array or an object, and one additional optional para
meter columns.
...you can use the optional columns para
meter to select a subset of columns to display: // an array of objects, logging only firstname 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"); console.table([john, jane, emily], ["firstname"]); sorting columns you can sort the...
... syntax console.table(data [, columns]); para
meters data the data to display.
Console.timeLog() - Web APIs
syntax console.timelog(label); para
meters label the name of the timer to log to the console.
... return if no label para
meter included: default: 1042ms if an existing label is included: timer name: 1242ms exceptions if there is no running timer, timelog() returns the warning: timer “default” doesn’t exist.
... if a label para
meter is included, but there is no corresponding timer: timer “timer name” doesn’t exist.
CredentialsContainer.get() - Web APIs
the get() method of the credentialscontainer interface returns a promise to a single credential instance that matches the provided para
meters.
... syntax var promise = credentialscontainer.get([options]) para
meters options optional an object of type credentialrequestoptions that contains options for the request.
... returns a promise that resolves with a credential instance that matches the provided para
meters.
Detecting device orientation - Web APIs
the first one is the deviceorientationevent, which is sent when the accelero
meter detects a change to the orientation of the device.
... processing orientation events all you need to do in order to begin receiving orientation change is to listen to the deviceorientation event: note: gyronorm.js is a polyfill for normalizing the accelero
meter and gyroscope data on mobile devices.
... processing motion events motion events are handled the same way as the orientation events except that they have their own event's name: devicemotion window.addeventlistener("devicemotion", handlemotion, true); what's really changed are the information provided within the devicemotionevent object passed as a para
meter of the handlemotion function.
DeviceProximityEvent - Web APIs
properties deviceproximityevent.max read only the maximum sensing distance the sensor is able to report, in centi
meters.
... deviceproximityevent.min read only the minimum sensing distance the sensor is able to report, in centi
meters.
... deviceproximityevent.value read only the current device proximity, in centi
meters.
Document.createAttribute() - Web APIs
the string given in para
meter is converted to lowercase.
... syntax attribute = document.createattribute(name) para
meters name is a string containing the name of the attribute.
... exceptions invalid_character_err if the para
meter contains invalid characters for xml attribute.
Document.createTreeWalker() - Web APIs
syntax document.createtreewalker(root, whattoshow[, filter[, entityreferenceexpansion]]); para
meters root a root node of this treewalker traversal.
... living standard removed the expandentityreferences para
meter.
... made the whattoshow and filter para
meters optionals.
Document.evaluate() - Web APIs
returns an xpathresult based on an xpath expression and other given para
meters.
... further optimization can be achieved by careful use of the context para
meter.
... these are supported values for the resulttype para
meter of the evaluate method: result type value description any_type 0 whatever type naturally results from the given expression.
Events and the DOM - Web APIs
html attribute <button onclick="alert('hello world!')"> the javascript code in the attribute is passed the event object via the event para
meter.
... dom element properties // assuming mybutton is a button element mybutton.onclick = function(event){alert('hello world')} the function can be defined to take an event para
meter.
... function print(evt) { // the evt para
meter is automatically assigned the event object // take care of the differences between console.log & alert console.log('print:', evt) alert(evt) } // any function should have an appropriate name, that's what called semantic table_el.onclick = print ...
EXT_texture_filter_anisotropic - Web APIs
constants ext.max_texture_max_anisotropy_ext this is the pname argument to the gl.getpara
meter() call, and it returns the maximum available anisotropy.
... ext.texture_max_anisotropy_ext this is the pname argument to the gl.gettexpara
meter() and gl.texpara
meterf() / gl.texpara
meteri() calls and sets the desired maximum anisotropy for a texture.
... examples var texture = gl.createtexture(); gl.bindtexture(gl.texture_2d, texture); var ext = ( gl.getextension('ext_texture_filter_anisotropic') || gl.getextension('moz_ext_texture_filter_anisotropic') || gl.getextension('webkit_ext_texture_filter_anisotropic') ); if (ext){ var max = gl.getpara
meter(ext.max_texture_max_anisotropy_ext); gl.texpara
meterf(gl.texture_2d, ext.texture_max_anisotropy_ext, max); } specifications specification status comment ext_texture_filter_anisotropicthe definition of 'ext_texture_filter_anisotropic' in that specification.
EffectTiming.easing - Web APIs
the first para
meter specifies the number of intervals in the function.
...the second para
meter, which is optional, specifies the point at which the change of values occur within the interval.
... if the second para
meter is omitted, it is given the value end.
Using Fetch - Web APIs
supplying request options the fetch() method can optionally accept a second para
meter, an init object that allows you to control a number of different settings: see fetch() for the full options available, and more details.
...request() constructor, and pass that in as a fetch() method argument: const myheaders = new headers(); const myrequest = new request('flowers.jpg', { method: 'get', headers: myheaders, mode: 'cors', cache: 'default', }); fetch(myrequest) .then(response => response.blob()) .then(myblob => { myimage.src = url.createobjecturl(myblob); }); request() accepts exactly the same para
meters as the fetch() method.
... request bodies can be set by passing body para
meters: const form = new formdata(document.getelementbyid('login-form')); fetch('/login', { method: 'post', body: form }); both request and response (and by extension the fetch() function), will try to intelligently determine the content type.
FileSystemDirectoryEntry.removeRecursively() - Web APIs
syntax filesystemdirectoryentry.removerecursively(successcallback[, errorcallback]); para
meters successcallback a function to call once the directory removal process has completed.
... the callback has no para
meters.
... errors if an error occurs and an errorcallback was specified, it gets called with a single para
meter: a fileerror object describing the error.
FileSystemDirectoryEntry - Web APIs
full support yesgetdirectory experimentalchrome full support 8edge full support 79firefox full support 50notes full support 50notes notes in firefox, the errorcallback's input para
meter is a domexception rather than a fileerror object.ie no support noopera no support nosafari full support 11.1webview android full support ≤37chrome android full support 18fi...
...refox android full support 50notes full support 50notes notes in firefox, the errorcallback's input para
meter is a domexception rather than a fileerror object.opera android no support nosafari ios full support 11.3samsung internet android full support yesgetfile experimentalchrome full support 8edge full support 79firefox full support 50notes full support 50notes notes in firefox, the errorcallb...
...ack's input para
meter is a domexception rather than a fileerror object.ie no support noopera no support nosafari full support 11.1webview android full support ≤37chrome android full support 18firefox android full support 50notes full support 50notes notes in firefox, the errorcallback's input para
meter is a domexception rather than a fileerror object.opera android no support nosafari ios full support ...
FileSystemEntry.getMetadata() - Web APIs
syntax filesystementry.getmetadata(successcallback[, errorcallback]); para
meters successcallback a function which is called when the copy operation is succesfully completed.
... receives a single input para
meter: a metadata object with information about the file.
...there's a single para
meter: a fileerror describing what went wrong.
FileSystemEntry.getParent() - Web APIs
syntax filesystementry.getparent(successcallback[, errorcallback]); para
meters successcallback a function which is called when the parent directory entry has been retrieved.
... the callback receives a single input para
meter: a filesystemdirectoryentry object representing the parent directory.
...there's a single para
meter: a fileerror describing what went wrong.
Geolocation.getCurrentPosition() - Web APIs
syntax navigator.geolocation.getcurrentposition(success[, error[, [options]]) para
meters success a callback function that takes a geolocationposition object as its sole input para
meter.
... error optional an optional callback function that takes a geolocationpositionerror object as its sole input para
meter.
... enablehighaccuracy: false | true examples var options = { enablehighaccuracy: true, timeout: 5000, maximumage: 0 }; function success(pos) { var crd = pos.coords; console.log('your current position is:'); console.log(`latitude : ${crd.latitude}`); console.log(`longitude: ${crd.longitude}`); console.log(`more or less ${crd.accuracy}
meters.`); } function error(err) { console.warn(`error(${err.code}): ${err.message}`); } navigator.geolocation.getcurrentposition(success, error, options); specifications specification status comment geolocation api recommendation initial specification.
Using the Geolocation API - Web APIs
a third, optional, para
meter is an options object where you can set the maximum age of the position returned, the time to wait for a request, and if you want high accuracy for the position.
...this is done using the watchposition() function, which has the same input para
meters as getcurrentposition().
... handling errors the error callback function, if provided when calling getcurrentposition() or watchposition(), expects a geolocationpositionerror object instance as its first para
meter.
Geolocation API - Web APIs
in both cases, the method call takes up to three arguments: a mandatory success callback: if the location retrieval is successful, the callback executes with a geolocationposition object as its only para
meter, providing access to the location data.
... an optional error callback: if the location retrieval is unsuccessful, the callback executes with a geolocationpositionerror object as its only para
meter, providing access information on what went wrong.
... dictionaries positionoptions represents an object containing options to pass in as a para
meter of geolocation.getcurrentposition() and geolocation.watchposition().
HTMLFormElement.requestSubmit() - Web APIs
syntax htmlformelement.requestsubmit(submitter); para
meters submitter optional the submit button whose attributes describe the method by which the form is to be submitted.
... if you omit the submitter para
meter, the form element itself is used as the submitter.
...otherwise, the form is submitted with no submitter para
meter, so it's submitted directly by the form itself.
HTMLImageElement - Web APIs
it accepts optional width and height para
meters.
... when called without para
meters, new image() is equivalent to calling document.createelement("img").
... recommendation a constructor (with 2 optional para
meters) has been added.
History.replaceState() - Web APIs
the history.replacestate() method modifies the current history entry, replacing it with the stateobj, title, and url passed in the method para
meters.
... syntax history.replacestate(stateobj, title, [url]) para
meters stateobj the state object is a javascript object which is associated with the history entry passed to the replacestate method.
... title most browsers currently ignore this para
meter, although they may use it in the future.
History - Web APIs
calling go() without para
meters or a value of 0 reloads the current page.
... note that all browsers but safari currently ignore the title para
meter.
... note that all browsers but safari currently ignore the title para
meter.
IDBCursor.continue() - Web APIs
the continue() method of the idbcursor interface advances the cursor to the next position along its direction, to the item whose key matches the optional key para
meter.
... syntax cursor.continue(key); para
meters key optional the key to position the cursor at.
... dataerror the key para
meter may have any of the following conditions: the key is not a valid key.
IDBCursor.continuePrimaryKey() - Web APIs
the continueprimarykey() method of the idbcursor interface advances the cursor to the to the item whose key matches the key para
meter as well as whose primary key matches the primary key para
meter.
... syntax cursor.continueprimarykey(key, primarykey); para
meters key the key to position the cursor at.
... dataerror the key para
meter may have any of the following conditions: the key is not a valid key.
IDBFactory.open() - Web APIs
syntax for the current standard: var idbopendbrequest = indexeddb.open(name); var idbopendbrequest = indexeddb.open(name, version); para
meters name the name of the database.
... experimental gecko options object options (version and storage) optional in gecko, since version 26, you can include a non-standard options object as a para
meter of idbfactory.open that contains the version number of the database, plus a storage value that specifies whether you want to use persistent or temporary storage.
... example example of calling open with the current specification's version para
meter: var request = window.indexeddb.open("todolist", 4); in the following code snippet, we make a request to open a database, and include handlers for the success and error cases.
IDBObjectStore.createIndex() - Web APIs
syntax var myidbindex = objectstore.createindex(indexname, keypath); var myidbindex = objectstore.createindex(indexname, keypath, objectpara
meters); para
meters indexname the name of the index to create.
... objectpara
meters optional an idbindexpara
meters object, which can include the following properties: attribute description unique if true, the index will not allow duplicate values for a single key.
... invalidaccesserror occurs if the provided key path is a sequence, and multientry is set to true in the objectpara
meters object.
IDBObjectStore.getAll() - Web APIs
the getall() method of the idbobjectstore interface returns an idbrequest object containing all objects in the object store matching the specified para
meter or all objects in the store if no para
meters are given.
... syntax var request = objectstore.getall(); var request = objectstore.getall(query); var request = objectstore.getall(query, count); para
meters query optional a key or idbkeyrange to be queried.
... a typeerror exception is thrown if the count para
meter is not between 0 and 232-1 included.
IDBObjectStore - Web APIs
idbobjectstore.getkey() returns an idbrequest object, and, in a separate thread retrieves and returns the record key for the object in the object stored matching the specified para
meter.
... idbobjectstore.getall() returns an idbrequest object retrieves all objects in the object store matching the specified para
meter or all objects in the store if no para
meters are given.
... idbobjectstore.getallkeys() returns an idbrequest object retrieves record keys for all objects in the object store matching the specified para
meter or all objects in the store if no para
meters are given.
IIRFilterNode - Web APIs
it lets the para
meters of the filter response be specified, so that it can be tuned as needed.
... the filter para
meters of biquad filters can be automated.
...it also has the following additional methods: getfrequencyresponse() uses the filter's current para
meter settings to calculate the response for frequencies specified in the provided array of frequencies.
KeyframeEffect.KeyframeEffect() - Web APIs
syntax var keyframes = new keyframeeffect(element, keyframeset, keyframeoptions); var keyframes = new keyframeeffect(sourcekeyframes); para
meters the first type of constructor (see above) creates a completely new keyframeeffect object instance.
... its para
meters are: element the dom element to be animated, or null.
...its para
meter is as follows: sourcekeyframes a keyframeeffect object that you want to clone.
LocalFileSystem - Web APIs
//taking care of the browser-specific prefix window.requestfilesystem = window.requestfilesystem || window.webkitrequestfilesystem; // the first para
meter defines the type of storage: persistent or temporary // next, set the size of space needed (in bytes) // initfs is the success callback // and the last one is the error callback // for denial of access and other errors.
... void requestfilesystem( in unsigned short type, in unsigned long long size, in filesystemcallback successcallback, in errorcallback errorcallback ); para
meters type the storage type of the file system.
... void resolvelocalfilesystemurl( in domstring url, in entrycallback successcallback, in optional errorcallback errorcallback ); para
meters url the url of a local file in the file system.
LocalFileSystemSync - Web APIs
example //taking care of the browser-specific prefix window.requestfilesystemsync = window.requestfilesystemsync || window.webkitrequestfilesystemsync; // the first para
meter defines the type of storage: persistent or temporary // next, set the size of space needed (in bytes) // initfs is the success callback // and the last one is the error callback // for denial of access and other errors.
...[ research ] filesystemsync requestfilesystemsync( in unsigned short type, in unsigned long long size ); para
meters type the storage type of the file system.
... void resolvelocalfilesystemurl( in domstring url ); para
meter url the url of a local file in the file system.
Location - Web APIs
location.search is a usvstring containing a '?' followed by the para
meters or "querystring" of the url.
... modern browsers provide urlsearchparams and url.searchparams to make it easy to parse out the para
meters from the querystring.
... methods location.assign() loads the resource at the url provided in para
meter.
LockManager.request() - Web APIs
the request() method of the lockmanager interface requests a lock object with para
meters specifying its name and characteristics.
... the mode property of the options para
meter may be either "exclusive" or "shared".
... syntax lockmanager.request(var promise = name[, {options}], callback) para
meters name an identifier for the lock you want to request.
MediaConfiguration - Web APIs
the mediaconfiguration mediacapabilities dictionary of the media capabilities api describes how media and audio files must be configured, or defined, to be passed as a para
meter of the mediacapabilities.encodinginfo() and mediacapabilities.encodinginfo() methods.
... a valid media decoding configuration, to be submitted as the para
meter for mediacapabilities.decodinginfo() method, has it's `type` set as: file: for plain playback file.
... a valid media encoding configuration, to be submitted as the para
meter for mediacapabilities.encodinginfo() method, has it's `type` set as: record: for recording media.
MediaRecorder() - Web APIs
the object can optionally be configured to record using a specific media container (file type), and, further, can specify the exact codec and codec configuration(s) to use by specifying the codecs para
meter.
... syntax var mediarecorder = new mediarecorder(stream[, options]); para
meters stream the mediastream that will be recorded.
... options optional a dictionary object that can contain the following properties: mimetype: a mime type specifying the format for the resulting media; you may simply specify the container format (the browser will select its preferred codecs for audio and/or video), or you may use the codecs para
meter and/or the profiles para
meter to provide detailed information about which codecs to use and how to configure them.
MediaSession.setActionHandler() - Web APIs
syntax navigator.mediasession.setactionhandler(type, callback) para
meters type a domstring representing an action type to listen for.
...the callback receives no input para
meters, and should not return a value.
... the action handler receives as input a single para
meter: an object conforming to the mediasessionactiondetails dictionary, which provides both the action type (so the same function can handle multiple action types), as well as data needed in order to perform the action.
NodeList.prototype.forEach() - Web APIs
the foreach() method of the nodelist interface calls the callback given in para
meter once for each value pair in the list, in insertion order.
... syntax somenodelist.foreach(callback[, thisarg]); para
meters callback a function to execute on each element of somenodelist.
... it accepts 3 para
meters: currentvalue the current element being processed in somenodelist.
OES_texture_float - Web APIs
extended methods this extension extends webglrenderingcontext.teximage2d() and webglrenderingcontext.texsubimage2d(): the type para
meter now accepts gl.float.
... the pixels para
meter now accepts an arraybufferview of type float32array.
...if you set the magnification or minification filter in the webglrenderingcontext.texpara
meter() method to one of gl.linear, gl.linear_mipmap_nearest, gl.nearest_mipmap_linear, or gl.linear_mipmap_linear, and use floating-point textures, the texture will be marked as incomplete.
Using the Payment Request API - Web APIs
this takes two mandatory para
meters and one option para
meter: methoddata — an object containing information concerning the payment provider, such as what payment methods are supported, etc.
... so for example, you could create a new paymentrequest instance like so: var request = new paymentrequest(buildsupportedpaymentmethoddata(), buildshoppingcartdetails()); the functions invoked inside the constructor simply return the required object para
meters: function buildsupportedpaymentmethoddata() { // example supported payment methods: return [{ supportedmethods: 'basic-card', data: { supportednetworks: ['visa', 'mastercard'], supportedtypes: ['debit', 'credit'] } }]; } function buildshoppingcartdetails() { // hardcoded for demo purposes: return { id: 'order-123', displayitems: [ { label...
...if you call .canmakepayment() multiple times, keep in mind that the first para
meter to the paymentrequest constructor should contain the same method names and data.
PerformanceObserverEntryList.getEntries() - Web APIs
the list is available in the observer's callback function (as the first para
meter in the callback).
... syntax general syntax: entries = list.getentries(); entries = list.getentries(performanceentryfilteroptions); specific usage: entries = list.getentries({name: "entry_name", entrytype: "mark"}); para
meters performanceentryfilteroptionsoptional is a performanceentryfilteroptions dictionary, having the following fields: "name", the name of a performance entry.
... this para
meter is currently not supported on chrome or opera.
PeriodicWave.PeriodicWave() - Web APIs
syntax var mywave = new periodicwave(context, options); para
meters inherits para
meters from the audionodeoptions dictionary.
... options optional a periodicwaveoptions dictionary object defining the properties you want the periodicwave to have (it also inherits the options defined in the periodicwaveconstraints dictionary.): real: a float32array containing the cosine terms that you want to use to form the wave (equivalent to the real para
meter of audiocontext.createperiodicwave).
... imag: a float32array containing the sine terms that you want to use to form the wave (equivalent to the imag para
meter of audiocontext.createperiodicwave).
Pointer Lock API - Web APIs
the values of the para
meters are the same as the difference between the values of mouseevent properties, screenx and screeny, which are stored in two subsequent mousemove events, enow and eprevious.
... in other words, the pointer lock para
meter movementx = enow.screenx - eprevious.screenx.
... unlocked state the para
meters movementx and movementy are valid regardless of the mouse lock state, and are available even when unlocked for convenience.
RTCIceTransport - Web APIs
getlocalpara
meters() returns a rtcicepara
meters object describing the ice para
meters established by a call to the rtcpeerconnection.setlocaldescription() method.
... returns null if para
meters have not yet been received.
... getremotepara
meters() returns a rtcicepara
meters object containing the ice para
meters for the remote device, as set by a call to rtcpeerconnection.setremotedescription().
RTCPeerConnection.createAnswer() - Web APIs
syntax apromise = rtcpeerconnection.createanswer([options]); rtcpeerconnection.createanswer(successcallback, failurecallback[, options]); para
meters options optional an object which contains options which customize the answer; this is based on the rtcansweroptions dictionary.
... deprecated para
meters in older code and documentation, you may see a callback-based version of this function.
...the para
meters for this form of createanswer() are described below, to aid in updating existing code.
RTCPeerConnection.createDataChannel() - Web APIs
syntax datachannel = rtcpeerconnection.createdatachannel(label[, options]); para
meters label a human-readable name for the channel.
... options optional an rtcdatachannelinit dictionary providing configuration options for the data channel rtcdatachannelinit dictionary the rtcdatachannelinit dictionary provides the following fields, any of which may be included in the object passed as the options para
meter in order to configure the data channel to suit your needs: ordered optional indicates whether or not messages sent on the rtcdatachannel are required to arrive at their destination in the same order in which they were sent (true), or if they're allowed to arrive out-of-order (false).
... return value a new rtcdatachannel object with the specified label, configured using the options specified by options if that para
meter is included; otherwise, the defaults listed above are established.
RTCPeerConnection.createOffer() - Web APIs
syntax apromise = mypeerconnection.createoffer([options]); mypeerconnection.createoffer(successcallback, failurecallback, [options]) para
meters options optional an rtcofferoptions dictionary providing options requested for the offer.
... deprecated para
meters in older code and documentation, you may see a callback-based version of this function.
...the para
meters for this form of createoffer() are described below, to aid in updating existing code.
RTCPeerConnection.getStats() - Web APIs
syntax promise = rtcpeerconnection.getstats(selector) para
meters selector optional a mediastreamtrack for which to gather statistics.
... promise = rtcpeerconnection.getstats(selector, successcallback, failurecallback) para
meters selector optional a mediastreamtrack for which to gather statistics.
...the function receives as input a single para
meter: an rtcstatsreport with the collected statistics.
ReadableStream.cancel() - Web APIs
the supplied reason para
meter will be given to the underlying source, which may or may not use it.
... syntax var promise = readablestream.cancel(reason); para
meters reason a domstring providing a human-readable reason for the cancellation.
... return value a promise, which fulfills with the value given in the reason para
meter.
ReadableStreamBYOBReader.cancel() - Web APIs
the supplied reason para
meter will be given to the underlying source, which may or may not use it.
... syntax var promise = readablestreambyobreader.cancel(reason); para
meters reason a domstring providing a human-readable reason for the cancellation.
... return value a promise, which fulfills with the value given in the reason para
meter.
Report - Web APIs
via the reports para
meter of the callback function passed into the reportingobserver() constructor upon creation of a new observer instance.
... the report details are displayed via the displayreports() fuction, which takes the observer callback's reports para
meter as its para
meter: function displayreports(reports) { const outputelem = document.queryselector('.output'); const list = document.createelement('ul'); outputelem.appendchild(list); for(let i = 0; i < reports.length; i++) { let listitem = document.createelement('li'); let textnode = document.createtextnode('report ' + (i + 1) + ', type: ' + reports[i].type); listitem.appendchi...
...(textnode); let innerlist = document.createelement('ul'); listitem.appendchild(innerlist); list.appendchild(listitem); for (let key in reports[i].body) { let innerlistitem = document.createelement('li'); let keyvalue = reports[i].body[key]; innerlistitem.textcontent = key + ': ' + keyvalue; innerlist.appendchild(innerlistitem); } } } the reports para
meter contains an array of all the reports in the observer's report queue.
Service Worker API - Web APIs
fetchevent the para
meter passed into the serviceworkerglobalscope.onfetch handler, fetchevent represents a fetch action that is dispatched on the serviceworkerglobalscope of a serviceworker.
... installevent the para
meter passed into the oninstall handler, the installevent interface represents an install action that is dispatched on the serviceworkerglobalscope of a serviceworker.
... notificationevent the para
meter passed into the onnotificationclick handler, the notificationevent interface represents a notification click event that is dispatched on the serviceworkerglobalscope of a serviceworker.
Using writable streams - Web APIs
the syntax skeleton looks like this: const stream = new writablestream({ start(controller) { }, write(chunk,controller) { }, close(controller) { }, abort(reason) { } }, { highwatermark, size() }); the constructor takes two objects as para
meters.
... write(chunk,controller) — a method that is called repeatedly every time a new chunk is ready to be written to the underlying sink (specified in the chunk para
meter).
... controllers as you'll have noticed when studying the writablestream() syntax skeleton, the start(), write(), and close() methods can optionally have a controller para
meter passed to them.
SubtleCrypto.encrypt() - Web APIs
it takes as its arguments a key to encrypt with, some algorithm-specific para
meters, and the data to encrypt (also known as "plaintext").
... syntax const result = crypto.subtle.encrypt(algorithm, key, data); para
meters algorithm is an object specifying the algorithm to be used and any extra para
meters if required: to use rsa-oaep, pass an rsaoaepparams object.
...algorithm para
meters of invalid sizes, or aes-gcm plaintext longer than 2³⁹−256 bytes).
SubtleCrypto.verify() - Web APIs
it takes as its arguments a key to verify the signature with, some algorithm-specific para
meters, the signature, and the original signed data.
... syntax const result = crypto.subtle.verify(algorithm, key, signature, data); para
meters algorithm is a domstring or object defining the algorithm to use, and for some algorithm choices, some extra para
meters.
... the values given for the extra para
meters must match those passed into the corresponding sign() call.
URL - Web APIs
search a usvstring indicating the url's para
meter string; if any para
meters are provided, this string includes all of them, beginning with the leading ?
... searchparams read only a urlsearchparams object which can be used to access the individual query para
meters found in search.
... usage notes the constructor takes a url para
meter, and an optional base para
meter to use as a base if the url para
meter is a relative url: const url = new url('../cats', 'http://www.example.com/dogs'); console.log(url.hostname); // "www.example.com" console.log(url.pathname); // "/cats" url properties can be set to construct the url: url.hash = 'tabby'; console.log(url.href); // "http://www.example.com/cats#tabby" urls are encoded accordin...
URLSearchParams.delete() - Web APIs
the delete() method of the urlsearchparams interface deletes the given search para
meter and all its associated values, from the list of all search para
meters.
... syntax urlsearchparams.delete(name) para
meters name the name of the para
meter to be deleted.
... return value void examples let url = new url('https://example.com?foo=1&bar=2&foo=3'); let params = new urlsearchparams(url.search.slice(1)); // delete the foo para
meter.
URLSearchParams.getAll() - Web APIs
the getall() method of the urlsearchparams interface returns all the values associated with a given search para
meter as an array.
... syntax urlsearchparams.getall(name) para
meters name the name of the para
meter to return.
... examples let url = new url('https://example.com?foo=1&bar=2'); let params = new urlsearchparams(url.search.slice(1)); //add a second foo para
meter.
USBDevice.controlTransferOut() - Web APIs
syntax var promise = usbdevice.controltransferout(setup, data) para
meters setup an object that sets options for .
... value: vender-specific request para
meters.
...not all commands require data; some commands can send data just through the value para
meter.
WebGLRenderingContext.activeTexture() - Web APIs
syntax void gl.activetexture(texture); para
meters texture the texture unit to make active.
... gl.getpara
meter(gl.max_combined_texture_image_units); to get the active texture, query the active_texture constant.
... gl.activetexture(gl.texture0); gl.getpara
meter(gl.active_texture); // returns "33984" (0x84c0, gl.texture0 enum value) specifications specification status comment webgl 1.0the definition of 'activetexture' in that specification.
WebGLRenderingContext.bufferData() - Web APIs
srcdata, usage); void gl.bufferdata(target, arraybufferview srcdata, usage); // webgl2: void gl.bufferdata(target, arraybufferview srcdata, usage, srcoffset, length); para
meters target a glenum specifying the binding point (target).
... examples using bufferdata var canvas = document.getelementbyid('canvas'); var gl = canvas.getcontext('webgl'); var buffer = gl.createbuffer(); gl.bindbuffer(gl.array_buffer, buffer); gl.bufferdata(gl.array_buffer, 1024, gl.static_draw); getting buffer information to check the current buffer usage and buffer size, use the webglrenderingcontext.getbufferpara
meter() method.
... gl.getbufferpara
meter(gl.array_buffer, gl.buffer_size); gl.getbufferpara
meter(gl.array_buffer, gl.buffer_usage); getting size of a typed array to calculate size para
meter for a typed array.
WebGLRenderingContext.getActiveAttrib() - Web APIs
syntax webglactiveinfo gl.getactiveattrib(program,index); para
meters program a webglprogram containing the vertex attribute.
...this value is an index 0 to n - 1 as returned by gl.getprogrampara
meter(program, gl.active_attributes).
... examples const numattribs = gl.getprogrampara
meter(program, gl.active_attributes); for (let i = 0; i < numattribs; ++i) { const info = gl.getactiveattrib(program, i); console.log('name:', info.name, 'type:', info.type, 'size:', info.size); } specifications specification status comment webgl 1.0the definition of 'getactiveattrib' in that specification.
WebGLRenderingContext.getUniformLocation() - Web APIs
syntax webgluniformlocation = webglrenderingcontext.getuniformlocation(program, name); para
meters program the webglprogram in which to locate the specified uniform variable.
... gl_invalid_value the program para
meter is not a value or object generated by webgl.
... gl_invalid_operation the program para
meter doesn't correspond to a glsl program generated by webgl, or the specified program hasn't been linked successfully.
WebGLRenderingContext.lineWidth() - Web APIs
syntax void gl.linewidth(width); para
meters width a glfloat specifying the width of rasterized lines.
... examples setting the line width: gl.linewidth(5); getting the line width: gl.getpara
meter(gl.line_width); getting the range of available widths.
... gl.getpara
meter(gl.aliased_line_width_range); specifications specification status comment webgl 1.0the definition of 'linewidth' in that specification.
WebGLRenderingContext.sampleCoverage() - Web APIs
the webglrenderingcontext.samplecoverage() method of the webgl api specifies multi-sample coverage para
meters for anti-aliasing effects.
... syntax void gl.samplecoverage(value, invert); para
meters value a glclampf which sets a single floating-point coverage value clamped to the range [0,1].
... gl.getpara
meter(gl.sample_coverage_value); // 0.5 gl.getpara
meter(gl.sample_coverage_invert); // false specifications specification status comment webgl 1.0the definition of 'samplecoverage' in that specification.
WebGLRenderingContext.stencilFunc() - Web APIs
syntax void gl.stencilfunc(func, ref, mask); para
meters func a glenum specifying the test function.
... gl.enable(gl.stencil_test); gl.stencilfunc(gl.less, 0, 0b1110011); to get the current stencil function, reference value, or other stencil information, query the following constants with getpara
meter().
... gl.getpara
meter(gl.stencil_func); gl.getpara
meter(gl.stencil_value_mask); gl.getpara
meter(gl.stencil_ref); gl.getpara
meter(gl.stencil_back_func); gl.getpara
meter(gl.stencil_back_value_mask); gl.getpara
meter(gl.stencil_back_ref); gl.getpara
meter(gl.stencil_bits); specifications specification status comment webgl 1.0the definition of 'stencilfunc' in that specification.
WebGLRenderingContext.stencilFuncSeparate() - Web APIs
syntax void gl.stencilfuncseparate(face, func, ref, mask); para
meters face a glenum specifying whether the front and/or back stencil state is updated.
... gl.enable(gl.stencil_test); gl.stencilfuncseparate(gl.front, gl.less, 0.2, 1110011); to get the current stencil function, reference value, or other stencil information, query the following constants with getpara
meter().
... gl.getpara
meter(gl.stencil_func); gl.getpara
meter(gl.stencil_value_mask); gl.getpara
meter(gl.stencil_ref); gl.getpara
meter(gl.stencil_back_func); gl.getpara
meter(gl.stencil_back_value_mask); gl.getpara
meter(gl.stencil_back_ref); gl.getpara
meter(gl.stencil_bits); specifications specification status comment webgl 1.0the definition of 'stencilfuncseparate' in that specification.
WebGLRenderingContext.stencilOp() - Web APIs
syntax void gl.stencilop(fail, zfail, zpass); para
meters all three para
meters accept all constants listed below.
... gl.enable(gl.stencil_test); gl.stencilop(gl.incr, gl.decr, gl.invert); to get the current information about stencil and depth pass or fail, query the following constants with getpara
meter().
... gl.getpara
meter(gl.stencil_fail); gl.getpara
meter(gl.stencil_pass_depth_pass); gl.getpara
meter(gl.stencil_pass_depth_fail); gl.getpara
meter(gl.stencil_back_fail); gl.getpara
meter(gl.stencil_back_pass_depth_pass); gl.getpara
meter(gl.stencil_back_pass_depth_fail); gl.getpara
meter(gl.stencil_bits); specifications specification status comment webgl 1.0the definition of 'stencilop' in that specification.
WebGLRenderingContext.stencilOpSeparate() - Web APIs
syntax void gl.stencilopseparate(face, fail, zfail, zpass); para
meters the fail, zfail and zpass para
meters accept all constants listed below.
... gl.enable(gl.stencil_test); gl.stencilopseparate(gl.front, gl.incr, gl.decr, gl.invert); to get the current information about stencil and depth pass or fail, query the following constants with getpara
meter().
... gl.getpara
meter(gl.stencil_fail); gl.getpara
meter(gl.stencil_pass_depth_pass); gl.getpara
meter(gl.stencil_pass_depth_fail); gl.getpara
meter(gl.stencil_back_fail); gl.getpara
meter(gl.stencil_back_pass_depth_pass); gl.getpara
meter(gl.stencil_back_pass_depth_fail); gl.getpara
meter(gl.stencil_bits); specifications specification status comment webgl 1.0the definition of 'stencilopseparate' in that specification.
WebGLRenderingContext.viewport() - Web APIs
syntax void gl.viewport(x, y, width, height); para
meters x a glint specifying the horizontal coordinate for the lower left corner of the viewport origin.
... gl.getpara
meter(gl.max_viewport_dims); // e.g.
... gl.getpara
meter(gl.viewport); // e.g.
A basic 2D WebGL animation example - Web APIs
function buildshaderprogram(shaderinfo) { let program = gl.createprogram(); shaderinfo.foreach(function(desc) { let shader = compileshader(desc.id, desc.type); if (shader) { gl.attachshader(program, shader); } }); gl.linkprogram(program) if (!gl.getprogrampara
meter(program, gl.link_status)) { console.log("error linking shader program:"); console.log(gl.getprograminfolog(program)); } return program; } first, gl.createprogram() is called to create a new, empty, glsl program.
... function compileshader(id, type) { let code = document.getelementbyid(id).firstchild.nodevalue; let shader = gl.createshader(type); gl.shadersource(shader, code); gl.compileshader(shader); if (!gl.getshaderpara
meter(shader, gl.compile_status)) { console.log(`error compiling ${type === gl.vertex_shader ?
... our requestanimationframe() callback receives as input a single para
meter, currenttime, which specifies the time at which the frame drawing began.
Signaling and video calling - Web APIs
the para
meter msgstring is a stringified json object.
... at this point, the two participants know which codecs and codec para
meters are to be used for this call.
...ndleremovetrackevent; mypeerconnection.oniceconnectionstatechange = handleiceconnectionstatechangeevent; mypeerconnection.onicegatheringstatechange = handleicegatheringstatechangeevent; mypeerconnection.onsignalingstatechange = handlesignalingstatechangeevent; } when using the rtcpeerconnection() constructor, we will specify an rtcconfiguration-compliant object providing configuration para
meters for the connection.
WebSocket.close() - Web APIs
syntax websocket.close(); para
meters code optional a numeric value indicating the status code explaining why the connection is being closed.
... if this para
meter is not specified, a default value of 1005 is assumed.
... note: in gecko, this method didn't support any para
meters prior to gecko 8.0 (firefox 8.0 / thunderbird 8.0 / seamonkey 2.5).
Using bounded reference spaces - Web APIs
imagine how uncomfortable it would feel if you moved 100
meters each time you took a step!
...nst startorientation = vec3.fromvalues(0, 0, 1.0); xrreferencespace = xrreferencespace.getoffsetreferencespace( new xrrigidtransform(startposition, startorientation)); xrsession.requestanimationframe(ondrawframe); } in this code, executed after the reference space has been created, we create an xrrigidtransform representing the transform that will move the viewpoint upward by 1.5
meters.
... this approximates human height, though it assumes we've previously transformed the coordinate system so that the value of each coordinate is no longer constrained to -1 to 1, while maintaining the definition that a value of 1 represents one
meter).
Advanced techniques: Creating and sequencing audio - Web APIs
each voice also has local controls, which allow you to manipulate the effects or para
meters particular to each technique we are using to create those voices.
...it takes two para
meters — the value you want to set the para
meter you are changing to (in this case the gain) and when you want to do this.
...one will change the tone and the other will change how the pulse modulates the first wave: <label for="hz">hz</label> <input name="hz" id="hz" type="range" min="660" max="1320" value="880" step="1" /> <label for="lfo">lfo</label> <input name="lfo" id="lfo" type="range" min="20" max="40" value="30" step="1" /> as before, we'll vary the para
meters when the range input values are changed by the user.
Migrating from webkitAudioContext - Web APIs
instead of setting a gain property directly on an audio source, you connect the source to a gain node and then control the gain using that node's gain para
meter.
... code using the activesourcecount attribute of the audiocontext, like this snippet: var src0 = context.createbuffersource(); var src1 = context.createbuffersource(); // set buffers and other para
meters...
...rguments[0]; var startargs = array.prototype.slice.call(arguments, 1); src.onended = function() { sources.splice(sources.indexof(src), 1); } sources.push(src); src.start.apply(src, startargs); } function activesources() { return sources.length; } var src0 = context.createbuffersource(); var src0 = context.createbuffersource(); // set buffers and other para
meters...
Using the Web Speech API - Web APIs
this accepts as para
meters the string we want to add, plus optionally a weight value that specifies the importance of this grammar in relation of other grammars available in the list (can be from 0 to 1 inclusive.) the added grammar is available in the list as a speechgrammar object instance.
...we first create a new speechsynthesisutterance() instance using its constructor — this is passed the text input's value as a para
meter.
...then, with all necessary preparations made, we start the utterance being spoken by invoking speechsynthesis.speak(), passing it the speechsynthesisutterance instance as a para
meter.
WindowOrWorkerGlobalScope.setTimeout() - Web APIs
syntax var timeoutid = scope.settimeout(function[, delay, arg1, arg2, ...]); var timeoutid = scope.settimeout(function[, delay]); var timeoutid = scope.settimeout(code[, delay]); para
meters function a function to be executed after the timer expires.
...if this para
meter is omitted, a value of 0 is used, meaning execute "immediately", or more accurately, the next event cycle.
... note: passing additional para
meters to the function in the first syntax does not work in internet explorer 9 and below.
Worker.prototype.postMessage() - Web APIs
this accepts a single para
meter, which is the data to send to the worker.
... syntax worker.postmessage(message, [transfer]); para
meters message the object to deliver to the worker; this will be in the data field in the event delivered to the dedicatedworkerglobalscope.onmessage handler.
... if the message para
meter is not provided, a typeerror will be thrown.
XMLHttpRequest() - Web APIs
syntax const request = new xmlhttprequest(); para
meters none.
... non-standard firefox syntax firefox 16 added a non-standard para
meter to the constructor that can enable anonymous mode (see bug 692677).
... const request = new xmlhttprequest(paramsdictionary); para
meters (non-standard) objpara
meters there are two flags you can set: mozanon boolean: setting this flag to true will cause the browser not to expose the origin and user credentials when fetching resources.
XMLHttpRequest.send() - Web APIs
send() accepts an optional para
meter which lets you specify the request's body; this is primarily used for requests such as put.
... if the request method is get or head, the body para
meter is ignored and the request body is set to null.
... syntax xmlhttprequest.send(body) para
meters body optional a body of data to be sent in the xhr request.
XRRigidTransform() - Web APIs
syntax let xrrigidtransform = new xrrigidtransform(position, orientation); para
meters position optional an object conforming to dompointinit which specifies the coordinates at which the point or object is located.
... these dimensions are specified in
meters.
... if this para
meter is left out or is not compatible with dompointinit, the position used is assumed to be {x: 0, y: 0, z: 0, w: 1}.
XRRigidTransform.orientation - Web APIs
if you specify a quaternion whose length is not exactly 1.0
meters, it will be normalized for you.
...as a unit quaternion, the length of the returned quaternion is always 1.0
meters.
... examples to create a reference space which is oriented to look straight up, positioned 2
meters off of ground level: xrreferencespace = refspace.getoffsetreferencespace( new xrrigidtransform({y: -2}, {x: 0.0, y: 1.0, z: 0.0, w: 1.0}); ); the unit quaternion specified here is [0.0, 1.0, 0.0, 1.0] to indicate that the object should be facing directly along the y axis.
XRSession.requestAnimationFrame() - Web APIs
the callback takes two para
meters as inputs: an xrframe describing the state of all tracked objects for the session, and a time stamp you can use to compute any animation updates needed.
... syntax requestid = xrsession.requestanimationframe(animationframecallback); para
meters animationframecallback a function which is called before the next repaint in order to allow you to update and render the xr scene based on elapsed time, animation, user input changes, and so forth.
... the callback receives as input two para
meters: time a domhighrestimestamp indicating the time offset at which the updated viewer state was received from the webxr device.
Color picker tool - CSS: Cascading Style Sheets
lor(); color.sethsv(h, s, v); color.a = a; return color; } function hslcolor(h, s, l) { var color = new color(); color.sethsl(h, s, l); return color; } function hslacolor(h, s, l, a) { var color = new color(); color.sethsl(h, s, l); color.a = a; return color; } color.prototype.copy = function copy(obj) { if(obj instanceof color !== true) { console.log('typeof para
meter not color'); return; } this.r = obj.r; this.g = obj.g; this.b = obj.b; this.a = obj.a; this.hue = obj.hue; this.saturation = obj.saturation; this.value = obj.value; this.format = '' + obj.format; this.lightness = obj.lightness; }; color.prototype.setformat = function setformat(format) { if (format === 'hsv') this.format = 'hsv'; if (format === 'hsl') this.form...
...pic, value) { if (this.subscribers[topic]) this.subscribers[topic](value); }; /*************************************************************************/ // set picker properties /*************************************************************************/ colorpicker.prototype.setcolor = function setcolor(color) { if(color instanceof color !== true) { console.log('typeof para
meter not color'); return; } if (color.format !== this.picker_mode) { color.setformat(this.picker_mode); color.updatehsx(); } this.color.copy(color); this.updatehuepicker(); this.updatepickerposition(); this.updatepickerbackground(); this.updatealphapicker(); this.updatealphagradient(); this.updatepreviewcolor(); this.notify('red', this.color.r); this.notify('green',...
... as you adjust the para
meters that define the color, it gets displayed in all three standard web css formats.
<color> - CSS: Cascading Style Sheets
in browsers that implement the level 4 standard, they accept the same para
meters and behave the same way.
...in browsers that implement the level 4 standard, they accept the same para
meters and behave the same way.
... .05) /* 5% opaque blue */ /* percentage value for alpha */ hsla(240 100% 50% / 5%) /* 5% opaque blue */ specifications specification status comment css color module level 4 working draft adds rebeccapurple, four- (#rgba) and eight-digit (#rrggbbaa) hexadecimal notations, rgba() and hsla() as aliases of rgb() and hsl() (both with identical para
meter syntax), space-separated function para
meters as an alternative to commas, percentages for alpha values, and angles for the hue component in hsl() colors.
url() - CSS: Cascading Style Sheets
the para
meter is an absolute url, a relative url, or a data uri.
... the url() function can be passed as a para
meter of another css functions, like the attr() function.
...dia/diamonds.png); src: url('fantasticfont.woff'); offset-path: url(#path); mask-image: url("masks.svg#mask1"); /* properties with fallbacks */ cursor: url(pointer.cur), pointer; /* associated short-hand properties */ background: url('https://mdn.mozillademos.org/files/16761/star.gif') bottom right repeat-x blue; border-image: url("/media/diamonds.png") 30 fill / 30px / 30px space; /* as a para
meter in another css function */ background-image: cross-fade(20% url(first.png), url(second.png)); mask-image: image(url(mask.png), skyblue, linear-gradient(rgba(0, 0, 0, 1.0), transparent); /* as part of a non-shorthand multiple value */ content: url(star.svg) url(star.svg) url(star.svg) url(star.svg) url(star.svg); /* at-rules */ @document url("https://www.example.com/") { ...
HTML attribute: max - HTML: Hypertext Markup Language
valid for the numeric input types, including the date, month, week, time, datetime-local, number and range types, and both the <progress> and <
meter> elements, the max attribute is a number that specifies the most positive value a form control to be considered valid.
...for the <
meter> element, the max attribute defines the upper numeric bound of the measured range.
... syntax for max values for other elements input type syntax example <progress> <number> <progress id="file" max="100" value="70"> 70% </progress> <
meter> <number> <
meter id="fuel" min="0" max="100" low="33" high="66" optimum="80" value="40"> at 40/100</
meter> ...
HTML attribute: min - HTML: Hypertext Markup Language
valid for the numeric input types, including the date, month, week, time, datetime-local, number and range types, and the <
meter> element, the min attribute is a number that specifies the most negative value a form control to be considered valid.
... for the <
meter> element, the min attribute defines the lower numeric bound of the measured range.
... syntax for min values for other elements input type syntax example <
meter> <number> <
meter id="fuel" min="0" max="100" low="33" high="66" optimum="80" value="40"> at 40/100</
meter> impact on step the value of min and step define what are valid values, even if the step attribute is not included, as step defaults to 0.
<input>: The Input (Form Input) element - HTML: Hypertext Markup Language
looks like a text input, but has validation para
meters and relevant keyboard in supporting browsers and devices with dynamic keyboards.
...looks like a text input, but has validation para
meters and relevant keyboard in supporting browsers and devices with dynamic keyboards.
...a selectmode para
meter is available to allow controlling how the existing content is affected.
itemprop - HTML: Hypertext Markup Language
<h1 itemscope> <data itemprop="product-id" value="9678aou879">the instigator 2000</data> </h1> for numeric data, the
meter element and its value attribute can be used.
... a
meter element <div itemscope itemtype="http://schema.org/product"> <span itemprop="name">panasonic white 60l refrigerator</span> <img src="panasonic-fridge-60l-white.jpg" alt=""> <div itemprop="aggregaterating" itemscope itemtype="http://schema.org/aggregaterating"> <
meter itemprop="ratingvalue" min=0 value=3.5 max=5>rated 3.5/5</
meter> (based on <span itemprop="reviewcount">11</span> customer reviews) </div> </div> similarly, for date- and time-related data, the time element and its datetime attribute can be used.
...element at the time the attribute is set if the element is an object element the value is the resulting url string that results from parsing the value of the element's data attribute relative to the node document of the element at the time the attribute is set if the element is a data element the value is the value of the element's value attribute if the element is a
meter element the value is the value of the element's value attribute if the element is a time element the value is the element's datetime value otherwise the value is the element's textcontent.
Equality comparisons and sameness - JavaScript
note that the distinction between these all have to do with their handling of primitives; none of them compares whether the para
meters are conceptually similar in structure.
... math.atan2 math.ceil math.pow math.round in some cases,it's possible for a -0 to be introduced into an expression as a return value of these methods even when no -0 exists as one of the para
meters.
... math.floor math.max math.min math.sin math.sqrt math.tan it's possible to get a -0 return value out of these methods in some cases where a -0 exists as one of the para
meters.
Working with objects - JavaScript
of course, the getter method must not expect a para
meter, while the setter method expects exactly one para
meter (the new value to set).
...this method's first para
meter is the object on which you want to define the getter or setter.
... the second para
meter is an object whose property names are the getter or setter names, and whose property values are objects for defining the getter or setter functions.
RangeError: radix must be an integer - JavaScript
the javascript exception "radix must be an integer at least 2 and no greater than 36" occurs when the optional radix para
meter of the number.prototype.tostring() or the bigint.prototype.tostring() method was specified and is not between 2 and 36.
... the optional radix para
meter of the number.prototype.tostring() or the bigint.prototype.tostring() method was specified.
... why is this para
meter's value limited to 36?
TypeError: variable "x" redeclares argument - JavaScript
the javascript strict mode-only exception "variable redeclares argument" occurs when the same variable name occurs as a function para
meter and is then redeclared using a var assignment in a function body again.
... the same variable name occurs as a function para
meter and is then redeclared using a var assignment in a function body again.
...in other cases, you might to rename either the function para
meter or the variable name.
JavaScript error reference - JavaScript
are deprecatedsyntaxerror: "use strict" not allowed in function with non-simple para
meterssyntaxerror: "x" is a reserved identifiersyntaxerror: json.parse: bad parsingsyntaxerror: malformed formal para
metersyntaxerror: unexpected tokensyntaxerror: using //@ to indicate sourceurl pragmas is deprecated.
...tifier starts immediately after numeric literalsyntaxerror: illegal charactersyntaxerror: invalid regular expression flag "x"syntaxerror: missing ) after argument listsyntaxerror: missing ) after conditionsyntaxerror: missing : after property idsyntaxerror: missing ; before statementsyntaxerror: missing = in const declarationsyntaxerror: missing ] after element listsyntaxerror: missing formal para
metersyntaxerror: missing name after .
... operatorsyntaxerror: missing variable namesyntaxerror: missing } after function bodysyntaxerror: missing } after property listsyntaxerror: redeclaration of formal para
meter "x"syntaxerror: return not in functionsyntaxerror: test for equality (==) mistyped as assignment (=)?syntaxerror: unterminated string literaltypeerror: "x" has no propertiestypeerror: "x" is (not) "y"typeerror: "x" is not a constructortypeerror: "x" is not a functiontypeerror: "x" is not a non-null objecttypeerror: "x" is read-onlytypeerror: 'x' is not iterabletypeerror: more arguments neededtypeerror: reduce of empty array with no initial valuetypeerror: x.prototype.y called on incompatible typetypeerror: can't access dead objecttypeerror: can't access property "x" of "y"typeerror: can't assign to property "x" on "y": not ...
Array() constructor - JavaScript
syntax [element0, element1, ..., elementn] new array(element0, element1[, ...[, elementn]]) new array(arraylength) para
meters elementn a javascript array is initialized with the given elements, except in the case where a single argument is passed to the array constructor and that argument is a number (see the arraylength para
meter below).
... examples array literal notation arrays can be created using the literal notation: let fruits = ['apple', 'banana']; console.log(fruits.length); // 2 console.log(fruits[0]); // "apple" array constructor with a single para
meter arrays can be created using a constructor with a single number para
meter.
... let fruits = new array(2); console.log(fruits.length); // 2 console.log(fruits[0]); // undefined array constructor with multiple para
meters if more than one argument is passed to the constructor, a new array with the given elements is created.
ArrayBuffer.prototype.slice() - JavaScript
syntax arraybuffer.slice(begin[, end]) para
meters begin zero-based byte index at which to begin slicing.
... description the slice() method copies up to, but not including, the byte indicated by the end para
meter.
... the range specified by the begin and end para
meters is clamped to the valid index range for the current array.
Date.prototype.setSeconds() - JavaScript
syntax dateobj.setseconds(secondsvalue[, msvalue]) versions prior to javascript 1.3 dateobj.setseconds(secondsvalue) para
meters secondsvalue an integer between 0 and 59, representing the seconds.
... description if you do not specify the msvalue para
meter, the value returned from the getmilliseconds() method is used.
... if a para
meter you specify is outside of the expected range, setseconds() attempts to update the date information in the date object accordingly.
Date.prototype.setUTCMonth() - JavaScript
syntax dateobj.setutcmonth(monthvalue[, dayvalue]) para
meters monthvalue an integer between 0 and 11, representing the months january through december.
... description if you do not specify the dayvalue para
meter, the value returned from the getutcdate() method is used.
... if a para
meter you specify is outside of the expected range, setutcmonth() attempts to update the date information in the date object accordingly.
Date.prototype.setUTCSeconds() - JavaScript
syntax dateobj.setutcseconds(secondsvalue[, msvalue]) para
meters secondsvalue an integer between 0 and 59, representing the seconds.
... description if you do not specify the msvalue para
meter, the value returned from the getutcmilliseconds() method is used.
... if a para
meter you specify is outside of the expected range, setutcseconds() attempts to update the date information in the date object accordingly.
Error - JavaScript
rangeerror creates an instance representing an error that occurs when a numeric variable or para
meter is outside of its valid range.
... typeerror creates an instance representing an error that occurs when a variable or para
meter is not of a valid type.
... urierror creates an instance representing an error that occurs when encodeuri() or decodeuri() are passed invalid para
meters.
Function() constructor - JavaScript
syntax new function([arg1 [, arg2 [, ...argn]] ,] functionbody) para
meters arg1, arg2, ...
... all arguments passed to the function are treated as the names of the identifiers of the para
meters in the function to be created, in the order in which they are passed.
... omitting an argument will result in the value of that para
meter being undefined.
Function.prototype.apply() - JavaScript
syntax func.apply(thisarg, [ argsarray]) para
meters thisarg the value of this provided for the call to func.
...you use an arguments array instead of a list of arguments (para
meters).
... you can also use arguments for the argsarray para
meter.
Math.fround() - JavaScript
syntax var singlefloat = math.fround(doublefloat); para
meters doublefloat a number.
... if the para
meter is of a different type, it will get converted to a number or to nan if it cannot be converted.
...// 1.5 math.fround(1.5) === 1.5; // true however, the number 1.337 cannot be precisely represented in the binary numeral system, so it differs in 32-bit and 64-bit: math.fround(1.337); // 1.3370000123977661 math.fround(1.337) === 1.337; // false 21502^150 is too big for a 32-bit float, so infinity is returned: 2 ** 150; // 1.42724769270596e+45 math.fround(2 ** 150); // infinity if the para
meter cannot be converted to a number, or it is not-a-number (nan), math.fround() will return nan: math.fround('abc'); // nan math.fround(nan); // nan specifications specification ecmascript (ecma-262)the definition of 'math.fround' in that specification.
Math.max() - JavaScript
the math.max() function returns the largest of the zero or more numbers given as input para
meters.
... syntax math.max([value1[, value2[, ...]]]) para
meters value1, value2, ...
...tmaxofarray(numarray) { return math.max.apply(null, numarray); } the new spread operator is a shorter way of writing the apply solution to get the maximum of an array: var arr = [1, 2, 3]; var max = math.max(...arr); however, both spread (...) and apply will either fail or return the wrong result if the array has too many elements, because they try to pass the array elements as function para
meters.
Object.create() - JavaScript
syntax object.create(proto, [propertiesobject]) para
meters proto the object which should be the prototype of the newly-created object.
... exceptions the proto para
meter has to be either null or an object excluding primitive wrapper objects.
...(note that the second para
meter // maps keys to *property descriptors*.) o = object.create(object.prototype, { // foo is a regular 'value property' foo: { writable: true, configurable: true, value: 'hello' }, // bar is a getter-and-setter (accessor) property bar: { configurable: false, get: function() { return 10; }, set: function(value) { console.log('setting `o.bar` to', value); } /...
Object.getPrototypeOf() - JavaScript
syntax object.getprototypeof(obj) para
meters obj the object whose prototype is to be returned.
... examples using getprototypeof var proto = {}; var obj = object.create(proto); object.getprototypeof(obj) === proto; // true non-object coercion in es5, it will throw a typeerror exception if the obj para
meter isn't an object.
... in es2015, the para
meter will be coerced to an object.
RegExp.prototype[@@replace]() - JavaScript
syntax regexp[symbol.replace](str, newsubstr|function) para
meters str a string that is a target of the replacement.
...a number of special replacement patterns are supported; see the specifying a string as a para
meter section in string.prototype.replace() page.
...the arguments supplied to this function are described in the specifying a function as a para
meter section in string.prototype.replace() page.
RegExp() constructor - JavaScript
syntax literal, constructor, and factory notations are possible: /pattern/flags new regexp(pattern[, flags]) regexp(pattern[, flags]) para
meters pattern the text of the regular expression.
... the literal notation's para
meters are enclosed between slashes and do not use quotation marks.
... the constructor function's para
meters are not enclosed between slashes but do use quotation marks.
String.prototype.match() - JavaScript
syntax str.match(regexp) para
meters regexp a regular expression object.
... if you don't give any para
meter and use the match() method directly, you will get an array with an empty string: [""].
...it barked.'; const capturingregex = /(?<animal>fox|cat) jumps over/; const found = paragraph.match(capturingregex); console.log(found.groups); // {animal: "fox"} using match() with no para
meter const str = "nothing will come of nothing."; str.match(); // returns [""] a non-regexp object as the para
meter when the regexp para
meter is a string or a number, it is implicitly converted to a regexp by using new regexp(regexp).
TypedArray.from() - JavaScript
syntax typedarray.from(source[, mapfn[, thisarg]]) where typedarray is one of: int8array uint8array uint8clampedarray int16array uint16array int32array uint32array float32array float64array bigint64array biguint64array para
meters source an array-like or iterable object to convert to a typed array.
... typedarray.from() has the optional para
meter mapfn, which allows you to execute a map() function on each element of the typed array (or subclass object) that is being created.
... when the source para
meter is an iterator, the typedarray.from() first collects all the values from the iterator, then creates an instance of thisarg using the count, then sets the values on the instance.
Digital audio concepts - Web media technologies
lossless encoder para
meters lossless encoders have a lot less room to manipulate the audio to improve the compression rate, given the need to be able to reproduce the original audio, which limits the number of options available to configure these encoders.
... these para
meters vary depending on the codec, but can include: specifying specific algorithms to use during particular phases of the encoding process para
meters for those algorithms to use, such as how much predictive depth to use when trying to model the audio the number of passes to make while analyzing the audio, or the number of times given algorithms should be run lossy encoder para
meters most codecs have input values you can tune to optimize the compression in various ways, either for size or for quality.
...some codecs have a number of values you can adjust (some of which may require a deep understanding of both psychoacoustics and of the codec's algorithms), and others offer a simple "quality" para
meter you can set, which automatically adjusts various properties of the algorithm.
OpenSearch description format
me> <description>[search engine full name and summary]</description> <inputencoding>[utf-8]</inputencoding> <image width="16" height="16" type="image/x-icon">[https://example.com/favicon.ico]</image> <url type="text/html" template="[searchurl]"> <param name="[key name]" value="{searchterms}"/> <!-- other params if you need them… --> <param name="[other key name]" value="[para
meter value]"/> </url> <url type="application/x-suggestions+json" template="[suggestionurl]"/> <moz:searchform>[https://example.com/search]</moz:searchform> </opensearchdescription> shortname a short name for the search engine.
...other supported dynamic search para
meters are described in opensearch 1.1 para
meters.
... param the para
meters that must be passed in along with the search query as key/value pairs.
end - SVG: Scalable Vector Graphics
a valid repeat value consists of an element id followed by a dot and the function repeat() with an integer value specifying the number of repetitions as para
meter.
... a valid accesskey-value consists of the function accesskey() with the character to be input as para
meter.
... a valid wallclock-sync-value consists of the function wallclock() with a time value as para
meter.
Scripting - SVG: Scalable Vector Graphics
you can pass an object that implements the handleevent interface as the second para
meter to these methods.
... setproperty has three para
meters the function svgelement.style.setproperty("fill-opacity", "0.0") throws a domexception - syntax err in mozilla.
...the function setproperty is defined as a function with three para
meters.
choose - XPath
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the choose function returns one of the specified objects based on a boolean para
meter.
... returns if the boolean para
meter is true, the first object is returned; otherwise, the second object is returned.
... note: all para
meters are evaluated, even the one that's not returned.
<xsl:with-param> - XSLT: Extensible Stylesheet Language Transformations
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the <xsl:with-param> element sets the value of a para
meter to be passed into a template.
... syntax <xsl:with-param name=name select=expression> template </xsl:with-param> required attributes name gives this para
meter a name.
... optional attributes select defines the value of the para
meter through an xpath expression.
Communicating using "postMessage" - Archive of obsolete content
handling message events in the content script to send a message from a content script, you use the postmessage function of the global self object: self.postmessage(contentscriptmessage); this takes a single para
meter, the message payload, which may be any json-serializable value.
... to receive a message from the add-on script, use self's on function: self.on("message", function(addonmessage) { // handle the message }); like all event-registration functions, this takes two para
meters: the name of the event, and the handler function.
clipboard - Archive of obsolete content
para
meters data : string the data to put on the clipboard.
... para
meters datatype : string retrieve the clipboard contents only if matching this type (optional).
request - Archive of obsolete content
the constructor takes a single para
meter options which is used to set several properties on the resulting request.
... para
meters options : object optional options: name type url string,url this is the url to which the request will be made.
self - Archive of obsolete content
para
meters name : string the filename to be read, relative to the package's data directory.
...so you can rewrite the above code like this: var mypanel = require("sdk/panel").panel({ contenturl: "./myfile.html" }); mypanel.show(); para
meters name : string the filename to be read, relative to the package's data directory.
system - Archive of obsolete content
var system = require("sdk/system"); system.exit(); para
meters code : integer to exit with failure, set this to 1.
...var desktoppath = require('sdk/system').pathfor('desk'); para
meters id : string the id of the special directory.
windows - Archive of obsolete content
para
meters options : object required options: name type url string string url to be opened in the new window.
... para
meters callback : function a function to be called when the window finishes its closing process.
content/worker - Archive of obsolete content
para
meters options : object required options: name type window object the content window to create javascript sandbox for communication with.
... para
meters data : number,string,json the data to send.
dev/panel - Archive of obsolete content
}); in the constructor definition there are a number of mandatory and optional para
meters for you to supply.
...any additional para
meters sent in the message become arguments to the method.
util/deprecate - Archive of obsolete content
para
meters fun : function the function to execute after the error message msg : string the error message to display returns * : the returned value from fun deprecateusage(msg) dump to the console the error message given, prefixed with "deprecated:", and print the stacktrace.
... para
meters msg : string the error message to display ...
util/object - Archive of obsolete content
ocation: "sf" }); b === a // true b.jetpacks // "are yes" b.foo // 50 b.bar // 6 b.location // "sf" // merge also translates property descriptors var c = { "type": "addon" }; var d = {}; object.defineproperty(d, "name", { value: "jetpacks", configurable: false }); merge(c, d); var props = object.getownpropertydescriptor(c, "name"); console.log(props.configurable); // true para
meters source : object the object that other properties are merged into.
... let { extend } = require("sdk/util/object"); var a = { alpha: "a" }; var b = { beta: "b" }; var g = { gamma: "g", alpha: null }; var x = extend(a, b, g); console.log(a); // { alpha: "a" } console.log(b); // { beta: "b" } console.log(g); // { gamma: "g", alpha: null } console.log(x); // { alpha: null, beta: "b", gamma: "g" } para
meters arguments : object n arguments that get merged into a new object.
Customizing the download progress bar - Archive of obsolete content
the myextension.css file will look something like this: richlistitem progress
meter { %ifdef xp_win min-height: 17px !important; %else %ifdef xp_macosx -moz-appearance: none !important; background-image: url(chrome://myextension/skin/progress_bg_osx.png) !important; %endif %endif } richlistitem .progress-bar { %ifdef xp_win -moz-appearance: none !important; background-image: url(chrome://myextension/skin/progress_fd_win.png) !important; %else %ifdef xp...
...we are specifying the height of the progress
meter on windows and a background image on mac.
Dialogs and Prompts - Archive of obsolete content
passing para
meter to a dialog and getting return values from it.
... // notice if user clicks cancel, window.arguments[0].out remains null // because this function is never called window.arguments[0].out = {name:document.getelementbyid("name").value, description:document.getelementbyid("description").value, enabled:document.getelementbyid("enabled").checked}; return true; } see also passing para
meter to a dialog and getting return values from it.
File I/O - Archive of obsolete content
so therefore for the first para
meter, file, you can pass an nsifile object or a string (such as a jar path) see: netutil.asyncfetch: components.utils.import("resource://gre/modules/netutil.jsm"); netutil.asyncfetch(file, function(inputstream, status) { if (!components.issuccesscode(status)) { // handle error!
... components.utils.import("resource://gre/modules/netutil.jsm"); components.utils.import("resource://gre/modules/fileutils.jsm"); // file is nsifile, data is a string // you can also optionally pass a flags para
meter here.
Preferences - Archive of obsolete content
here are the idl definitions: void getcomplexvalue(in string aprefname, in nsiidref atype, [iid_is(atype), retval] out nsqiresult avalue); void setcomplexvalue(in string aprefname, in nsiidref atype, in nsisupports avalue); as you can see, both of them take a para
meter, atype, which can have one of the following values (to be precise, you should pass components.interfaces.nsiwhatever instead of just nsiwhatever, which is undefined).
... if there's a value of the expected type in the default tree, it is returned (with the only exception being that calling getcomplexvalue() with atype para
meter specified as nsipreflocalizedstring, described above).
JavaScript Daemons Management - Archive of obsolete content
about the “callback arguments” polyfill in order to make this framework compatible with internet explorer (which doesn't support sending additional para
meters to timers' callback function, neither with settimeout() or setinterval()) we included the ie-specific compatibility code (commented code), which enables the html5 standard para
meters' passage functionality in that browser for both timers (polyfill), at the end of the daemon.js module.
...it will be called with three para
meters: index (the iterative index of each invocation), length (the number of total invocations assigned to the daemon - finite or infinity), and backwards (a boolean expressing whether the process is going backwards or not).
Chapter 3: Introduction to XUL—How to build a more intuitive UI - Archive of obsolete content
listing 21 shows an example of a thermo
meter-style progress bar, with its output shown in figure 17.
... <stack> <progress
meter mode="normal" value="50"/> <hbox align="center"> <label value="in progress…"/> </hbox> </stack> listing 21: overlapping with stack figure 17: progress bar tab use the tab element to divide multiple pages, as used in the properties dialog; use the tabbox element to group related elements.
Appendix C: Avoiding using eval in Add-ons - Archive of obsolete content
var response = xhr.responsetext; settimeout(function() { alert(response); }, 100); } alternative: use function.bind() introduced in javascript 1.8.5 function.bind is a new utility function that you may use to (partially) bind para
meters to functions.
... you don't have to care about para
meter naming (or changes in naming in future application versions) or short-hand/arrow functions.
Appendix D: Loading Scripts - Archive of obsolete content
flexibility: the evalinsandbox method accepts several para
meters, including the url, line number, and javascript version of the file from which the code being evaluated was extracted.
...this behavior can be reversed by setting the wantsxrays para
meter to false when constructing the sandbox.
Adding preferences to an extension - Archive of obsolete content
observe: function(subject, topic, data) { if (topic != "nspref:changed") { return; } switch(data) { case "symbol": this.tickersymbol = this.prefs.getcharpref("symbol").touppercase(); this.refreshinformation(); break; } }, the topic para
meter indicates what type of event occurred.
... once we've established that the event is in fact a preference change, we look at the data para
meter, which contains the name of the preference that changed.
MozOrientation - Archive of obsolete content
use evt.gamma, evt.beta, and evt.alpha // according to dev.w3.org/geo/api/spec-source-orientation } window.addeventlistener('deviceorientation', orientationhandler, false); window.addeventlistener('mozorientation', orientationhandler, false); example window.addeventlistener("mozorientation", dofunc, true); the example below simply displays the raw accelero
meter data in the browser window as the events arrive.
... notes this event is only dispatched if an accelero
meter is available on the current device.
JXON - Archive of obsolete content
jxon.build para
meters document the xml document to be converted into json format.
... jxon.unbuild para
meters objtree the javascript object from which you want to create your xml document.
MMgc - Archive of obsolete content
a gcobject is allocated with para
meterized operator new, passing the mmgc::gc object: class myobject : public mmgc::gcobject { ...
...to allocate a managed (gc) object, you must use the para
meterized form of operator new, and pass it a reference to the mmgc::gc object.
LIR - Archive of obsolete content
3 parami integer 32 bit load an int para
meter (register or stack location).
... 4 paramq quad 64 bit load a quad para
meter (register or stack location).
Bundles - Archive of obsolete content
webapp bundle in addition to passing simple command line para
meters, prism can use a zipped bundle package to install a webapp.
...how-to here is a simple way to build a basic web application bundle: create file called webapp.ini that contains something like: [para
meters] id=unique-app-id@unique-author-id.whatever name=webapp name uri=http://[the-url-what-you-want-to-connect-to]/ status=yes location=no sidebar=no navigation=no zip the file to [whatever].webapp double-click the webapp bundle or use prism -webapp [path-to-webapp] structure a bundle can contain the following files.
dirCreate - Archive of obsolete content
method of file object syntax int dircreate( filespecobject dirtocreate ); para
meters the dircreate method has the following para
meters: dirtocreate a filespecobject representing the pathname of the directory to create.
...description the input para
meter is a filespecobject that you have already created with the install object's getfolder method.
execute - Archive of obsolete content
method of file object syntax int execute ( filespecobject executablefile, [string apara
meters] ); para
meters the execute method has the following para
meters: executablefile a filespecobject representing the local file already on disk to be executed.
... apara
meters an optional para
meter string that is passed to the executable.
modDateChanged - Archive of obsolete content
method of file object syntax boolean moddatechanged (filespecobject asourcefolder, number anolddate); para
meters the moddatechanged method has the following para
meters: asourcefolder a filespecobject representing the file to be queried.
... description most often, the date passed in as the second para
meter in moddatechanged is the returned value from a moddate on a separate file, as in the following example, in which the dates of two files are compared.
windowsShortcut - Archive of obsolete content
method of file object syntax int windowsshortcut( folderobject atarget, folderobject ashortcutpath, string adescription, folderobject aworkingpath, string aparams, folderobject aicon, number aiconid); para
meters the windowsshortcut method has the following para
meters: atarget a filespecobject representing the absolute path (including filename) to file that the shortcut will be created for.
... aparams para
meters that atarget requires.
init - Archive of obsolete content
method of installversion object syntax init ( int maj, int min, int rev, int bld ); init ( string version ); para
meters the init method has the following para
meters: maj the major version number.
... when maj, min, rev, and bld are provided as para
meters, all four para
meters are required, but all of them can be zero.
toString - Archive of obsolete content
method of installversion object syntax string version = installversion.tostring ( initobj ); para
meters the tostring method has the following para
meter: initobj initobj is an installversion object whose init method has been called.
...the init() function can input the version number as a single string or as a series of para
meters representing the version numbers of the installation.
addDirectory - Archive of obsolete content
aldirspec, string relativelocalpath); public int adddirectory ( string registryname, string version, string xpisourcepath, object localdirspec, string relativelocalpath, boolean forceupdate); public int adddirectory ( string registryname, installversion version, string xpisourcepath, object localdirspec, string relativelocalpath, boolean forceupdate); para
meters the adddirectory method has the following para
meters: registryname the pathname in the client version registry for the root directory of the files that are to be installed.this para
meter can be an absolute pathname (beginning with a /) or a relative pathname, (not beginning with a slash).
...a relative pathname is appended to the registry name of the package as specified by the package para
meter to the initinstall method.this para
meter can also be null, in which case the xpisourcepath para
meter is used as a relative pathname.note that the registry pathname is not the location of the software on the computer; it is the location of information about the software inside the client version registry.
gestalt - Archive of obsolete content
method of install object syntax int gestalt ( string selector ); para
meters the gestalt method takes the following para
meters: selector the selector code for the information you want.
...the format depends on the select code specified in the selector para
meter.
getComponentFolder - Archive of obsolete content
method of install object syntax object getcomponentfolder (string registryname); object getcomponentfolder ( string registryname, string subdirectory); para
meters the getcomponentfolder method has these para
meters: registryname the pathname in the client version registry for the component whose installation directory is to be obtained.
...this para
meter is available in netscape 6 and may be case sensitive (depending on the operating system).
getWinProfile - Archive of obsolete content
method of install object syntax winprofile getwinprofile ( object folder, string file); para
meters the getwinprofile method has the following para
meters: folder an object representing a directory.
... file a relative pathname to an initialization file in the directory specified by the folder para
meter, such as "royal/royal.ini".
loadResources - Archive of obsolete content
method of install object syntax object loadresources( string xpipath ); para
meters the sole input para
meter for loadresources is a string representing the path to the properties file in the xpi in which the key/value pairs are defined.
...be aware that the para
meter specifies the file within the xpi and not on the file system, as the following example demonstrates.
setPackageFolder - Archive of obsolete content
method of install object syntax void setpackagefolder ( object folder); para
meters the setpackagefolder method has the following para
meter: folder an object representing a directory.
...when the package folder is set, it is used as the default for forms of addfile and other methods that have an optional localdirspec para
meter.
writeString - Archive of obsolete content
method of winprofile object syntax boolean writestring ( string section, string key, string value); para
meters the method has the following para
meters: section section in the file, such as "boot" or "drivers".
...to delete an existing value, supply null as the value para
meter.
createKey - Archive of obsolete content
method of winreg object syntax int createkey ( string subkey, string classname); para
meters the method has the following para
meters: subkey the key path to the appropriate location in the key hierarchy, such as "software\\netscape\\navigator\\mail".
...for information on this para
meter, see the description of regcreatekeyex in your windows api documentation.
Learn XPI Installer Scripting by Example - Archive of obsolete content
the initinstall method takes the following para
meters: the display name of the package, the name of the package as it appears in the client registry, and the version, which can be expressed as a number or as an installversion object.
...in this most common form of the registerchrome function (it can also be used to support the now-deprecatedmanifest.rdf style of installation archive), the three para
meters represent, in order, the chrome switch used to indicate what kind of software is being registered, the target destination of the software (e.g., the "chrome" folder in the example above), and the path within the xpi (or jar theme archive) where the contents.rdf file is located.
appendNotification - Archive of obsolete content
notification box events requires gecko 9.0(firefox 9.0 / thunderbird 9.0 / seamonkey 2.6) if you specify the eventcallback para
meter, it should be a javascript function that gets called when interesting things happen related to the notification box.
... this function receives as its only para
meter a string indicating what event occurred.
The Joy of XUL - Archive of obsolete content
by using xbl, developers can easily build custom user interface widgets such as progress
meters, fancy pop-up menus, and even toolbars and search forms.
...it parses ical components and provides a c api for manipulating the component properties, para
meters, and subcomponents.
XUL Reference - Archive of obsolete content
deck description dialog dialogheader dropmarker editor grid grippy groupbox hbox iframe image key keyset label listbox listcell listcol listcols listhead listheader listitem member menu menubar menuitem menulist menupopup menuseparator notification notificationbox observes overlay page panel param popupset preference preferences prefpane prefwindow progress
meter query queryset radio radiogroup resizer richlistbox richlistitem row rows rule scale script scrollbar scrollbox scrollcorner separator spacer spinbuttons splitter stack statusbar statusbarpanel stringbundle stringbundleset tab tabbrowser (firefox-only starting with firefox 3/gecko 1.9) tabbox tabpanel tabpanels tabs template textnode textbox textbox (firefox auto...
... dialogheader notification notificationbox menubar menu menuitem menuseparator menupopup panel tooltip popupset toolbar toolbarbutton toolbargrippy toolbaritem toolbarpalette toolbarseparator toolbarset toolbarspacer toolbarspring toolbox tabbox tabs tab tabpanels tabpanel groupbox caption separator spacer button checkbox colorpicker datepicker menulist progress
meter radio radiogroup scale splitter textbox textbox (firefox autocomplete) textbox (mozilla autocomplete) timepicker description label image listbox listitem listcell listcol listcols listhead listheader richlistbox richlistitem tree treecell treechildren treecol treecols treeitem treerow treeseparator box hbox vbox bbox deck stack grid columns column rows row ...
browser - Archive of obsolete content
(this one has no post data para
meter, see loaduriwithflags for a version that does) loaduri( uri, referrer, charset ) return type: no return value load a url into the document, with the given referrer and character set.
... (see nsiwebnavigation.loaduri() for details on the referrer and postdata para
meters.) reload() return type: no return value reloads the document in the browser element on which you call this method.
prefwindow - Archive of obsolete content
notes usage patterns opening/initializing a prefwindow note that you can define an initwithparams() function in your sub window - to handle para
meters passed using openwindow() in case the window was already open.
... initwithparams(window.arguments[0]); // we expect a single para
meter to be passed to the window } function initwithparams(aparams) { // this will also get called when an already open window is activated using openwindow() } closing a prefwindow sometimes you need to do things when the prefwindow is closed, such as things that can't (or shouldn't) be handled as preferences, such as saving passwords or updating sqlite data.
Monitoring plugins - Archive of obsolete content
below are a number of javascript snippets that would be useful to developers trying to use this feature: registration to register for runtime notifications with the observer service you must create a class with an observe method which receives 3 para
meters (subject, topic and data) as well as a register method that contains the following code: var observerservice = components.classes["@mozilla.org/observer-service;1"] .getservice (components.interfaces.nsiobserverservice); observerservice.addobserver(this, "experimental-notify-plugin-call", false); observing as discussed above, to specify what you want done when a...
... notification arrives your class must have an observe method, receiving 3 para
meters (subject, topic and data).
NPEvent - Archive of obsolete content
wparam 32 bit field for the windows event para
meter; para
meter value depends upon event type.
... lparam 32 bit field for the windows event para
meter; para
meter value depends upon event type.
NPN_Enumerate - Archive of obsolete content
syntax #include <npruntime.h> bool npn_enumerate(npp npp, npobject *npobj, npidentifier **identifiers, uint32_t *identifiercount); para
meters the function has the following para
meters: 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 para
meter of a successful call to npn_enumerate to release the array of string identifiers when it is no longer needed.
NPN_GetURL - Archive of obsolete content
syntax #include <npapi.h> nperror npn_geturl(npp instance, const char* url, const char* target); para
meters the function has the following para
meters: instance pointer to the current plug-in instance.
...if the target para
meter refers to the window or frame containing the current plug-in instance, the instance is destroyed and the plug-in may be unloaded.
NPN_GetURLNotify - Archive of obsolete content
syntax #include <npapi.h> nperror npn_geturlnotify(npp instance, const char* url, const char* target, void* notifydata); para
meters the function has the following para
meters: instance pointer to the current plug-in instance.
... if this function is called with a target para
meter value of _self or a parent to _self, this function should return nperr_invalid_param.
NPN_Invoke - Archive of obsolete content
syntax #include <npruntime.h> bool npn_invoke(npp npp, npobject *npobj, npidentifier methodname, const npvariant *args, uint32_t argcount, npvariant *result); para
meters the function has the following para
meters: npp the npp indicating which plugin wants to call the method on the object.
...the result of the method invocation is returned through an npvariant result para
meter.
NPN_InvokeDefault - Archive of obsolete content
syntax #include <npruntime.h> bool npn_invokedefault(npp npp, npobject *npobj, const npvariant *args, uint32_t argcount, npvariant *result); para
meters the function has the following para
meters: npp the npp indicating which plugin wants to call the default method on the object.
...the result of the method invocation is returned through an npvariant result para
meter.
NPP_Destroy - Archive of obsolete content
syntax #include <npapi.h> nperror npp_destroy(npp instance, npsaveddata **save); para
meters the function has the following para
meters: instance pointer to the plug-in instance to delete.
... use the optional save para
meter if you want to save and reuse some state or other information.
NPP_HandleEvent - Archive of obsolete content
syntax #include <npapi.h> int16 npp_handleevent(npp instance, void* event); para
meters the function has the following para
meters: instance pointer to the current plug-in instance.
...the plug-in either handles or ignores the event, depending on the value given in the event para
meter of this function.
NPP_New - Archive of obsolete content
syntax #include <npapi.h> nperror npp_new(npmimetype plugintype, npp instance, uint16 mode, int16 argc, char *argn[], char *argv[], npsaveddata *saved); para
meters the function has the following para
meters: plugintype pointer to the mime type for new plug-in instance.
... if instance data was saved from a previous instance of the plug-in by the npp_destroy function, it is returned in the saved para
meter for the current instance to use.
NPP_Print - Archive of obsolete content
syntax #include <npapi.h> void npp_print(npp instance, npprint* printinfo); para
meters the function has the following para
meters: instance pointer to the current plug-in instance.
...it uses the print mode set in the npprint structure in its printinfo para
meter to determine whether the plug-in should print as an embedded plug-in or as a full-page plug-in.
NPP_URLNotify - Archive of obsolete content
syntax #include <npapi.h> void npp_urlnotify(npp instance, const char* url, npreason reason, void* notifydata); para
meters the function has the following para
meters: instance pointer to the current plug-in instance.
... the para
meter notifydata is the plug-in-private value passed as an argument by a previous npn_geturlnotify() or npn_posturlnotify() call, and can be used as an identifier for the request.
NP_GetValue - Archive of obsolete content
syntax #include <npapi.h> nperror np_getvalue(void *instance, nppvariable variable, void *value); para
meters the function has the following para
meters: instance pointer to the current plug-in instance.
... instance para
meter is null because no instance has been created.
New in JavaScript 1.3 - Archive of obsolete content
changed functionality in javascript 1.3 changes to date to conform with ecma-262 new constructor date(year, month, day, [,hours [, minutes [, seconds [, milliseconds ]]]]) additional method para
meters: setmonth(month[, date]) sethours(hours[, min[, sec[, ms]]]) setminutes(min[, sec[, ms]]) setseconds(sec[, ms]) the length of an array (property length) is now an unsigned, 32-bit integer.
... array.prototype.slice(): in javascript 1.2, the splice method returned the element removed, if only one element was removed (howmany para
meter is 1).
Object.prototype.unwatch() - Archive of obsolete content
syntax obj.unwatch(prop) para
meters prop the name of a property of the object to stop watching.
... note: the reason for unwatch() to take the property name prop as its only para
meter is due to the "single handler allowing" behavior of the watch() method.
JavaObject - Archive of obsolete content
in addition, you can explicitly construct a javaobject using the object's java constructor with the packages keyword: new packages.javaclass(para
meterlist) javaclassis the fully-specified name of the object's java class.
... para
meters para
meterlist an optional list of para
meters, specified by the constructor of the java class.
Mozilla XForms Specials - Archive of obsolete content
(limitation tracked in bug 271724) optional para
meters in xpath functions optional para
meters in xpath functions are not supported, you will have to specify all para
meters when calling a function.
...instead of using digest('abc', 'sha-1') explicitly use the third para
meter (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.
Common causes of memory leaks in extensions - Extensions
"private" : "normal"); } }; services.obs.addobserver(myobserver, "private-browsing", /* ownsweak */ false); the ownsweak = false para
meter causes the observer service to use a strong reference to the observer object, which will cause it to hold onto the whole window.
....removeobserver(myobserver, "private-browsing"); services.obs.removeobserver(myobserver, "xpcom-shutdown"); } else { // do something with "private-browsing" } } }; services.obs.addobserver(myobserver, "private-browsing", false); services.obs.addobserver(myobserver, "xpcom-shutdown", false); finally, a lot of services other than nsiobserverservice accept nsiobserver para
meters or other interfaces and will keep strong references around.
Building up a basic demo with A-Frame - Game development
add it now: <a-box color="#0095dd" position="0 1 0" rotation="20 40 0"> </a-box> it contains a few para
meters already defined: color, position and rotation — these are fairly obvious, and define the base color of the cube, the position inside the 3d scene, and the rotation of the cube.
...for the cube y position) are unitless, and can basically be anything you deem suitable for your scene — mili
meters,
meters, feet, or miles — it's up to you.
Building up a basic demo with the PlayCanvas engine - Game development
for the camera z position) are unitless, and can basically be anything you deem suitable for your scene — mili
meters,
meters, feet, or miles — it's up to you.
...there's a special update event that we can use for that — add the following code just below the previous additions: var timer = 0; app.on("update", function (deltatime) { timer += deltatime; // code executed on every frame }); the callback takes the deltatime as the para
meter, so we have the relative time that has passed since the previous invocation of this update.
Implementing controls using the Gamepad API - Game development
both functions are fairly simple: connect: function(evt) { gamepadapi.controller = evt.gamepad; gamepadapi.turbo = true; console.log('gamepad connected.'); }, the connect() function takes the event as a para
meter and assigns the gamepad object to the gamepadapi.controller variable.
...it takes two para
meters — the button we want to listen to and the (optional) way to tell the game that holding the button is accepted.
Collision detection - Game development
the third, optional para
meter is the function executed when a collision occurs — ballhitbrick().
... thanks to phaser there are two para
meters passed to the function — the first one is the ball, which we explicitly defined in the collide method, and the second one is the single brick from the bricks group that the ball is colliding with.
Player paddle and controls - Game development
to enable collision detection between the paddle and ball, add the collide() method to the update() function as shown: function update() { game.physics.arcade.collide(ball, paddle); } the first para
meter is one of the objects we are interested in — the ball — and the second is the other one, the paddle.
...) line, and replace it with the following two lines: ball = game.add.sprite(game.world.width*0.5, game.world.height-25, 'ball'); ball.anchor.set(0.5); the velocity stays almost the same — we're just changing the second para
meter's value from 150 to -150, so the ball will start the game by moving up instead of down.
The score - Game development
var scoretext; var score = 0; adding score text to the game display now add this line at the end of the create() function: scoretext = game.add.text(5, 5, 'points: 0', { font: '18px arial', fill: '#0095dd' }); the text() method can take four para
meters: the x and y coordinates to draw the text at.
... the last para
meter looks very similar to css styling.
Positioning - Learn web development
the markup for such an example might look like so: <h1>sticky positioning</h1> <dl> <dt>a</dt> <dd>apple</dd> <dd>ant</dd> <dd>alti
meter</dd> <dd>airplane</dd> <dt>b</dt> <dd>bird</dd> <dd>buzzard</dd> <dd>bee</dd> <dd>banana</dd> <dd>beanstalk</dd> <dt>c</dt> <dd>calculator</dd> <dd>cane</dd> <dd>camera</dd> <dd>camel</dd> <dt>d</dt> <dd>duck</dd> <dd>dime</dd> <dd>dipstick</dd> <dd>drone</dd> <dt>e</dt> <dd>egg</dd> <dd>elephant</dd> <dd>egret</d...
...nd-color: black; color: white; padding: 10px; position: sticky; top: 0; left: 0; margin: 1em 0; } body { width: 500px; height: 1400px; margin: 0 auto; } dt { background-color: black; color: white; padding: 10px; position: sticky; top: 0; left: 0; margin: 1em 0; } <h1>sticky positioning</h1> <dl> <dt>a</dt> <dd>apple</dd> <dd>ant</dd> <dd>alti
meter</dd> <dd>airplane</dd> <dt>b</dt> <dd>bird</dd> <dd>buzzard</dd> <dd>bee</dd> <dd>banana</dd> <dd>beanstalk</dd> <dt>c</dt> <dd>calculator</dd> <dd>cane</dd> <dd>camera</dd> <dd>camel</dd> <dt>d</dt> <dd>duck</dd> <dd>dime</dd> <dd>dipstick</dd> <dd>drone</dd> <dt>e</dt> <dd>egg</dd> <dd>elephant</dd> <dd>egret</d...
From object to iframe — other embedding technologies - Learn web development
unsandboxed content can do way too much (executing javascript, submitting forms, popup windows, etc.) by default, you should impose all available restrictions by using the sandbox attribute with no para
meters, as shown in our previous example.
...n content, this is the kind of information you'll need, at a minimum: <embed> <object> url of the embedded content src data accurate media type of the embedded content type type height and width (in css pixels) of the box controlled by the plugin height width height width names and values, to feed the plugin as para
meters ad hoc attributes with those names and values single-tag <param> elements, contained within <object> independent html content as fallback for an unavailable resource not supported (<noembed> is obsolete) contained within <object>, after <param> elements note: <object> requires a data attribute, a type attribute, or both.
Introduction to events - Learn web development
inside the addeventlistener() function, we specify two para
meters — the name of the event we want to register this handler for, and the code that comprises the handler function we want to run in response to it.
... event objects sometimes inside an event handler function, you'll see a para
meter specified with a name such as event, evt, or simply e.
Test your skills: Functions - Learn web development
the three improvements we want you to make are: refactor the code that generates the random number into a separate function called random(), which takes as para
meters two generic bounds that the random number should be between, and returns the result.
... update the choosename() function so that it makes use of the random number function, takes the array to choose from as a para
meter (making it more flexible), and returns the result.
Arrays - Learn web development
in its simplest form, this takes a single para
meter, the character you want to separate the string at, and returns the substrings between the separator as items in an array.
...tostring() is arguably simpler than join() as it doesn't take a para
meter, but more limiting.
Object-oriented JavaScript for beginners - Learn web development
let's look at the constructor calls again: let person1 = new person('bob'); let person2 = new person('sarah'); in each case, the new keyword is used to tell the browser we want to create a new object instance, followed by the function name with its required para
meters contained in parentheses, and the result is stored in a variable — very similar to how a standard function is called.
...i\'m ' + this.name + '.'); }; you can also pass an object literal to the object() constructor as a para
meter, to prefill it with properties/methods.
Server-side web frameworks - Learn web development
an http get request to get files or data from the server may encode what data is required in url para
meters or within the url structure.
...an http get), get or post para
meters, cookie and session data, etc.
Getting started with React - Learn web development
uld look something like this: reactdom.render(<app subject="clarice" />, document.getelementbyid('root')); back in app.js, let's revisit the app function itself, which reads like this (with the return statement shortened for brevity): function app() { const subject = "react"; return ( // return statement ); } change the signature of the app function so that it accepts props as a para
meter, and delete the subject const.
... just like any other function para
meter, you can put props in a console.log() to print it to your browser's console.
Using Vue computed properties - Learn web development
this method should take one para
meter: the todo item id.
... we want to find the item with the matching id and update its done status to be the opposite of its current status: updatedonestatus(todoid) { const todotoupdate = this.todoitems.find(item => item.id === todoid) todotoupdate.done = !todotoupdate.done } we want to run this method whenever a todoitem emits a checkbox-changed event, and pass in its item.id as the para
meter.
Testopia
api users take note: positional para
meters are now deprecated.
...though all attempts have been made to provide continuing support for positional para
meters, please be aware that some api calls may fail until you make this change.
Creating MozSearch plugins
a mozsearch search plugin is an xml file that describes the search engine, its url, and the para
meters that need to be passed to that url.
...ccj4xgml493ug21zd%2badaxh0wlm4a9mzpxjkjiiawtar5pqmalacabquulttbgccagcnnzgabbgamj5thwgvjlaaaaabjru5erkjggg%3d%3d</image> <url type="text/html" method="get" template="http://developer.mozilla.org/en/docs/special:search?search={searchterms}"/> <searchform>http://developer.mozilla.org/en/docs/special:search</searchform> </searchplugin> notice in this case that instead of using <param> to define para
meters to the search engine, they're simply embedded inside the template url.
Debugging on Windows
command line para
meters and environment variables vc++ 6.0: to change or set the command line options, go to project > settings..., debug tab and select general from the drop down list.
... you need to make sure this configure para
meter is set: --enable-debugger-info-modules=yes you can also choose to include or exclude specific modules.
Interface Compatibility
changes should not be taken lightly, however: especially if a change is likely to affect many extensions, the change should try to maintain backwards compatibility by using optional/default para
meters or other javascript techniques.
...this may involve using javascript modules, passing named para
meters using objects, or other similar techniques.
Commenting IDL for better documentation
if an interface is used as a para
meter or as the type of the value returned by a method, please use the full name of the interface in the description of the method.
... @param para
meter description every para
meter of a method should be documented, only use the para
meter name, leave out things like [in]/[out].
Error codes returned by Mozilla APIs
ns_error_factory_not_loaded (0x800401f8) ns_error_factory_exists (0xc1f30100) ns_error_factory_no_signature_support (0xc1f30101) ns_error_proxy_invalid_in_para
meter (0x80010010) ns_error_proxy_invalid_out_para
meter (0x80010011) ns_error_cannot_convert_data (0x80460001) ns_error_object_is_immutable (0x80460002) ns_error_loss_of_significant_data (0x80460003) ns_error_illegal_during_shutdown (0x8046001e) many operations cannot be performed once the application is being shutdown.
...805b0034) ns_error_dom_security_err (0x805303e8) ns_error_dom_secman_err (0x805303e9) ns_error_dom_wrong_type_err (0x805303ea) ns_error_dom_not_object_err (0x805303eb) ns_error_dom_not_xpc_object_err (0x805303ec) ns_error_dom_not_number_err (0x805303ed) ns_error_dom_not_boolean_err (0x805303ee) ns_error_dom_not_function_err (0x805303ef) ns_error_dom_too_few_para
meters_err (0x805303f0) ns_error_dom_bad_document_domain (0x805303f1) ns_error_dom_prop_access_denied (0x805303f2) ns_error_dom_xpconnect_access_denied (0x805303f3) ns_error_dom_bad_uri (0x805303f4) ns_error_dom_retval_undefined (0x805303f5) ns_error_dom_quota_reached (0x805303f6) an attempt was made to add data into the local or global storage for a given domain that would exc...
Multiple Firefox profiles
set the "command" text field to target the executable file, likely "/usr/bin/firefox", and add the -p para
meter.
...to do this: set the "command" text field to target the executable file, likely "/usr/bin/firefox", and add the -p profile_name para
meter, replacing "profile_name" with the specific profile.
Storage access policy: Block cookies from trackers
on the social media website, the network annotates the advertisement landing page url with a query para
meter that signals that the visit was the result of a click on an advertisement.
... on your website, the display network’s tag checks the url query para
meters and saves any ad tracking para
meters to first-party storage.
HTMLIFrameElement.executeScript()
para
meters script the script to be executed.
...http://example.com/index.html note: the options para
meter does not currently seem to have much effect.
How to implement a custom autocomplete search component
pletesearch} */ function providerautocompletesearch() { } providerautocompletesearch.prototype = { classid: class_id, classdescription : class_name, contractid : contract_id, /** * searches for a given string and notifies a listener (either synchronously * or asynchronously) of the result * * @param searchstring the string to search for * @param searchparam an extra para
meter * @param previousresult a previous result to use for faster searchinig * @param listener the listener to notify when the search is complete */ startsearch: function(searchstring, searchparam, previousresult, listener) { var results = ['mary', 'john']; var autocomplete_result = new providerautocompleteresult(searchstring, ci.nsiautocompleteresult.result_success, 0, "", r...
...w components.results.ns_error_no_interface; return this; } }; // implements nsiautocompletesearch function simpleautocompletesearch() { } simpleautocompletesearch.prototype = { /* * search for a given string and notify a listener (either synchronously * or asynchronously) of the result * * @param searchstring - the string to search for * @param searchparam - an extra para
meter * @param previousresult - a previous result to use for faster searchinig * @param listener - a listener to notify when the search is complete */ startsearch: function(searchstring, searchparam, result, listener) { // this autocomplete source assumes the developer attached a json string // to the the "autocompletesearchparam" attribute or "searchparam" property // of the <te...
JavaScript Tips
you do not have to query interfaces to compare objects, nor to pass objects as para
meters (this is different from c++, where you do have to query interfaces in both cases).
...aiid) { if (aiid.equals(components.interfaces.nsiobserver) || aiid.equals(components.interfaces.nsisupportsweakreference) || aiid.equals(components.interfaces.nsisupports)) return this; throw components.results.ns_nointerface; }, observe: function observe(asubject, atopic, astate) { } } when declaring xpcom methods, try to use the same names for method para
meters as are used in the interface definition.
AddonInstall
void addlistener( in installlistener listener ) para
meters listener the installlistener to add.
... void removelistener( in installlistener listener ) para
meters listener the installlistener to remove ...
TypeListener
void ontypeadded( in addontype type ) para
meters type the addontype that is being added needsrestart true if an application restart is necessary for the change to take effect ontyperemoved() called when an add-on type has been removed.
... void ontyperemoved( in addontype type, ) para
meters type the addontype that has been removed ...
UpdateCheckListener
void onupdatecheckcomplete( in updateinfo results[] ) para
meters results an array of updateinfo objects representing the available add-on versions onupdatecheckerror() called when the update check fails.
... void onupdatecheckerror( in integer status ) para
meters status a value representing the type of failure; see the range of possible values.
FxAccountsProfileClient.jsm
fxaccountsprofileclient fxaccountsprofileclient( object options string serverurl, string token ); para
meters serverurl - firefox profile server url.
...para
meters none return value promise resolves: object - successful response from the '/profile' endpoint.
ISO8601DateUtils.jsm
string create( adate ); para
meters adate a javascript date object to translate into an iso 8601 format string.
...date parse( adatestring ); para
meters adatestring an iso 8601 format date string.
Interfacing with the Add-on Repository
for example: searchfailed: function() { this.shownotification("i have no recommendations for you right now!", "oh noes!", null); }, here, we call a shownotification() method with some para
meters that we'll look at shortly when we get to our shownotification() method below.
... example: searchsucceeded: function(addons, addoncount, totalresults) { var num = math.floor(math.random() * addoncount); this.shownotification("would you like to try the " + addons[num].name + " addon?", "install", addons[num].install); }, this routine randomly selects one of the returned add-ons, then calls the previously mentioned shownotification() routine, passing in as para
meters a prompt including the name of the returned add-on, a label for the button to show in the notification ("install"), and the addoninstall object that can be used with the add-on manager api to install the add-on.
Deferred
void resolve( avalue ); para
meters avalue optional if this value is not a promise, including undefined, it becomes the fulfillment value of the associated promise.
... void reject( areason ); para
meters areason optional the rejection reason for the associated promise.
Deferred
void resolve( avalue ); para
meters avalue optional if this value is not a promise, including undefined, it becomes the fulfillment value of the associated promise.
... void reject( areason ); para
meters areason optional the rejection reason for the associated promise.
PromiseWorker.jsm
post syntax promise = myworker.post(afunctionname, aargs, aclosure, atransferlist); para
meters afunctionname the name of the function to be called as it appears in the worker file.
... by convention, the last argument may be an object options with some of the following fields: outexecutionduration {number|null} a para
meter to be filled with the duration of the off main thread execution for this call.
Task.jsm
async() simplifies the common pattern of implementing a method via a task, like this simple object with a greet method that has a name para
meter and spawns a task to send a greeting and return its reply: let greeter = { message: "hello, name!", greet: function(name) { return task.spawn((function* () { return yield sendgreeting(this.message.replace(/name/, name)); }).bind(this); }) }; with async(), the method can be declared succinctly: let greeter = { message: "hello, name!", greet: task.async(function* (name) {...
... promise spawn( atask ); para
meters atask this para
meter accepts different data types: if you specify a generator function, it is called with no arguments to retrieve the associated iterator.
Mozilla DOM Hacking Guide
this is because, if we had a setlocation() method, it would take an nsidomlocation para
meter, and not a url string.
...the three para
meters passed to the macro, as described in the previous section, are the dom object name, the scriptable helper class, and the scriptable flags.
Interval Timing
this chapter describes printervaltime and the functions that allow you to use it for timing purposes: interval time type and constants interval functions interval time type and constants all timed functions in nspr require a para
meter that depicts the amount of time allowed to elapse before the operation is declared failed.
...such para
meters are common in nspr functions such as those used for i/o operations and operations on condition variables.
PL_strcpy
syntax char * pl_strcpy(char *dest, const char *src); para
meters the function has these para
meters: dest pointer to a buffer.
... returns the function returns a pointer to the buffer specified by the dest para
meter.
PRTimeParamFn
this type defines a callback function to calculate and return the time para
meter offsets from a calendar time object in gmt.
... syntax #include <prtime.h> typedef prtimepara
meters (pr_callback_decl *prtimeparamfn) (const prexplodedtime *gmt); description the type prtimeparamfn represents a callback function that, when given a time instant in gmt, returns the time zone information (offset from gmt and dst offset) at that time instant.
PR_ASSERT
syntax #include <prlog.h> void pr_assert ( expression ); para
meters the macro has this para
meter: expression any valid c language expression that evaluates to true or false.
...the macro converts the expression to a string and passes it to pr_assert, using file and line para
meters from the compile-time environment.
PR_AtomicSet
syntax #include <pratom.h> print32 pr_atomicset( print32 *val, print32 newval); para
meters the function has the following para
meter: val a pointer to the value to be set.
... newval the new value to assign to the val para
meter.
PR_CNotifyAll
syntax #include <prcmon.h> prstatus pr_cnotifyall(void *address); para
meter the function has the following para
meter: address the address of the monitored object.
... pr_failure indicates that the referenced monitor could not be located or that the calling thread was not in the monitor description using the value specified in the address para
meter to find a monitor in the monitor cache, pr_cnotifyall notifies all threads waiting for the monitor's state to change.
PR_Close
syntax #include <prio.h> prstatus pr_close(prfiledesc *fd); para
meters the function has the following para
meters: fd a pointer to a prfiledesc object.
...on successful return, pr_close frees the dynamic memory and other resources identified by the fd para
meter.
PR_FindSymbol
syntax #include <prlink.h> void* pr_findsymbol ( prlibrary *lib, const char *name); para
meters the function has these para
meters: lib a valid reference to a loaded library, as returned by pr_loadlibrary, or null.
...if the lib para
meter is null, all libraries known to the runtime and the main program are searched in an unspecified order.
PR_FindSymbolAndLibrary
syntax #include <prlink.h> void* pr_findsymbolandlibrary ( const char *name, prlibrary **lib); para
meters the function has these para
meters: name the textual representation of the symbol to locate.
...upon return, the location pointed to by the para
meter lib contains a pointer to the library that contains that symbol.
PR_GetHostByAddr
syntax #include <prnetdb.h> prstatus pr_gethostbyaddr( const prnetaddr *hostaddr, char *buf, printn bufsize, prhostent *hostentry); para
meters the function has the following para
meters: hostaddr a pointer to the ip address of host in question.
... bufsize number of bytes in the buf para
meter.
PR_GetHostByName
syntax #include <prnetdb.h> prstatus pr_gethostbyname( const char *hostname, char *buf, printn bufsize, prhostent *hostentry); para
meters the function has the following para
meters: hostname the character string defining the host name of interest.
... bufsize number of bytes in the buf para
meter.
PR_GetIdentitiesLayer
syntax #include <prio.h> prfiledesc* pr_getidentitieslayer( prfiledesc* stack, prdescidentity id); para
meters the function has the following para
meters: stack a pointer to a prfiledesc object that is a layer in a stack of layers.
... description the stack of layers to be searched is specified by the fd para
meter, which is a layer in the stack.
PR_GetProtoByName
syntax #include <prnetdb.h> prstatus pr_getprotobyname( const char* protocolname, char* buffer, print32 bufsize, prprotoent* result); para
meters the function has the following para
meters: protocolname a pointer to the character string of the protocol's name.
... bufsize number of bytes in the buffer para
meter.
PR_GetProtoByNumber
syntax #include <prnetdb.h> prstatus pr_getprotobynumber( print32 protocolnumber, char* buffer, print32 bufsize, prprotoent* result); para
meters the function has the following para
meters: protocolnumber the number assigned to the protocol.
... bufsize number of bytes in the buffer para
meter.
PR_GetSocketOption
syntax #include <prio.h> prstatus pr_getsocketoption( prfiledesc *fd, prsocketoptiondata *data); para
meters the function has the following para
meters: fd a pointer to a prfiledesc object representing the socket whose options are to be retrieved.
...on input, the option field of this structure must be set to indicate which socket option to retrieve for the socket represented by the fd para
meter.
PR_GetSpecialFD
syntax #include <prio.h> prfiledesc* pr_getspecialfd(prspecialfd id); para
meter the function has the following para
meter: id a pointer to an enumerator of type prspecialfd, indicating the type of i/o stream desired: pr_standardinput, pr_standardoutput, or pr_standarderror.
... returns if the id para
meter is valid, pr_getspecialfd returns a file descriptor that represents the corresponding standard i/o stream.
PR_Initialize
syntax #include <prinit.h> printn pr_initialize( prprimordialfn prmain, printn argc, char **argv, pruintn maxptds); para
meters pr_initialize has the following para
meters: prmain the function that becomes the primordial thread's root function.
... maxptds this para
meter is ignored.
PR_IntervalToMicroseconds
syntax #include <prinrval.h> pruint32 pr_intervaltomicroseconds(printervaltime ticks); para
meter ticks the number of platform-dependent intervals to convert.
... returns equivalent in microseconds of the value passed in the ticks para
meter.
PR_IntervalToMilliseconds
syntax #include <prinrval.h> pruint32 pr_intervaltomilliseconds(printervaltime ticks); para
meter ticks the number of platform-dependent intervals to convert.
... returns equivalent in milliseconds of the value passed in the ticks para
meter.
PR_IntervalToSeconds
syntax #include <prinrval.h> pruint32 pr_intervaltoseconds(printervaltime ticks); para
meter ticks the number of platform-dependent intervals to convert.
... returns equivalent in seconds of the value passed in the ticks para
meter.
PR_Listen
syntax #include <prio.h> prstatus pr_listen( prfiledesc *fd, printn backlog); para
meters the function has the following para
meters: fd a pointer to a prfiledesc object representing a socket that will be used to listen for new connections.
...the maximum size of the queue for pending connections is specified by the backlog para
meter.
PR_MicrosecondsToInterval
syntax #include <prinrval.h> printervaltime pr_microsecondstointerval(pruint32 milli); para
meter the function has the following para
meter: micro the number of microseconds to convert to interval form.
... returns platform-dependent equivalent of the value passed in the micro para
meter.
PR_MillisecondsToInterval
syntax #include <prinrval.h> printervaltime pr_millisecondstointerval(pruint32 milli); para
meter the function has the following para
meter: milli the number of milliseconds to convert to interval form.
... returns platform-dependent equivalent of the value passed in the milli para
meter.
PR_MkDir
syntax #include <prio.h> prstatus pr_mkdir( const char *name, printn mode); para
meters the function has the following para
meters: name the name of the directory to be created.
... caveat: the mode para
meter is currently applicable only on unix platforms.
PR_Poll
syntax #include <prio.h> print32 pr_poll( prpolldesc *pds, printn npds, printervaltime timeout); para
meters the function has the following para
meters: pds a pointer to the first element of an array of prpolldesc structures.
...if this para
meter is zero, pr_poll is equivalent to pr_sleep with a timeout.
PR_PushIOLayer
syntax #include <prio.h> prstatus pr_pushiolayer( prfiledesc *stack, prdescidentity id, prfiledesc *layer); para
meters the function has the following para
meters: stack a pointer to a prfiledesc object representing the stack.
... even if the id para
meter indicates the topmost layer of the stack, the value of the file descriptor describing the original stack will not change.
PR_ReadDir
syntax #include <prio.h> prdirentry* pr_readdir( prdir *dir, prdirflags flags); para
meters the function has the following para
meters: dir a pointer to a prdir object that designates an open directory.
... the flags para
meter is an enum of type prdirflags: typedef enum prdirflags { pr_skip_none = 0x0, pr_skip_dot = 0x1, pr_skip_dot_dot = 0x2, pr_skip_both = 0x3, pr_skip_hidden = 0x4 } prdirflags; the memory associated with the returned prdirentry structure is managed by nspr.
PR_RecvFrom
syntax #include <prio.h> print32 pr_recvfrom( prfiledesc *fd, void *buf, print32 amount, printn flags, prnetaddr *addr, printervaltime timeout); para
meters the function has the following para
meters: fd a pointer to a prfiledesc object representing a socket.
... flags this obsolete para
meter must always be zero.
PR_SecondsToInterval
syntax #include <prinrval.h> printervaltime pr_secondstointerval(pruint32 seconds); para
meter the function has the following para
meter: seconds the number of seconds to convert to interval form.
... returns platform-dependent equivalent of the value passed in the seconds para
meter.
PR_SendTo
syntax #include <prio.h> print32 pr_sendto( prfiledesc *fd, const void *buf, print32 amount, printn flags, const prnetaddr *addr, printervaltime timeout); para
meters the function has the following para
meters: fd a pointer to a prfiledesc object representing a socket.
... flags this obsolete para
meter must always be zero.
PR_SetSocketOption
syntax #include <prio.h> prstatus pr_setsocketoption( prfiledesc *fd, prsocketoptiondata *data); para
meters the function has the following para
meters: fd a pointer to a prfiledesc object representing the socket whose options are to be set.
... description on input, the caller must set both the option and value fields of the prsocketoptiondata object pointed to by the data para
meter.
PR_SetThreadPriority
syntax #include <prthread.h> void pr_setthreadpriority( prthread *thread, prthreadpriority priority); para
meters pr_setthreadpriority has the following para
meters: thread a valid identifier for the thread whose priority you want to set.
...it is preferable for a thread to specify itself in the thread para
meter when it calls pr_setthreadpriority.
PR_Sleep
syntax #include <prthread.h> prstatus pr_sleep(printervaltime ticks); para
meter pr_sleep has the following para
meter: ticks the number of ticks you want the thread to sleep for (see printervaltime).
... returns calling pr_sleep with a para
meter equivalent to pr_interval_no_timeout is an error and results in a pr_failure error.
PR_TransmitFile
syntax #include <prio.h> print32 pr_transmitfile( prfiledesc *networksocket, prfiledesc *sourcefile, const void *headers, print32 hlen, prtransmitfileflags flags, printervaltime timeout); para
meters the function has the following para
meters: networksocket a pointer to a prfiledesc object representing the connected socket to send data over.
... the enumeration prtransmitfileflags, used in the flags para
meter, is defined as follows: typedef enum prtransmitfileflags { pr_transmitfile_keep_open = 0, pr_transmitfile_close_socket = 1 } prtransmitfileflags; ...
PR_Unmap
syntax #include <prio.h> prstatus pr_memunmap( void *addr, pruint32 len); para
meters the function has the following para
meters: addr the starting address of the memory region to be unmapped.
...the para
meter addr is the return value of an earlier call to pr_memmap.
PR_WaitCondVar
syntax #include <prcvar.h> prstatus pr_waitcondvar( prcondvar *cvar, printervaltime timeout); para
meters pr_waitcondvar has the following para
meters: cvar the condition variable on which to wait.
... any value other than pr_interval_no_timeout or pr_interval_no_wait for the timeout para
meter will cause the thread to be rescheduled due to either explicit notification or the expiration of the specified interval.
PR_dtoa
syntax #include <prdtoa.h> prstatus pr_dtoa( prfloat64 d, printn mode, printn ndigits, printn *decpt, printn *sign, char **rve, char *buf, prsize bufsz); para
meters the function has these para
meters: d the floating point number to be converted to a string.
... if the input para
meter d is+infinity,-infinity ornan, *decpt is set to 9999.
PR_htonl
syntax #include <prnetdb.h> pruint32 pr_htonl(pruint32 conversion); para
meter the function has the following para
meter: conversion the 32-bit unsigned integer, in host byte order, to be converted.
... returns the value of the conversion para
meter in network byte order.
PR_htons
syntax #include <prnetdb.h> pruint16 pr_htons(pruint16 conversion); para
meter the function has the following para
meter: conversion the 16-bit unsigned integer, in host byte order, to be converted.
... returns the value of the conversion para
meter in network byte order.
PR_ntohl
syntax #include <prnetdb.h> pruint32 pr_ntohl(pruint32 conversion); para
meter the function has the following para
meter: conversion the 32-bit unsigned integer, in network byte order, to be converted.
... returns the value of the conversion para
meter in host byte order.
PR_ntohs
syntax #include <prnetdb.h> pruint16 pr_ntohs(pruint16 conversion); para
meter the function has the following para
meter: conversion the 16-bit unsigned integer, in network byte order, to be converted.
... returns the value of the conversion para
meter in host byte order.
PR_strtod
syntax #include <prdtoa.h> prfloat64 pr_strtod(const char *s00, char **se); para
meters the function has these para
meters: s00 the input string to be scanned.
...if the para
meter se is not null the location it references is also set.
Function_Name
syntax #include <headers.h> returntype function_name( paramtype paramname, paramtype paramname, ); para
meters paramname sample: in pointer to a certcertdbhandle representing the certificate database to look in paramname sample: in pointer to an secitem whose type must be sidercertbuffer and whose data contains a der-encoded certificate description long description of this function, what it does, and why you would use it.
... describe all side-effects on "out" para
meters.
NSS CERTVerify Log
certverifylog all the nss verify functions except, the *verifynow() functions, take a para
meter called 'certverifylog'.
... if you supply the log para
meter, nss will continue chain validation after each error .
NSS 3.22 release notes
these functions take an explicit mechanism and para
meters as arguments rather than inferring it from the key type using pk11_mapsignkeytype().
... the ck_rsa_pkcs_pss mechanism takes a para
meter of type ck_rsa_pkcs_pss_params.
NSS 3.38 release notes
para
meter -k may be used to specify the id of an existing orphan key.
... when using certutil -o to print the chain for a given certificate nickname, the new para
meter --simple-self-signed may be provided, which can avoid ambiguous output in some scenarios.
NSS Sample Code Utilities_1
try, pwdata->data); pwdata->source = pw_plaintext; pwdata->data = pl_strdup(pw); return pw; case pw_plaintext: return pl_strdup(pwdata->data); default: break; } pr_fprintf(pr_stderr, "password check failed: no password found.\n"); return null; } /* * generaterandom */ secstatus generaterandom(unsigned char *rbuf, int rsize) { char
meter[] = { "\r| |" }; int fd, count; int c; secstatus rv = secsuccess; cc_t orig_cc_min; cc_t orig_cc_time; tcflag_t orig_lflag; struct termios tio; fprintf(stderr, "to generate random numbers, " "continue typing until the progress
meter ...
...is full:\n\n"); fprintf(stderr, "%s",
meter); fprintf(stderr, "\r|"); /* turn off echo on stdin & return on 1 char instead of nl */ fd = fileno(stdin); tcgetattr(fd, &tio); orig_lflag = tio.c_lflag; orig_cc_min = tio.c_cc[vmin]; orig_cc_time = tio.c_cc[vtime]; tio.c_lflag &= ~echo; tio.c_lflag &= ~icanon; tio.c_cc[vmin] = 1; tio.c_cc[vtime] = 0; tcsetattr(fd, tcsaflush, &tio); /* get random noise from keyboard strokes */ count = 0; while (count < rsize) { c = getc(stdin); if (c == eof) { rv = secfailure; break; } *(rbuf + count) = c; if (count == 0 || c != *(rbuf + count -1)) { count++; fprintf(stderr, "*"); } } rbuf[count] = '...
Utilities for nss samples
ry, pwdata->data); pwdata->source = pw_plaintext; pwdata->data = pl_strdup(pw); return pw; case pw_plaintext: return pl_strdup(pwdata->data); default: break; } pr_fprintf(pr_stderr, "password check failed: no password found.\n"); return null; } /* * generaterandom */ secstatus generaterandom(unsigned char *rbuf, int rsize) { char
meter[] = { "\r| |" }; int fd, count; int c; secstatus rv = secsuccess; cc_t orig_cc_min; cc_t orig_cc_time; tcflag_t orig_lflag; struct termios tio; fprintf(stderr, "to generate random numbers, " "continue typing until the progress
meter ...
...is full:\n\n"); fprintf(stderr, "%s",
meter); fprintf(stderr, "\r|"); /* turn off echo on stdin & return on 1 char instead of nl */ fd = fileno(stdin); tcgetattr(fd, &tio); orig_lflag = tio.c_lflag; orig_cc_min = tio.c_cc[vmin]; orig_cc_time = tio.c_cc[vtime]; tio.c_lflag &= ~echo; tio.c_lflag &= ~icanon; tio.c_cc[vmin] = 1; tio.c_cc[vtime] = 0; tcsetattr(fd, tcsaflush, &tio); /* get random noise from keyboard strokes */ count = 0; while (count < rsize) { c = getc(stdin); if (c == eof) { rv = secfailure; break; } *(rbuf + count) = c; if (count == 0 || c != *(rbuf + count -1)) { count++; fprintf(stderr, "*"); } } rbuf[count] = '...
nss tech note1
the offset para
meter specifies where to store the type identifier in the target data .
... subsequent templates specify a custom identifier for each possible component type in the size para
meter .
FC_FindObjectsInit
name fc_findobjectsinit - initialize the para
meters for an object search.
... syntax ck_rv fc_findobjectsinit( ck_session_handle hsession, ck_attribute_ptr ptemplate, ck_ulong uscount ); para
meters hsession [in] session handle.
NSPR functions
pr_geterror pr_seterror calendar time nss certificate verification functions take a prtime para
meter that specifies the time instant at which the validity of the certificate should verified.
... pr_now interval time the nspr socket i/o functions pr_recv and pr_send (used by the nss ssl functions) take a printervaltime timeout para
meter.
NSS_Initialize
syntax secstatus nss_initialize(const char *configdir, const char *certprefix, const char *keyprefix, const char *secmodname, pruint32 flags); para
meters nss_initialize has five para
meters: configdir [in] the directory where the certificate, key, and module databases live.
...the flags para
meter is a bitwise or of the following flags: nss_init_readonly - open the databases read only.
NSS tools : crlutil
arg1, arg2: specific to extension type extension para
meters addext uses the range that was set earlier by addcert and will install an extension to every cert entries within the range.
... see "implemented extensions" for more information regarding extensions and their para
meters.
sslerr.html
blocks.) ssl_error_handshake_unexpected_alert -12229 "ssl peer was not expecting a handshake message it received." ssl_error_decompression_failure_alert -12228 "ssl peer was unable to successfully decompress an ssl record it received." ssl_error_handshake_failure_alert -12227 "ssl peer was unable to negotiate an acceptable set of security para
meters." ssl_error_illegal_para
meter_alert -12226 "ssl peer rejected a handshake message for unacceptable content." ssl_error_unsupported_cert_alert -12225 "ssl peer does not support certificates of the type it received." ssl_error_certificate_unknown_alert -12224 "ssl peer had some unspecified issue with the certificate it received." ssl_error_decr...
...ient_security_alert -12189 "server requires ciphers more secure than those supported by client." ssl_error_internal_error_alert -12188 "peer reports it experienced an internal error." ssl_error_user_canceled_alert -12187 "peer user canceled handshake." ssl_error_no_renegotiation_alert -12186 "peer does not permit renegotiation of ssl security para
meters." ssl_error_unsupported_extension_alert -12184 "ssl peer does not support requested tls hello extension." ssl_error_certificate_unobtainable_alert -12183 "ssl peer could not obtain your certificate from the supplied url." ssl_error_unrecognized_name_alert -12182 "ssl peer has no certificate for the requested dns name." ssl_error_bad_cert_stat...
ssltyp.html
syntax #include <prtypes.h> secstatus secitem_freeitem ( secitem *item, prbool freeitem) para
meter this function has the following para
meter: item a pointer to a secitem structure.
... syntax #include <prtypes.h> secstatus secitem_zfreeitem ( secitem *item, prbool freeitem) para
meter this function has the following para
meter: item a pointer to a secitem structure.
NSS tools : crlutil
arg1, arg2: specific to extension type extension para
meters addext uses the range that was set earlier by addcert and will install an extension to every cert entries within the range.
... see "implemented extensions" for more information regarding extensions and their para
meters.
Scripting Java
being able to view the para
meters and return type of java methods is particularly useful in exploratory programming where we might be investigating a method and are unsure of the para
meter or return types.
...to implement a runnable, we need only define a single method run with no para
meters.
How to embed the JavaScript engine
run the helloworld executable at the command line: ./helloworld how to call c functions from javascript say the c function is named doit and it would like at least two actual para
meters when called (if the caller supplies fewer, the js engine should ensure that undefined is passed for the missing ones): #define doit_minargs 2 // [spidermonkey 24] use jsbool instead of bool.
... static bool doit(jscontext *cx, unsigned argc, jsval *vp) { js::callargs args = callargsfromvp(argc, vp); /* * look in argv for argc actual para
meters, set *rval to return a * value to the caller.
Invariants
that is, they take a para
meter cx of type jscontext *, and require that cx is in a request on the current thread.
... if it cannot be statically proven that a name always refers to a specific variable (meaning either a para
meter or a variable introduced by var/let/function/const) in the program, then a name op must be emitted.
JS::Add*Root
the name para
meter, if present and non-null, is stored in the jsruntime's root table entry along with rp.
... needs the example for typical usage of the name para
meter.
JS::Compile
script js::mutablehandlescript out para
meter.
... mxr id search for js::compile js::evaluate js::compileoffthread js::compilefunction js_decompilescript bug 771705 bug 1143793 -- removed obj para
meter ...
JS::CreateError
rval js::mutablehandlevalue out para
meter.
... see also mxr id search for js::createerror jsexntype jserrorreport bug 984048 bug 1038238 -- change stack para
meter from js::handlestring to js::handleobject ...
JSNewResolveOp
objp js::mutablehandleobject out para
meter.
...on success, the callback must set the *objp out para
meter to null if id was not resolved; or non-null, referring to obj or one of its prototypes, if id was resolved; and return js_true.
JSObjectOps.dropProperty
that is, the value that the jsobjectops.lookupproperty hook stored in the *objp out para
meter.
...that is, the value that jsobjectops.lookupproperty hook stored in the *propp out para
meter.
JSObjectOps.getAttributes
attrsp unsigned int * in/out para
meter.
...if prop is non-null, it must come from the *propp out para
meter of a prior jsobjectops.defineproperty or jsobjectops.lookupproperty call.
JS_NewContext
this is a memory management tuning para
meter which most users should not adjust.
... the stackchunksize para
meter does not control the javascript stack size.
JS_PreventExtensions
result js::objectopresult & (out para
meter) receives the result of the operation.
... see also mxr id search for js_preventextensions bug 1113369 -- added result para
meter ...
JS_SetOptions
to turn individual options on or off, use js_setoptions with js_getoptions: // turn on warnings for dubious practices js_setoptions(cx, js_getoptions(cx) | jsoption_extra_warnings); // turn off those extra warnings js_setoptions(cx, js_getoptions(cx) & ~jsoption_extra_warnings); the options para
meter and the return value are the logical or of zero or more constants from the following table: option description jsoption_extra_warnings warn on dubious practice.
... mxr id search for jsoption_moar_xml jsoption_native_branch_callback the branch callback set by js_setbranchcallback may be called with a null script para
meter, by native code that loops intensively.
JS_updateMallocCounter
maxmallocbytes is initialized with maxbytes para
meter of js_newruntime, and could be configured later by calling js_getgcpara
meter with jsgc_max_malloc_bytes.
... see also mxr id search for js_updatemalloccounter changeset 88cfae411a2a js_newruntime js_getgcpara
meter bug 517665 ...
Shell global objects
gcparam(name [, value]) wrapper for js_[gs]etgcpara
meter.
...by default this tests that an exception is raised if execution fails, but this can be disabled by passing false as the optional second para
meter.
TPS Tests
me and password), you should instead execute: python create_venv.py --keep-config %path% activate the environment source %path%/bin/activate run some tests note that the testfile is not a path, it should only be the filename from services/sync/tests/tps/ runtps --debug --testfile %test_file_name% --binary %firefox_binary_path% additionally, omitting a --testfile para
meter will cause it to run all tps tests listed in services/sync/tests/tps/all_tests.json an example on osx, for running just the test_sync.js testfile against a locally built firefox (where the mozconfig set the objdir to obj-ff-artifact): runtps --debug --testfile test_sync.js --binary obj-ff-artifact/dist/nightly.app/contents/macos/firefox running tps against stage, or dev fxa tps...
... a phase is defined by calling the phase function with the name of the phase and a list of actions to perform: phase('phase1', [ [bookmarks.add, bookmarks_initial], [passwords.add, passwords_initial], [history.add, history_initial], [sync, sync_wipe_server], ]); each action is an array, the first member of which is a function reference to call, the other members of which are para
meters to pass to the function.
Secure Development Guidelines
an sql instruction and be used to: query data from the database (passwords) insert value into the database (a user account) change application logic based on results returned by the database sql injection: example snprintf(str, sizeof(str), "select * from account where name ='%s'", name); sqlite3_exec(db, str, null, null, null); sql injection: prevention use para
meterized queries insert a marker for every piece of dynamic content so data does not get mixed with sql instructions example: sqlite3_stmt *stmt; char *str = "select * from account where name='?'"; sqlite3_prepare_v2(db, str, strlen(str), &stmt, null); sqlite3_bind_text(stmt, 1, name, strlen(name), sqlite_transient); sqlite3_step(stmt); sqlite3_finalize(p_stmt); writing secure code: ar...
... unlock(locka); unlock(lockb); } writing secure code: good coding practices banned api list badly designed apis can often lead to vulnerabilities it’s too easy to use the api inappropriately for example, consider the libc string handling apis strcpy() performs no bounds checking strncpy() doesn’t always 0-terminate strncat() length para
meter is very confusing banned api list examples of incorrect strncat usage buffer overflow strncat(buffer, string, sizeof(buffer)); off-by-one strncat(buffer, string, sizeof(buffer) – strlen(string)); correct usage strncat(buffer, string, sizeof(buffer) – strlen(string) – 1)); banned api list: recommendations create wrappers or replacements for st...
Gecko object attributes
value attributes valuetext a text equivalent to the current value, such as "high" in a slider or "unzipping files" in a progress
meter.
... applied to: anything that supports the value interface, especially a slider or progress
meter ...
Using the Places history service
all the para
meters set on the query object will be anded together.
...the para
meters within on query as anded together as in executequery(), then the results of the different queries in the array are ored together.
How to build an XPCOM component in JavaScript
_xpcom_categories: [{ // each object in the array specifies the para
meters to pass to // nsicategorymanager.addcategoryentry().
...when set to true, and only if 'value' is not // specified, the concatenation of the string "service," and the object's contractid // is passed as avalue para
meter of addcategoryentry.
An Overview of XPCOM
class nsisupports { public: long queryinterface(const nsiid & uuid, void **result) = 0; long addref(void) = 0; long release(void) = 0; }; the first para
meter of queryinterface is a reference to a class named nsiid, which is a basic encapsulation of the iid.
...you can not have two methods with the same name that take different para
meters, and the workaround - having multiple function names - isn't pretty: void foowithint(in int x); void foowithstring(in string x); void foowithuri(in nsiuri x); however, these shortcomings pale in comparison to the functionality gained by using xpidl.
Component Internals
para
meters passed to this startup call allow you to configure some aspects of xpcom, including the customization of location of specific directories.
... xpconnect, for example, provides a component loader that makes the various types, including the interfaces and their para
meters, available to javascript.
Finishing the Component
currently, the weblock implementation of the shouldload method compares the in para
meter with each string in the white list.
...the two nsnull para
meters passed to newuri are used to specify the charset of the string and any base uri to use, respectively.
Components.interfaces
properties of the components.interfaces object are used where xpcom methods expect a para
meter of type nsid.
... this includes nsisupports.queryinterface(), the optional para
meter accepted by nsijscid.getservice(), nsijscid.createinstance() when called from javascript, and nsiclassinfo.getinterfaces().
Components.isSuccessCode
syntax var succeeded = components.issuccesscode(returncode); para
meters returncode the return code (of type nsresult) to be checked.
... note: nsiasyncstreamcopier.init() has changed in gecko 1.9.2, omit last 2 boolean para
meters if you're using gecko 1.9.1 and earlier.
Components.utils.cloneInto
syntax components.utils.cloneinto(obj, targetscope[, options]); para
meters obj : object the object to clone.
... options : object this optional para
meter is an object with the following optional properties: clonefunctions: a boolean value that determines if functions should be cloned.
Components.utils.exportFunction
syntax components.utils.exportfunction(func, targetscope[, options]); para
meters func : function the function to export.
... options : object optional para
meter that supplies additional options.
Components.utils.reportError
it must be called with one para
meter, usually an object which was caught by an exception handler.
... if it is not a javascript error object, the para
meter is converted to a string and reported as a new error.
NS_Realloc
#include "nsxpcom.h" void* ns_realloc( void* aptr, prsize asize ); para
meters aptr [in] a pointer to the block of memory to reallocate.
... this pointer must have been previously allocated by the xpcom memory manager, or this para
meter may be null in which case this function behaves like ns_alloc.
amIWebInstaller
installaddonsfromwebpage( in astring amimetype, in nsidomwindow awindow, in nsiuri areferer, [array, size_is(ainstallcount)] in wstring auris, [array, size_is(ainstallcount)] in wstring ahashes, [array, size_is(ainstallcount)] in wstring anames, [array, size_is(ainstallcount)] in wstring aicons, in amiinstallcallback acallback, optional in pruint32 ainstallcount optional ); para
meters amimetype the mimetype for the add-ons.
...boolean isinstallenabled( in astring amimetype, in nsiuri areferer ); para
meters amimetype the mime type for the add-on to be installed.
imgIContainerObserver
void framechanged( in imgirequest arequest, in imgicontainer acontainer, [const] in nsintrect adirtyrect ); para
meters arequest the image request for which the change occurred.
... notes the arequest para
meter was added to this method in gecko 12.0 (firefox 12.0 / thunderbird 12.0 / seamonkey 2.9).
mozIPlacesAutoComplete
void registeropenpage( in nsiuri auri ); para
meters auri the uri to register as an open page.
...void unregisteropenpage( in nsiuri auri ); para
meters auri the uri to unregister as an open page.
mozIStorageRow
nsivariant getresultbyindex( in unsigned long aindex ); para
meters aindex the zero-based index of the column number whose value is to be returned.
...nsivariant getresultbyname( in autf8string aname ); para
meters aname the name of the column whose value is to be returned.
mozIStorageStatementParams
this interface has no defined properties, but has properties based on the named para
meters found in the sql from the statement it was accessed off of.
... for example, say you create a statement like so: var statement = dbconn.createstatement("select * from table_name where id = :item_id"); this object would have one property, item_id, that you can use to bind a value to that named para
meter like so: statement.params.item_id = 2; for more details on why you should bind para
meters as opposed to hard-coding them into your statement, please see the overview document about binding para
meters.
mozIStorageVacuumParticipant
boolean onbeginvacuum(); para
meters none.
...void onendvacuum( in boolean asucceeded ); para
meters asucceeded true if the vacuum operation was successful, or false if it wasn't successful.
nsIAccessibleRelation
nsiaccessible gettarget( in unsigned long index ); para
meters index zero-based index of relation target.
...nsiarray gettargets(); para
meters none.
nsIAccessibleStateChangeEvent
methods isenabled() boolean isenabled(); para
meters none.
...isextrastate() boolean isextrastate(); para
meters none.
nsIAsyncStreamCopier
void asynccopy( in nsirequestobserver aobserver, in nsisupports aobservercontext ); para
meters aobserver receives notifications.
...void init( in nsiinputstream asource, in nsioutputstream asink, in nsieventtarget atarget, in boolean asourcebuffered, in boolean asinkbuffered, in unsigned long achunksize, in boolean aclosesource, in boolean aclosesink ); para
meters asource contains the data to be copied.
nsIAuthPrompt2
nsicancelable asyncpromptauth( in nsichannel achannel, in nsiauthpromptcallback acallback, in nsisupports acontext, in pruint32 level, in nsiauthinformation authinfo ); para
meters achannel the channel that requires authentication.
... boolean promptauth( in nsichannel achannel, in pruint32 level, in nsiauthinformation authinfo ); para
meters achannel the channel that requires authentication.
nsIAuthPromptCallback
void onauthavailable( in nsisupports acontext, in nsiauthinformation aauthinfo ); para
meters acontext the context as passed to nsiauthprompt2.asyncpromptauth().
...void onauthcancelled( in nsisupports acontext, in boolean usercancel ); para
meters acontext the context that was passed to nsiauthprompt2.asyncpromptauth().
nsIAutoCompleteObserver
void onsearchresult( in nsiautocompletesearch search, in nsiautocompleteresult result ); para
meters search the search object that processed this search.
...void onupdatesearchresult( in nsiautocompletesearch search, in nsiautocompleteresult result ); para
meters search the search object that processed this search.
nsIBoxObject
methods getlookandfeelmetric() obsolete since gecko 1.9 (firefox 3) wstring getlookandfeelmetric( in wstring propertyname ); para
meters propertyname return value getproperty() wstring getproperty( in wstring propertyname ); para
meters propertyname return value getpropertyassupports() nsisupports getpropertyassupports( in wstring propertyname ); para
meters propertyname return value removeproperty() void removeproperty( in wstring propertyname ); para
meters propertyname setproperty() void setproperty( in ...
...wstring propertyname, in wstring propertyvalue ); para
meters propertyname propertyvalue setpropertyassupports() void setpropertyassupports( in wstring propertyname, in nsisupports value ); para
meters propertyname value ...
nsICacheVisitor
boolean visitdevice( in string deviceid, in nsicachedeviceinfo deviceinfo ); para
meters deviceid specifies the device being visited.
...boolean visitentry( in string deviceid, in nsicacheentryinfo entryinfo ); para
meters deviceid specifies the device being visited.
nsIChannelEventSink
void asynconchannelredirect( in nsichannel oldchannel, in nsichannel newchannel, in unsigned long flags, in nsiasyncverifyredirectcallback callback ); para
meters oldchannel the channel that's being redirected.
...void onchannelredirect( in nsichannel oldchannel, in nsichannel newchannel, in unsigned long flags ); para
meters oldchannel the channel that's being redirected.
nsICharsetResolver
void notifyresolvedcharset( in acstring charset, in nsisupports closure ); para
meters charset the detected charset.
...acstring requestcharset( in nsiwebnavigation awebnavigation, in nsichannel achannel, out boolean awantcharset, out nsisupports aclosure ); para
meters awebnavigation the nsiwebnavigation the document is being loaded in.
nsIChromeFrameMessageManager
void loadframescript( in astring aurl, in boolean aallowdelayedload ); para
meters aurl the url of the script to load into the frame; this must be an absolute url, but data: urls are supported.
...void removedelayedframescript( in astring aurl ); para
meters aurl the url of the script to remove from the list of scripts supporting delayed load.
nsIClipboardHelper
void copystring( in astring astring ); para
meters astring the string to copy to the clipboard.
... void copystringtoclipboard( in astring astring, in long aclipboardid ); para
meters astring the string to copy to the clipboard.
nsIContentPrefObserver
void oncontentprefremoved( in astring agroup, in astring aname ); para
meters agroup the group to which the removed preference belonged; this may be the uri of a web site.
... void oncontentprefset( in astring agroup, in astring aname, in nsivariant avalue ); para
meters agroup the group to which the preference belongs; this may be the uri of a web site.
nsIContentViewManager
void getcontentviewsin( in float axpx, in float aypx, in float atopsize, in float arightsize, in float abottomsize, in float aleftsize, out unsigned long alength, optional [retval, array, size_is(alength)] out nsicontentview aresult ); para
meters axpx the x coordinate of the anchor point of the rectangle, in css pixels.
... alength optional if specified, on return this para
meter indicates the number of nsicontentview objects returned in the aresult array.
nsIConverterOutputStream
void init( in nsioutputstream aoutstream, in string acharset, in unsigned long abuffersize, in prunichar areplacementcharacter ); para
meters aoutstream the underlying output stream to which the converted strings will be written.
...implementations not supporting buffering may ignore this para
meter.
nsICookieManager
void remove( in autf8string ahost, in acstring aname, in autf8string apath, in boolean ablocked, in jsval aoriginattributes ); para
meters ahost the host or domain for which the cookie was set.
... void removeall(); para
meters none.
nsICookieStorage
void getcookie( in string acookieurl, in voidptr acookiebuffer, in pruint32ref acookiesize ); para
meters acookieurl url string to look up cookie with..
... void setcookie( in string acookieurl, in constvoidptr acookiebuffer, in unsigned long acookiesize ); para
meters acookieurl url string to look up cookie with..
nsIDOMHTMLTimeRanges
float end( in unsigned long index ); para
meters index the index to the time range whose end time is to be returned.
...float start( in unsigned long index ); para
meters index the index to the time range whose start time is to be returned.
nsIDOMSerializer
void serializetostream( in nsidomnode root, in nsioutputstream stream, in autf8string charset ); para
meters root the root of the subtree to be serialized.
...astring serializetostring( in nsidomnode root ); para
meters root the root of the subtree to be serialized.
nsIDOMXPathResult
nsidomnode iteratenext(); para
meters none.
...nsidomnode snapshotitem( in unsigned long index ); para
meters index the index of the dom node to return.
nsIDOMXULSelectControlElement
selectedindex long selecteditem nsidomxulselectcontrolitemelement value domstring methods appenditem() nsidomxulselectcontrolitemelement appenditem( in domstring label, in domstring value ); para
meters label value return value getindexofitem() long getindexofitem( in nsidomxulselectcontrolitemelement item ); para
meters item return value getitematindex() nsidomxulselectcontrolitemelement getitematindex( in long index ); para
meters index return value insertitemat() nsidomxulselectcontrolitemelement insertitemat( in long index, in domstring label, in domstring value ); p...
...ara
meters index label value return value removeitemat() nsidomxulselectcontrolitemelement removeitemat( in long index ); para
meters index return value ...
getFile
nsifile getfile( in string aname, out boolean apersistent ); para
meters aname [in] the symbolic name for a file or directory location.
... xpcom file system aliases apersistent [out] this output para
meter indicates to the caller whether or not the returned location is persistent.
nsIDownloadManagerUI
void getattention(); para
meters none.
... void show( in nsiinterfacerequestor awindowcontext, optional in unsigned long aid, optional in short areason optional ); para
meters awindowcontext optional the parent window context to show the user interface.
nsIDragDropHandler
void detach(); para
meters none.
...void hookupto( in nsidomeventtarget attachpoint, in nsiwebnavigation navigator ); para
meters attachpoint the receiver to which to attach drag handlers.
nsIDragSession
void getdata( in nsitransferable atransferable, in unsigned long aitemindex ); para
meters atransferable the transferable for the data to be put into.
... boolean isdataflavorsupported( in string adataflavor ); para
meters adataflavor a string representing the mime type of the data to be matched, such as "text/unicode".
nsIEditor
[noscript] void init( in nsidomdocument doc, in nsipresshellptr shell, obsolete since gecko 5 in nsicontent aroot, in nsiselectioncontroller aselcon, in unsigned long aflags ); para
meters doc the document to observe.
...this para
meter was removed in gecko 5.0 (firefox 5.0 / thunderbird 5.0 / seamonkey 2.2).
nsIEditorLogging
void startlogging( in nsifile alogfile ); para
meters alogfile the file to which the log should be written.
...void stoplogging(); para
meters none.
nsIEventListenerInfo
nsisupports getdebugobject(); para
meters none.
...astring tosource(); para
meters none.
nsIExternalHelperAppService
boolean applydecodingforextension( in autf8string aextension, in acstring aencodingtype ); para
meters aextension the filename extension to check.
...nsistreamlistener docontent( in acstring amimecontenttype, in nsirequest arequest, in nsiinterfacerequestor awindowcontext, in boolean aforcesave ); para
meters amimecontenttype the content type of the incoming data.
nsIFactory
(see also nsicomponentmanager.createinstance.) void createinstance( in nsisupports aouter, in nsiidref iid, [retval, iid_is(iid)] out nsqiresult result ); para
meters aouter pointer to a component that wishes to be aggregated in the resulting instance.
... void lockfactory( in prbool lock ); para
meters lock true to lock the factory, and false to unlock the factory.
nsIFrameLoaderOwner
[noscript, notxpcom] alreadyaddrefed_nsframeloader getframeloader(); para
meters none.
...void swapframeloaders( in nsiframeloaderowner aotherowner ); para
meters aotherowner the other frame loader owner with which to swap frame loaders.
nsIFrameMessageListener
called to deliver a message to the frame handling process; called with one para
meter, which has the following properties: name the name of the message.
...void receivemessage(); para
meters none.
nsIFrameScriptLoader
para
meters name type description aurl string url for the script to load.
... para
meters name type description aurl string url for the script to remove.
nsIGSettingsCollection
.0 / seamonkey 2.3) method overview boolean getboolean(in autf8string key); long getint(in autf8string key); autf8string getstring(in autf8string key); void setboolean(in autf8string key, in boolean value); void setint(in autf8string key, in long value); void setstring(in autf8string key, in autf8string value); methods getboolean() boolean getboolean( in autf8string key ); para
meters key return value getint() long getint( in autf8string key ); para
meters key return value getstring() autf8string getstring( in autf8string key ); para
meters key return value setboolean() void setboolean( in autf8string key, in boolean value ); para
meters key value setint() void setint( in autf8string key, in long value ); para
meters key value setstring() void ...
...setstring( in autf8string key, in autf8string value ); para
meters key value ...
nsIGlobalHistory
void addpage( in string aurl ); para
meters aurl the url to the page.
...boolean isvisited( in string aurl ); para
meters aurl the url to the page.
nsIHttpActivityDistributor
void addobserver( in nsihttpactivityobserver aobserver ); para
meters aobserver the nsihttpactivityobserver that should receive notifications of http transport activity; this object's nsihttpactivityobserver.observeactivity() method will be called each time activity occurs.
...void removeobserver( in nsihttpactivityobserver aobserver ); para
meters aobserver the nsihttpactivityobserver that should no longer receive notifications of http transport activity.
nsIINIParserWriter
void setstring( in autf8string asection, in autf8string akey, in autf8string avalue ); para
meters asection the name of the section into which to place the property.
... void writefile( in nsifile ainifile, optional in unsigned long aflags optional ); para
meters ainifile optional if specified, this nsifile based object is used as the output file instead of the one specified at initialization time (if any).
nsIJSCID
inherits from: nsijsid last changed in gecko 1.7 method overview nsisupports createinstance(); nsisupports getservice(); methods createinstance() nsisupports createinstance(); para
meters none.
... return value getservice() nsisupports getservice(); para
meters none.
nsILoadGroup
void addrequest( in nsirequest arequest, in nsisupports acontext ); para
meters arequest the request to be added to the load group.
...void removerequest( in nsirequest arequest, in nsisupports acontext, in nsresult astatus ); para
meters arequest the request to be removed from the load group.
nsILoginManagerCrypto
astring decrypt( in astring ciphertext ); para
meters ciphertext the string to be decrypted.
...astring encrypt( in astring plaintext ); para
meters plaintext the string to be encrypted.
nsIMIMEInputStream
void addheader( in string name, in string value ); para
meters name name of the header.
...void setdata( in nsiinputstream stream ); para
meters stream stream containing the data for the stream.
nsIMarkupDocumentViewer
void scrolltonode( in nsidomnode node ); para
meters node the nsidomnode of the node to make visible.
...void sizetocontent(); para
meters none.
nsIMenuBoxObject
methods handlekeypress() boolean handlekeypress( in nsidomkeyevent keyevent ); para
meters keyevent the key event to handle for the menu.
...openmenu() void openmenu( in boolean openflag ); para
meters openflag true to open the menu or false to close it.
nsIMessageBroadcaster
para
meters name type description messagename string the name of the message.
...para
meters name type description aindex number the index of the subordinate message manager to retrieve.
nsIMsgWindowCommands
void selectfolder( in acstring folderuri ); para
meters folderuri the uri of the folder to select.
...void selectmessage( in acstring messageuri ); para
meters messageuri the uri of the message to open.
nsINavHistoryQueryOptions
methods clone() this method creates a new options item with the same para
meters of this one.
... nsinavhistoryqueryoptions clone(); para
meters none.
nsINavHistoryResult
void addobserver( in nsinavhistoryresultobserver aobserver, in boolean aownsweak ); para
meters aobserver an object that implements the nsinavhistoryresultobserver interface, which will receive notifications of changes on the result.
...void removeobserver( in nsinavhistoryresultobserver aobserver ); para
meters aobserver the observer to remove.
nsINavHistoryResultTreeViewer
nsinavhistoryresultnode nodefortreeindex( in unsigned long aindex ); para
meters aindex the row index of the note to return.
...unsigned long treeindexfornode( in nsinavhistoryresultnode anode ); para
meters anode the node whose index is to be returned.
nsIPipe
void init( in boolean nonblockinginput, in boolean nonblockingoutput, in unsigned long segmentsize, in unsigned long segmentcount, in nsimemory segmentallocator ); para
meters nonblockinginput true specifies non-blocking input stream behavior.
...the default value for this para
meter is a finite value.
nsIPrefLocalizedString
void setdatawithlength( in unsigned long length, [size_is(length)] in wstring data ); para
meters length the length of the string.
...wstring tostring(); para
meters none.
nsIProcessScriptLoader
for example: let ppmm = services.ppmm.getchildat(1); ppmm.loadprocessscript('data:,dump("foo\n");', true); para
meters name type description aurl string url for the script to load.
... para
meters name type description aurl string url for the script to remove.
nsIRequestObserver
void onstartrequest( in nsirequest arequest, in nsisupports acontext ); para
meters arequest request being observed.
...void onstoprequest( in nsirequest arequest, in nsisupports acontext, in nsresult astatuscode ); para
meters arequest request being observed.
nsIResumableChannel
void asyncopenat( in nsistreamlistener listener, in nsisupports ctxt, in unsigned long startpos, in nsiresumableentityid entityid ); para
meters listener as for asyncopen.
...void resumeat( in unsigned long long startpos, in acstring entityid ); para
meters startpos the starting offset, in bytes, to use to download.
nsISSLSocketControl
void proxystartssl(); para
meters none.
...void starttls(); para
meters none.
nsIScreenManager
nsiscreen screenfornativewidget( in voidptr nativewidget ); para
meters nativewidget the native widget for which to obtain an nsiscreen instance.
...nsiscreen screenforrect( in long left, in long top, in long width, in long height ); para
meters left the left edge of the rectangle.
nsISelection3
note that the para
meters are case-insensitive.
... void modify( in domstring alter, in domstring direction, in domstring granularity ); para
meters alter can be one of { "move", "extend" } "move" collapses the selection to the end of the selection and applies the movement direction/granularity to the collapsed selection.
nsISelectionImageService
void getimage( in short selectionvalue, out imgicontainer container ); para
meters selectionvalue container reset() the current image is marked as invalid.
... void reset(); para
meters none.
nsIServerSocketListener
void onsocketaccepted( in nsiserversocket aserv, in nsisockettransport atransport ); para
meters aserv the server socket.
...void onstoplistening( in nsiserversocket aserv, in nsresult astatus ); para
meters aserv the server socket.
nsIStreamConverter
void asyncconvertdata( in string afromtype, in string atotype, in nsistreamlistener alistener, in nsisupports actxt ); para
meters afromtype the mime type of the original/raw data.
...nsiinputstream convert( in nsiinputstream afromstream, in string afromtype, in string atotype, in nsisupports actxt ); para
meters afromstream the stream representing the original/raw data.
nsIStringBundleOverride
nsisimpleenumerator enumeratekeysinbundle( in autf8string url ); para
meters url the url of the original string bundle whose keys are to be overridden.
...astring getstringfromname( in autf8string url, in acstring key ); para
meters url the url of the original string bundle whose keys are to be overridden.
nsISupports proxies
now xpinstall can do its installations while the product renders, but now xpinstall can not access ui elements such as a progress
meter or a confirmation dialog.
... the proxytype para
meter can be either two flags: proxy_sync or proxy_async.
nsISyncMessageSender
para
meters name type description messagename string the name of the message.
...para
meters name type description messagename string the name of the message.
nsITXTToHTMLConv
void preformathtml( in boolean value ); para
meters value true to wrap the resulting html in a <pre> block.
...void settitle( in wstring text ); para
meters text title to set for the html document.
nsITaskbarProgress
the currentvalue and maxvalue para
meters are optional and should be supplied when state is one of state_normal, state_error or state_paused.
... void setprogressstate( in nstaskbarprogressstate state, in unsigned long long currentvalue, optional in unsigned long long maxvalue optional ); para
meters state one of the state constants.
nsITelemetry
jsval gethistogrambyid( in acstring id ); para
meters id unique identifier from toolkit/components/telemetry/histograms.json.
... jsval getkeyedhistogrambyid( in acstring id ); para
meters id unique identifier from toolkit/components/telemetry/histograms.json.
nsIThreadInternal
void popeventqueue(); para
meters none.
... void pusheventqueue( in nsithreadeventfilter filter ); para
meters filter the nsithreadeventfilter to apply to dispatched events, or null to accept all dispatched events.
nsIThreadManager
nsithread getthreadfromprthread( in prthread prthread ); para
meters prthread the prthread for which to retrieve the corresponding nsithread.
... nsithread newthread( in unsigned long creationflags ); para
meters creationflags reserved for future use.
nsIThreadPoolListener
void onthreadcreated(); para
meters none.
...void onthreadshuttingdown(); para
meters none.
nsIToolkitProfile
nsiprofilelock lock( out nsiprofileunlocker aunlocker ); para
meters aunlocker on error, contains an nsiprofileunlocker object you can use to unlock the profile.
...void remove( in boolean removefiles ); para
meters removefiles indicates whether or not the profile directory should be removed when the profile is removed from the profile list.
nsITreeContentView
long getindexofitem( in nsidomelement item ); para
meters item a tree row for which to find the row index.
...nsidomelement getitematindex( in long index ); para
meters index the row index for which to get the item return value the nsidomelement item.
nsIURLFormatter
astring formaturl( in astring aformat ); para
meters aformat unformatted url as a string.
...astring formaturlpref( in astring apref ); para
meters apref a string representing the name of the preference from which to fetch the url to format.
nsIUTF8ConverterService
autf8string convertstringtoutf8( in acstring astring, in string acharset, in boolean askipcheck, in boolean aallowsubstitution ); para
meters astring a string to ensure its utf8ness.
...autf8string converturispectoutf8( in acstring aspec, in string acharset ); para
meters aspec an url-escaped uri spec to ensure its utf8ness.
nsIUUIDGenerator
nsidptr generateuuid(); para
meters none.
...void generateuuidinplace( in nsnonconstidptr id ); para
meters id an existing nsid pointer where the uuid will be stored.
nsIUpdate
nsiupdatepatch getpatchat( in unsigned long index ); para
meters index the index of the patch to retrieve.
...nsidomelement serialize( in nsidomdocument updates ); para
meters updates the dom document into which to serialize the update.
nsIUpdateChecker
void checkforupdates( in nsiupdatechecklistener listener, in boolean force ); para
meters listener an object implementing nsiupdatechecklistener to be notified of the results of an update check.
...void stopchecking( in unsigned short duration ); para
meters duration one of the constants indicating the set of updates to stop.
nsIUpdateManager
nsiupdate getupdateat( in long index ); para
meters index an index into the history list for the nsiupdate to retrieve.
...void saveupdates(); para
meters none.
nsIWebBrowser
void addwebbrowserlistener( in nsiweakreference alistener, in nsiidref aiid ); para
meters alistener the listener to be added.
...void removewebbrowserlistener( in nsiweakreference alistener, in nsiidref aiid ); para
meters alistener the listener to be removed.
nsIWebContentHandlerRegistrar
registerprotocolhandler(in domstring protocol,in domstring uri, in domstring title, in nsidomwindow contentwindow) methods registercontenthandler summary of registercontenthandler void registercontenthandler( in domstring mimetype, in domstring uri, in domstring title, in nsidomwindow contentwindow ); para
meters mimetype the desired mime type as a string uri the uri to the handler as a string.
... registerprotocolhandler summary of registerprotocolhandler void registerprotocolhandler( in domstring protocol, in domstring uri, in domstring title, in nsidomwindow contentwindow ); para
meters protocol the protocol the site wishes to handle, specified as a string.
nsIWebProgressListener2
void onprogresschange64( in nsiwebprogress awebprogress, in nsirequest arequest, in long long acurselfprogress, in long long amaxselfprogress, in long long acurtotalprogress, in long long amaxtotalprogress ); para
meters awebprogress the nsiwebprogress instance that fired the notification.
...boolean onrefreshattempted( in nsiwebprogress awebprogress, in nsiuri arefreshuri, in long amillis, in boolean asameuri ); para
meters awebprogress the nsiwebprogress instance that fired the notification.
nsIWebappsSupport
void installapplication( in wstring title, in wstring uri, in wstring iconuri, in wstring icondata ); para
meters title the user-friendly name of the application.
...boolean isapplicationinstalled( in wstring uri ); para
meters uri the uri of the web application.
nsIWifiListener
void onchange( [array, size_is(alen)] in nsiwifiaccesspoint accesspoints, in unsigned long alen ); para
meters accesspoints an array of nsiwifiaccesspoint objects representing all currently-available wifi access points.
...void onerror( in long error ); para
meters error the nsresult value indicating the error that occurred.
nsIWifiMonitor
void startwatching( in nsiwifilistener alistener ); para
meters alistener the nsiwifilistener object to receive notifications when the wifi access point list changes.
...void stopwatching( in nsiwifilistener alistener ); para
meters alistener the nsiwifilistener object to stop receiving notifications on.
nsIWorkerScope
void close(); para
meters none.
...void postmessage( in domstring amessage, in nsiworkermessageport amessageport optional ); para
meters amessage the message to post.
nsIWritablePropertyBag
void deleteproperty( in astring name ); para
meters name property to delete.
...void setproperty( in astring name, in nsivariant value ); para
meters name property to set the value of.
nsIXULBuilderListener
void didrebuild( in nsixultemplatebuilder abuilder ); para
meters abuilder the template builder that has rebuilt the content.
...void willrebuild( in nsixultemplatebuilder abuilder ); para
meters abuilder the template builder that rebuilds the content.
nsIXULSortService
void insertcontainernode( in nsirdfcompositedatasource db, in nsrdfsortstate sortstateptr, in nsicontent root, in nsicontent trueparent, in nsicontent container, in nsicontent node, in boolean anotify ); para
meters db sortstateptr root trueparent container node anotify sort() sort the contents of the widget containing anode using asortkey as the comparison key, and asorthints as how to sort.
... void sort( in nsidomnode anode, in astring asortkey, in astring asorthints ); para
meters anode a node in the xul widget whose children are to be sorted.
nsPIPromptService
void dodialog( in nsidomwindow aparent, in nsidialogparamblock aparamblock, in string achromeurl ); para
meters aparent the parent window of the dialog.
... aparamblock various para
meters for the dialog.
NS_CStringContainerInit
#include "nsstringapi.h" nsresult ns_cstringcontainerinit( nscstringcontainer& astring ); para
meters astring [in] a nscstringcontainer instance to be initialized.
... example nscstringcontainer str; if (ns_succeeded(ns_cstringcontainerinit(str))) { // now, |str| can be used with any function taking a nsacstring para
meter.
NS_CStringGetData
#include "nsstringapi.h" pruint32 ns_cstringgetdata( const nsacstring& astring, const char** adata, prbool* aterminated = nsnull ); para
meters astring [in] a nsacstring instance to inspect.
... aterminated [out] this optional result para
meter indicates whether or not adata is null-terminated.
NS_CStringSetData
#include "nsstringapi.h" nsresult ns_cstringsetdata( nsacstring& astring, const char* adata, pruint32 adatalength = pr_uint32_max ); para
meters astring [in] a nsacstring instance to modify.
... example nscstringcontainer str; rv = ns_cstringcontainerinit(str); if (ns_succeeded(rv)) { rv = ns_cstringsetdata(str, "hello world"); if (ns_succeeded(rv)) { // now, pass |str| to some function expecting a |const nsacstring&| para
meter.
NS_CStringToUTF16
#include "nsstringapi.h" nsresult ns_cstringtoutf16( const nsacstring& asrc, nscstringencoding asrcencoding, nsastring& adest ); para
meters asrc [in] a nsacstring instance containing the source string to be converted.
...see nscstringencoding for the set of values that can be passed for this para
meter.
NS_StringContainerInit
#include "nsstringapi.h" nsresult ns_stringcontainerinit( nsstringcontainer& astring ); para
meters astring [in] a nsstringcontainer instance to be initialized.
...example code nsstringcontainer str; if (ns_succeeded(ns_stringcontainerinit(str))) { // now, |str| can be used with any function taking a nsastring para
meter.
NS_StringGetData
#include "nsstringapi.h" pruint32 ns_stringgetdata( const nsastring& astring, const prunichar** adata, prbool* aterminated ); para
meters astring [in] a nsastring instance to inspect.
...aterminated [out] this optional result para
meter indicates whether or not adata is null-terminated.
NS_StringSetData
#include "nsstringapi.h" nsresult ns_stringsetdata( nsastring& astring, const prunichar* adata, pruint32 adatalength = pr_uint32_max ); para
meters astring [in] a nsastring instance to modify.
... example code nsstringcontainer str; rv = ns_stringcontainerinit(str); if (ns_succeeded(rv)) { rv = ns_stringsetdata(str, "hello world"); if (ns_succeeded(rv)) { // now, pass |str| to some function expecting a |const nsastring&| para
meter.
NS_UTF16ToCString
#include "nsstringapi.h" nsresult ns_utf16tocstring( const nsastring& asrc, nscstringencoding adestencoding, nsacstring& adest ); para
meters asrc [in] a nsastring instance containing the source utf-16 string to be converted.
...see nscstringencoding for the set of values that can be passed for this para
meter.
Frequently Asked Questions
call a getter that uses a raw xpcom interface pointer as an `in/out' para
meter?
... call a getter that fills in an nsifoo*& para
meter?
WebIDL bindings
the return value of the attribute is returned via an out para
meter in the c++.
... dictionary return values are represented by an out para
meter whose type is a non-const reference to the struct described above, with all the members that have default values preinitialized to those default values.
Using C struct and pointers
the first para
meter of this method is the name of the type, which corresponds to the name of the c struct.
... the second para
meter is an array of field descriptors.
Using js-ctypes
it uses the default abi, returns a 16-bit integer (which is a carbon oserr value), and accepts an integer (the alert type), two strings, a pointer to a para
meter block, which we aren't using, and another integer, which is used to return the hit item.
... after that, we simply set up our para
meters by using makestr() to generate the two str255 strings we need, then call stdalert(), which produces the following alert window: the last thing we do is call carbon.close() to close the library when we're done using it.
Network request list - Firefox Developer Tools
edit and resend opens an editor enabling you to edit the request's method, url, para
meters, and headers, and resend the request.
... copy as curl the command may include the following options: -x [method] if the method is not get or post --data for url encoded request para
meters --data-binary for multipart request para
meters --http/version if the http version is not 1.1 -i if the method is head -h one for each request header.
Taking screenshots - Firefox Developer Tools
the command has the following optional para
meters: command type description --clipboard boolean when present, this para
meter will cause the screenshot to be copied to the clipboard.
...with this para
meter, even the parts of the webpage which are outside the current bounds of the window will be included in the screenshot.
Tips - Firefox Developer Tools
if no filename is included, the file name will be in this format: screen shot date at time.png the --fullpage para
meter is optional.
...see web console helpers for all para
meters.
AbsoluteOrientationSensor - Web APIs
to use this sensor, the user must grant permission to the 'accelero
meter', 'gyroscope', and 'magneto
meter' device sensors through the permissions api.
... const sensor = new absoluteorientationsensor(); promise.all([navigator.permissions.query({ name: "accelero
meter" }), navigator.permissions.query({ name: "magneto
meter" }), navigator.permissions.query({ name: "gyroscope" })]) .then(results => { if (results.every(result => result.state === "granted")) { sensor.start(); ...
AesGcmParams - Web APIs
the aesgcmparams dictionary of the web crypto api represents the object that should be passed as the algorithm para
meter into subtlecrypto.encrypt(), subtlecrypto.decrypt(), subtlecrypto.wrapkey(), or subtlecrypto.unwrapkey(), when using the aes-gcm algorithm.
... for details of how to supply appropriate values for this para
meter, see the specification for aes-gcm: nist sp800-38d, in particular section 5.2.1.1 on input data.
AnalyserNode.getByteFrequencyData() - Web APIs
syntax var audioctx = new audiocontext(); var analyser = audioctx.createanalyser(); var dataarray = new uint8array(analyser.frequencybincount); // uint8array should be the same length as the frequencybincount void analyser.getbytefrequencydata(dataarray); // fill the uint8array with data returned from getbytefrequencydata() para
meters array the uint8array that the frequency domain data will be copied to.
....fillstyle = 'rgb(0, 0, 0)'; canvasctx.fillrect(0, 0, width, height); var barwidth = (width / bufferlength) * 2.5; var barheight; var x = 0; for(var i = 0; i < bufferlength; i++) { barheight = dataarray[i]; canvasctx.fillstyle = 'rgb(' + (barheight+100) + ',50,50)'; canvasctx.fillrect(x,height-barheight/2,barwidth,barheight/2); x += barwidth + 1; } }; draw(); para
meters array the uint8array that the frequency domain data will be copied to.
AnalyserNode.getFloatTimeDomainData() - Web APIs
syntax var audioctx = new audiocontext(); var analyser = audioctx.createanalyser(); var dataarray = new float32array(analyser.fftsize); // float32array needs to be the same length as the fftsize analyser.getfloattimedomaindata(dataarray); // fill the float32array with data returned from getfloattimedomaindata() para
meters array the float32array that the time domain data will be copied to.
...vasctx.beginpath(); var slicewidth = width * 1.0 / bufferlength; var x = 0; for(var i = 0; i < bufferlength; i++) { var v = dataarray[i] * 200.0; var y = height/2 + v; if(i === 0) { canvasctx.moveto(x, y); } else { canvasctx.lineto(x, y); } x += slicewidth; } canvasctx.lineto(canvas.width, canvas.height/2); canvasctx.stroke(); }; draw(); para
meters array the float32array that the time domain data will be copied to.
AudioBuffer.copyFromChannel() - Web APIs
syntax myarraybuffer.copyfromchannel(destination, channelnumber, startinchannel); para
meters destination a float32array to copy the channel's samples to.
... exceptions indexsizeerror one of the input para
meters has a value that is outside the accepted range: the value of channelnumber specifies a channel number which doesn't exist (that is, it's greater than or equal to the value of numberofchannels on the channel).
AudioBuffer.getChannelData() - Web APIs
the getchanneldata() method of the audiobuffer interface returns a float32array containing the pcm data associated with the channel, defined by the channel para
meter (with 0 representing the first channel).
... syntax var myarraybuffer = audioctx.createbuffer(2, framecount, audioctx.samplerate); var nowbuffering = myarraybuffer.getchanneldata(channel); para
meters channel the channel property is an index representing the particular channel to get data for.
AudioListener.setPosition() - Web APIs
the three para
meters x, y and z are unitless and describe the listener's position in 3d space according to the right-hand cartesian coordinate system.
... para
meters x the x position of the listener in 3d space.
AudioParam.exponentialRampToValueAtTime() - Web APIs
the change starts at the time specified for the previous event, follows an exponential ramp to the new value given in the value para
meter, and reaches the new value at the time given in the endtime para
meter.
... syntax var audioparam = audioparam.exponentialramptovalueattime(value, endtime) para
meters value a floating point number representing the value the audioparam will ramp to by the given time.
AudioParam.linearRampToValueAtTime() - Web APIs
the change starts at the time specified for the previous event, follows a linear ramp to the new value given in the value para
meter, and reaches the new value at the time given in the endtime para
meter.
... syntax var audioparam = audioparam.linearramptovalueattime(value, endtime) para
meters value a floating point number representing the value the audioparam will ramp to by the given time.
AudioParam.maxValue - Web APIs
the maxvalue read-only property of the audioparam interface represents the maximum possible value for the para
meter's nominal (effective) range.
... syntax var maxval = audioparam.maxvalue; value a floating-point number indicating the maximum value permitted for the para
meter's nominal range.
AudioParam.minValue - Web APIs
the minvalue read-only property of the audioparam interface represents the minimum possible value for the para
meter's nominal (effective) range.
... syntax var minval = audioparam.minvalue; value a floating-point number indicating the minimum value permitted for the para
meter's nominal range.
AudioParam.setValueAtTime() - Web APIs
the new value is given in the value para
meter.
... syntax var audioparam = audioparam.setvalueattime(value, starttime) para
meters value a floating point number representing the value the audioparam will change to at the given time.
AudioParamMap - Web APIs
the web audio api interface audioparammap represents a set of multiple audio para
meters, each described as a mapping of a domstring identifying the para
meter to the audioparam object representing its value.
... properties the audioparammap object is accessed as a map in which each para
meter is identified by a name string which is mapped to an audioparam containing the value of that para
meter.
AudioProcessingEvent - Web APIs
the number of channels is defined as a para
meter, numberofinputchannels, of the factory method audiocontext.createscriptprocessor().
...the number of channels is defined as a para
meter, numberofoutputchannels, of the factory method audiocontext.createscriptprocessor().
AudioScheduledSourceNode.start() - Web APIs
syntax audioscheduledsourcenode.start([when [, offset [, duration]]]); para
meters when optional the time, in seconds, at which the sound should begin to play.
...a value of 0 (or omitting the when para
meter entirely) causes the sound to start playback immediately.
AudioScheduledSourceNode.stop() - Web APIs
syntax audioscheduledsourcenode.stop([when]); para
meters when optional the time, in seconds, at which the sound should stop playing.
...omitting this para
meter, specifying a value of 0, or passing a negative value causes the sound to stop playback immediately.
AudioWorkletNode() - Web APIs
syntax var node = new audioworkletnode(context, name); var node = new audioworkletnode(context, name, options); para
meters context the baseaudiocontext instance this node will be associated with.
... para
meterdata optional an object containing the initial values of custom audioparam objects on this node (in its para
meters property), with key being the name of a custom para
meter and value being its initial value.
Background Tasks API - Web APIs
that function, enqueuetask(), looks like this: function enqueuetask(taskhandler, taskdata) { tasklist.push({ handler: taskhandler, data: taskdata }); totaltaskcount++; if (!taskhandle) { taskhandle = requestidlecallback(runtaskqueue, { timeout: 1000 }); } schedulestatusrefresh(); } enqueuetask() accepts as input two para
meters: taskhandler is a function which will be called to handle the task.
... taskdata is an object which is passed into the task handler as an input para
meter, to allow the task to receive custom data.
BaseAudioContext.createBuffer() - Web APIs
syntax var buffer = baseaudiocontext.createbuffer(numofchannels, length, samplerate); para
meters note: for an in-depth explanation of how audio buffers work, and what these para
meters mean, read audio buffers: frames, samples and channels from our basic concepts guide.
... examples first, a couple of simple trivial examples, to help explain how the para
meters are used: var audioctx = new audiocontext(); var buffer = audioctx.createbuffer(2, 22050, 44100); if you use this call, you will get a stereo buffer (two channels), that, when played back on an audiocontext running at 44100hz (very common, most normal sound cards run at this rate), will last for 0.5 seconds: 22050 frames / 44100hz = 0.5 seconds.
BaseAudioContext.createChannelMerger() - Web APIs
syntax baseaudiocontext.createchannelmerger(numberofinputs); para
meters numberofinputs the number of channels in the input audio streams, which the output stream will contain; the default is 6 if this para
meter is not specified.
...to use them, you need to use the second and third para
meters of the audionode.connect(audionode) method, which allow you to specify both the index of the channel to connect from and the index of the channel to connect to.
BaseAudioContext.createChannelSplitter() - Web APIs
syntax baseaudiocontext.createchannelsplitter(numberofoutputs); para
meters numberofoutputs the number of channels in the input audio stream that you want to output separately; the default is 6 if this para
meter is not specified.
...to use them, you need to use the second and third para
meters of the audionode.connect(audionode) method, which allow you to specify the index of the channel to connect from and the index of the channel to connect to.
Blob() - Web APIs
the content of the blob consists of the concatenation of the values given in the para
meter array.
... syntax var newblob = new blob(array, options); para
meters array an array of arraybuffer, arraybufferview, blob, usvstring objects, or a mix of any of such objects, that will be put inside the blob.
Bluetooth.requestDevice() - Web APIs
para
meters options optional an object that sets options for the device request.
...this filter consists of an array of bluetoothserviceuuids, a name para
meter, and a nameprefix para
meter.
BroadcastChannel.onmessage - Web APIs
syntax channel.onmessage = function; values function is the name of a user-defined function, without the () suffix or any para
meters, or an anonymous function declaration, such as function(event) {...}.
... an event handler always has one single para
meter, containing the event, here of type messageevent.
CSS.escape() - Web APIs
the css.escape() static method returns a cssomstring containing the escaped string passed as para
meter, mostly for use as part of a css selector.
... syntax escapedstr = css.escape(str); para
meters str the cssomstring to be escaped.
CSS.supports() - Web APIs
syntax css.supports(propertyname, value); css.supports(supportcondition); para
meters there are two distinct sets of para
meters.
... the second syntax takes one para
meter matching the condition of @supports: supportcondition a domstring containing the condition to check.
CSS - Web APIs
css.supports() returns a boolean indicating if the pair property-value, or the condition, given in para
meter is supported.
... css factory functions can be used to return a new cssunitvalue with a value of the para
meter number of the units of the name of the factory function method used.
CSSKeyframesRule - Web APIs
the para
meter is a domstring containing a keyframe in the same format as an entry of a @keyframes at-rule.
...the para
meter is the index of the keyframe to be deleted, expressed as a domstring resolving as a number between 0% and 100%.
CSSStyleDeclaration.setProperty() - Web APIs
syntax style.setproperty(propertyname, value, priority); para
meters propertyname is a domstring representing the css property name (hyphen case) to be modified.
... note: value must not contain "!important" -- that should be set using the priority para
meter.
CSSStyleSheet.insertRule() - Web APIs
syntax stylesheet.insertrule(rule [, index]) para
meters rule a domstring containing the rule to be inserted.
... if more than one rule is given in the rule para
meter, the method aborts with a syntaxerror.
CanvasRenderingContext2D.arcTo() - Web APIs
the arc is automatically connected to the path's latest point with a straight line, if necessary for the specified para
meters.
... syntax void ctx.arcto(x1, y1, x2, y2, radius); para
meters x1 the x-axis coordinate of the first control point.
CanvasRenderingContext2D.createLinearGradient() - Web APIs
syntax canvasgradient ctx.createlineargradient(x0, y0, x1, y1); the createlineargradient() method is specified by four para
meters defining the start and end points of the gradient line.
... para
meters x0 the x-axis coordinate of the start point.
CanvasRenderingContext2D.createRadialGradient() - Web APIs
syntax canvasgradient ctx.createradialgradient(x0, y0, r0, x1, y1, r1); the createradialgradient() method is specified by six para
meters, three defining the gradient's start circle, and three defining the end circle.
... para
meters x0 the x-axis coordinate of the start circle.
CanvasRenderingContext2D.fillText() - Web APIs
an optional para
meter allows specifying a maximum width for the rendered text, which the user agent will achieve by condensing the text or by using a lower font size.
... syntax canvasrenderingcontext2d.filltext(text, x, y [, maxwidth]); para
meters text a domstring specifying the text string to render into the context.
CanvasRenderingContext2D.setLineDash() - Web APIs
syntax ctx.setlinedash(segments); para
meters segments an array of numbers that specify distances to alternately draw a line and a gap (in coordinate space units).
...it receives a pattern array as its only para
meter.
CanvasRenderingContext2D.strokeText() - Web APIs
an optional para
meter allows specifying a maximum width for the rendered text, which the user agent will achieve by condensing the text or by using a lower font size.
... syntax canvasrenderingcontext2d.stroketext(text, x, y [, maxwidth]); para
meters text a domstring specifying the text string to render into the context.
CanvasRenderingContext2D - Web APIs
gradients and patterns canvasrenderingcontext2d.createlineargradient() creates a linear gradient along the line given by the coordinates represented by the para
meters.
... canvasrenderingcontext2d.createradialgradient() creates a radial gradient given by the coordinates of the two circles represented by the para
meters.
Pixel manipulation with canvas - Web APIs
l.data; var rgba = 'rgba(' + data[0] + ', ' + data[1] + ', ' + data[2] + ', ' + (data[3] / 255) + ')'; color.style.background = rgba; color.textcontent = rgba; } canvas.addeventlistener('mousemove', pick); painting pixel data into a context you can use the putimagedata() method to paint pixel data into a context: ctx.putimagedata(myimagedata, dx, dy); the dx and dy para
meters indicate the device coordinates within the context at which to paint the top left corner of the pixel data you wish to draw.
...it returns a data uri containing a representation of the image in the format specified by the type para
meter (defaults to png).
ChannelMergerNode() - Web APIs
syntax var mynode = new channelmergernode(context, options); para
meters context a baseaudiocontext representing the audio context you want the node to be associated with.
... options optional a channelmergeroptions dictionary object defining the properties you want the channelmergernode to have (also inherits para
meters from the audionodeoptions dictionary): numberofinputs: a number defining the number of inputs the channelmergernode should have.
ChannelMergerNode - Web APIs
if channelmergernode has one single output, but as many inputs as there are channels to merge; the number of inputs is defined as a para
meter of its constructor and the call to audiocontext.createchannelmerger.
...to use them, you need to use the second and third para
meters of the audionode.connect(audionode) method, which allow you to specify both the index of the channel to connect from and the index of the channel to connect to.
ChannelSplitterNode - Web APIs
if your channelsplitternode always has one single input, the amount of outputs is defined by a para
meter on its constructor and the call to audiocontext.createchannelsplitter().
...to use them, you need to use the second and third para
meters of the audionode.connect(audionode) method, which allow you to specify the index of the channel to connect from and the index of the channel to connect to.
Clients.matchAll() - Web APIs
include the options para
meter to return all service worker clients whose origin is the same as the associated service worker's origin.
... syntax self.clients.matchall(options).then(function(clients) { // do something with your clients list }); para
meters options optional an options object allowing you to set options for the matching operation.
ClipboardItem.getType() - Web APIs
syntax var blob = clipboarditem.gettype(type); para
meters type a valid mime type.
... typeerror no para
meter is specified or the type is not that of the clipboarditem.
Console.profileEnd() - Web APIs
syntax console.profileend(profilename); para
meters profilename the name to give the profile.
... this para
meter is optional.
ConstrainDOMString - Web APIs
it allows you to specify one or more exact string values from which one must be the para
meter's value, or a set of ideal values which should be used if possible.
... candidate recommendation initial definition technically, constraindomstring is actually based on an intermediary dictionary named constraindomstringpara
meters, which adds exact and ideal to domstring.
Crypto.getRandomValues() - Web APIs
the array given as the para
meter is filled with random numbers (random in its cryptographic meaning).
... syntax typedarray = cryptoobj.getrandomvalues(typedarray); para
meters typedarray an integer-based typedarray, that is an int8array, a uint8array, an int16array, a uint16array, an int32array, or a uint32array.
DOMTokenList.forEach() - Web APIs
the foreach() method of the domtokenlist interface calls the callback given in para
meter once for each value pair in the list, in insertion order.
... syntax tokenlist.foreach(callback [, thisarg]); para
meters callback function to execute for each element, eventually taking three arguments: currentvalue the current element being processed in the array.
DataTransfer.clearData() - Web APIs
syntax datatransfer.cleardata([format]); para
meters format optional a string which specifies the type of data to remove.
... if this para
meter is an empty string or is not provided, the data for all types is removed.
DataTransferItem.getAsString() - Web APIs
syntax datatransferitem.getasstring(callback); para
meters callback a callback function that has access to the data transfer item's string data.
... return value undefined callback the callback para
meter is a callback function which accepts one para
meter: domstring the drag data item's string data.
DataTransferItem.webkitGetAsEntry() - Web APIs
syntax datatransferitem.webkitgetasentry(); para
meters none.
...this function takes as input a filesystementry representing an entry in the file system to be scanned and processed (the item para
meter), and an element into which to insert the list of contents (the container para
meter).
DataTransferItemList.add() - Web APIs
syntax datatransferitem = datatransferitemlist.add(data, type); datatransferitem = datatransferitemlist.add(file); para
meters data a string representing the drag item's data.
... exceptions notsupportederror a string data para
meter was provided, and the list already contains an item whose kind is "plain unicode string" and whose type is equal to the specified type para
meter.
DedicatedWorkerGlobalScope.postMessage() - Web APIs
this accepts a single para
meter, which is the data to send to the worker.
... syntax postmessage(amessage, transferlist); para
meters amessage the object to deliver to the main thread; this will be in the data field in the event delivered to the worker.onmessage handler.
DeprecationReportBody - Web APIs
the report details are displayed via the displayreports() fuction, which takes the observer callback's reports para
meter as its para
meter: function displayreports(reports) { const outputelem = document.queryselector('.output'); const list = document.createelement('ul'); outputelem.appendchild(list); for(let i = 0; i < reports.length; i++) { let listitem = document.createelement('li'); let textnode = document.createtextnode('report ' + (i + 1) + ', type: ' + reports[i].type); listitem.appendchi...
...(textnode); let innerlist = document.createelement('ul'); listitem.appendchild(innerlist); list.appendchild(listitem); for (let key in reports[i].body) { let innerlistitem = document.createelement('li'); let keyvalue = reports[i].body[key]; innerlistitem.textcontent = key + ': ' + keyvalue; innerlist.appendchild(innerlistitem); } } } the reports para
meter contains an array of all the reports in the observer's report queue.
DeviceProximityEvent.max - Web APIs
the max property provides the maximum sensing distance the sensor is able to report, in centi
meters.
... syntax var value = instanceofdeviceproximityevent.max; value a positive number indicating the maximum distance, in centi
meters (cm), that the device's proximity sensor is able to detect and report.
DeviceProximityEvent.min - Web APIs
the min property provides the minimum distance the sensor can report, in centi
meters.
... syntax var value = instanceofdeviceproximityevent.min; value a positive number indicating the minimum distance, in centi
meters (cm), the device's proximity sensor can report.
DeviceProximityEvent.value - Web APIs
the value property of deviceproximityevent objects provides the current distance between the device and the detected object, in centi
meters.
... syntax var distance = instanceofdeviceproximityevent.value; value a positive number representing a distance in centi
meters (cm) between the device's proximity sensor and the detected object.
Document.createElementNS() - Web APIs
syntax var element = document.createelementns(namespaceuri, qualifiedname[, options]); para
meters namespaceuri a string that specifies the namespace uri to associate with the element.
...see extending native html elements for more information on how to use this para
meter.
Document.createNodeIterator() - Web APIs
note: prior to gecko 12.0 (firefox 12.0 / thunderbird 12.0 / seamonkey 2.9), this method accepted an optional fourth para
meter (entityreferenceexpansion) that is not part of the dom4 specification, and has therefore been removed.
... this para
meter indicated whether or not the children of entity reference nodes were visible to the iterator.
Document.createProcessingInstruction() - Web APIs
syntax pinode = document.createprocessinginstruction(target, data) para
meters pinode is the resulting processinginstruction node.
... obsolete added more explicit definition of how the data para
meter is validated.
Document.createTouchList() - Web APIs
syntax var list = documenttouch.createtouchlist([touch1 [, touch2 [, ...]]]); para
meters touches zero or more touch objects.
... return value list a touchlist object containing the touch objects specified by the touches para
meter.
Document.enableStyleSheetsForSet() - Web APIs
syntax document.enablestylesheetsforset(name); para
meters name the name of the style sheets to enable.
...specify an empty string for the name para
meter to disable all alternate and preferred style sheets (but not the persistent style sheets; that is, those with no title attribute).
Document.getElementById() - Web APIs
syntax var element = document.getelementbyid(id); para
meters id the id of the element to locate.
...note that the id para
meter is case-sensitive, so document.getelementbyid("main") will return null instead of the element <div id="main"> because "m" and "m" are different for the purposes of this method.
Document.getElementsByTagNameNS() - Web APIs
note: currently para
meters in this method are case-sensitive, but they were case-insensitive in firefox 3.5 and before.
... example in the following example getelementsbytagnamens starts from a particular parent element, and searches topdown recursively through the dom from that parent element, looking for child elements matching the tag name para
meter.
Document.open() - Web APIs
syntax document.open(); para
meters none.
...this is no longer the case.document non-spec'ed para
meters to document.open gecko-specific notes starting with gecko 1.9, this method is subject to the same same-origin policy as other properties, and does not work if doing so would change the document's origin.
DocumentFragment.querySelector() - Web APIs
if the selectors specified in para
meter are invalid a domexception with a syntax_err value is raised.
... syntax element = documentfragment.queryselector(selectors); para
meters selectors is a domstring containing one or more css selectors separated by commas.
DocumentFragment.querySelectorAll() - Web APIs
if the selectors specified in para
meter are invalid a domexception with a syntax_err value is raised.
... syntax elementlist = documentfragment.queryselectorall(selectors); para
meters selectors is a domstring containing one or more css selectors separated by commas.
DocumentOrShadowRoot.elementFromPoint() - Web APIs
syntax const element = document.elementfrompoint(x, y) para
meters x the horizontal coordinate of a point, relative to the left edge of the current viewport.
... javascript function changecolor(newcolor) { elem = document.elementfrompoint(2, 2); elem.style.color = newcolor; } the changecolor() method simply obtains the element located at the specified point, then sets that element's current foreground color property to the color specified by the newcolor para
meter.
EXT_disjoint_timer_query.getQueryObjectEXT() - Web APIs
syntax any ext.getqueryobjectext(query, pname); para
meters query a webglquery object from which to return information.
... ext.endqueryext(ext.time_elapsed_ext); // at some point in the future, after returning control to the browser var available = ext.getqueryobjectext(query, ext.query_result_available_ext); var disjoint = gl.getpara
meter(ext.gpu_disjoint_ext); if (available && !disjoint) { // see how much time the rendering of the object took in nanoseconds.
EcdhKeyDeriveParams - Web APIs
the ecdhkeyderiveparams dictionary of the web crypto api represents the object that should be passed as the algorithm para
meter into subtlecrypto.derivekey(), when using the ecdh algorithm.
... the para
meters for ecdh derivekey() therefore include the other entity's public key, which is combined with this entity's private key to derive the shared secret.
Element.scroll() - Web APIs
syntax element.scroll(x-coord, y-coord) element.scroll(options) para
meters calling with coordinates x-coord the pixel along the horizontal axis of the element that you want displayed in the upper left.
...chrome android full support 45firefox android full support 36opera android full support 32safari ios no support nosamsung internet android full support 5.0scrolltooptions para
meterchrome full support 45edge full support 79firefox full support yesie no support noopera full support 32safari no support nowebview...
Element.scrollTo() - Web APIs
syntax element.scrollto(x-coord, y-coord) element.scrollto(options) para
meters x-coord is the pixel along the horizontal axis of the element that you want displayed in the upper left.
...chrome android full support 45firefox android full support 36opera android full support 32safari ios no support nosamsung internet android full support 5.0scrolltooptions para
meterchrome full support 45edge full support 79firefox full support yesie no support noopera full support 32safari no support nowebview...
Element - Web APIs
element.closest() returns the element which is the closest ancestor of the current element (or the current element itself) which matches the selectors given in para
meter.
... element.getelementsbyclassname() returns a live htmlcollection that contains all descendants of the current element that possess the list of classes given in the para
meter.
ErrorEvent - Web APIs
constructor errorevent() creates an errorevent event with the given para
meters.
... living standard added the error property and the 5th para
meter to the constructor.
ExtendableMessageEvent() - Web APIs
syntax var extendablemessageevent = new extendablemessageevent(type, init); para
meters type a domstring that defines the type of the message event being created.
... init optional an initialisation object, which should contain the following para
meters: data: the event's data — this can be any data type.
FileEntrySync - Web APIs
void createwriter ( ) raises (fileexception); para
meter none.
... void file ( ) raises (fileexception); para
meter none.
FileReader.readAsText() - Web APIs
syntax instanceoffilereader.readastext(blob[, encoding]); para
meters blob the blob or file from which to read.
...by default, utf-8 is assumed if this para
meter is not specified.
FileReaderSync.readAsText() - Web APIs
syntax readastext(file); readastext(blob); readastext(file, encoding); readastext(blob, encoding); para
meters blob the dom file or blob to read.
... encoding the optional para
meter specifies encoding to be used (e.g., iso-8859-1 or utf-8).
FileSystemEntry.toURL() - Web APIs
syntax filesystementry.tourl([mimetype]); para
meters mimetype optional an optional string specifying the mime type to use when interpreting the file.
...if this para
meter is omitted, the user agent uses its standard algorithms to identify the file.
FontFaceSet.load() - Web APIs
the load() method of the fontfaceset forces all the fonts given in para
meters to be loaded.
... para
meters font: a font specification using the css value syntax, e.g.
Using FormData Objects - Web APIs
you can also append a file or blob directly to the formdata object, like this: data.append("myfile", myblob, "filename.txt"); when using the append() method it is possible to use the third optional para
meter to pass a filename inside the content-disposition header that is sent to the server.
... when no filename is specified (or the para
meter isn't supported), the name "blob" is used.
FormData.append() - Web APIs
syntax there are two versions of this method: a two and a three para
meter version: formdata.append(name, value); formdata.append(name, value, filename); para
meters name the name of the field whose data is contained in value.
... filename optional the filename reported to the server (a usvstring), when a blob or file is passed as the second para
meter.
FormData.getAll() - Web APIs
syntax formdata.getall(name); para
meters name a usvstring representing the name of the key you want to retrieve.
... returns an array of formdataentryvalues whose key matches the value passed in the name para
meter.
FormData.set() - Web APIs
syntax there are two versions of this method: a two and a three para
meter version: formdata.set(name, value); formdata.set(name, value, filename); para
meters name the name of the field whose data is contained in value.
... filename optional the filename reported to the server (a usvstring), when a blob or file is passed as the second para
meter.
GainNode() - Web APIs
syntax var gainnode = new gainnode(context, options) para
meters inherits para
meters from the audionodeoptions dictionary.
...this para
meter is a-rate and it's nominal range is (-∞,+∞).
Geolocation.watchPosition() - Web APIs
syntax navigator.geolocation.watchposition(success[, error[, options]]) para
meters success a callback function that takes a geolocationposition object as an input para
meter.
... error optional an optional callback function that takes a geolocationpositionerror object as an input para
meter.
GeolocationCoordinates.accuracy - Web APIs
the geolocationcoordinates.accuracy read-only property is a strictly positive double representing the accuracy, with a 95% confidence level, of the geolocationcoordinates.latitude and geolocationcoordinates.longitude properties expressed in
meters.
... syntax let acc = geolocationcoordinatesinstance.accuracy value a positive double representing the accuracy, with a 95% confidence level, of the geolocationcoordinates.latitude and geolocationcoordinates.longitude properties expressed in
meters.
GeolocationCoordinates.altitude - Web APIs
the geolocationcoordinates.altitude read-only property is a double representing the altitude of the position in
meters, relative to sea level.
... syntax let alt = geolocationcoordinatesinstance.altitude value a double representing the altitude of the position in
meters, relative to sea level.
GeolocationCoordinates.altitudeAccuracy - Web APIs
the geolocationcoordinates.altitudeaccuracy read-only property is a strictly positive double representing the accuracy, with a 95% confidence level, of the altitude expressed in
meters.
... syntax let altacc = geolocationcoordinatesinstance.altitudeaccuracy value a positive double representing the accuracy, with a 95% confidence level, of the altitude expressed in
meters.
GeolocationCoordinates.speed - Web APIs
the geolocationcoordinates.speed read-only property is a double representing the velocity of the device in
meters per second.
... syntax let speed = geolocationcoordinatesinstance.speed value a double representing the velocity of the device in
meters per second.
HTMLCanvasElement.toBlob() - Web APIs
syntax canvas.toblob(callback, mimetype, qualityargument); para
meters callback a callback function with the resulting blob object as a single argument.
...ent.getelementbyid('canvas'); canvas.toblob(function(blob) { var newimg = document.createelement('img'), url = url.createobjecturl(blob); newimg.onload = function() { // no longer need to read the blob so it's revoked url.revokeobjecturl(url); }; newimg.src = url; document.body.appendchild(newimg); }); note that here we're creating a png image; if you add a second para
meter to the toblob() call, you can specify the image type.
HTMLCanvasElement.toDataURL() - Web APIs
the htmlcanvaselement.todataurl() method returns a data uri containing a representation of the image in the format specified by the type para
meter (defaults to png).
... syntax canvas.todataurl(type, encoderoptions); para
meters type optional a domstring indicating the image format.
HTMLHyperlinkElementUtils.search - Web APIs
the htmlhyperlinkelementutils.search property is a search string, also called a query string, that is usvstring containing a '?' followed by the para
meters of the url.
... modern browsers provide urlsearchparams and url.searchparams to make it easy to parse out the para
meters from the querystring.
HTMLMediaElement.canPlayType() - Web APIs
syntax canplayresponse = audioorvideo.canplaytype(mediatype); para
meters mediatype a domstring containing the mime type of the media.
...the string will be one of the following values: probably media of the type indicated by the mediatype para
meter is probably playable on this device.
HTMLMediaElement.play() - Web APIs
syntax var promise = htmlmediaelement.play(); para
meters none.
... exceptions the promise's rejection handler is called with an exception name passed in as its sole input para
meter (as opposed to a traditional exception being thrown).
Option() - Web APIs
syntax var optionelementreference = new option(text, value, defaultselected, selected); para
meters text optional a domstring representing the content of the element, i.e.
... examples just add new options /* assuming we have the following html <select id='s'> </select> */ var s = document.getelementbyid('s'); var options = [four, five, six]; options.foreach(function(element,key) { s[key] = new option(element,key); }); append options with different para
meters /* assuming we have the following html <select id="s"> <option>first</option> <option>second</option> <option>third</option> </select> */ var s = document.getelementbyid('s'); var options = [ 'zero', 'one', 'two' ]; options.foreach(function(element, key) { if (element == 'zero') { s[s.options.length] = new option(element, s.options.length, false, false); } if (element ==...
HTMLSelectElement.item() - Web APIs
the htmlselectelement.item() method returns the element corresponding to the htmloptionelement whose position in the options list corresponds to the index given in the para
meter, or null if there are none.
... syntax var item = collection.item(index); var item = collection[index]; para
meters index is an unsigned long.
HTMLTableElement.deleteRow() - Web APIs
syntax htmltableelement.deleterow(index) para
meters index index is an integer representing the row that should be deleted.
... return value no return value errors thrown if the number of the row to delete, specified by the para
meter, is greater or equal to the number of available rows, or if it is negative and not equal to the special index -1, representing the last row of the table, the exception index_size_err is thrown.
Headers.delete() - Web APIs
this method throws a typeerror for the following reasons: the value of the name para
meter is not the name of an http header.
... syntax myheaders.delete(name); para
meters name the name of the http header you want to delete from the headers object.
History.go() - Web APIs
you can use it to move forwards and backwards through the history depending on the value of a para
meter.
... syntax history.go([delta]) para
meters delta optional the position in the history to which you want to move, relative to the current page.
IDBCursor.advance() - Web APIs
syntax cursor.advance(count); para
meters count the number of times to move the cursor forward.
... typeerror the value passed into the count para
meter was zero or a negative number.
IDBCursorSync - Web APIs
methods continue() advances the cursor to the next position along its direction, to the item whose key matches the optional key para
meter.
... bool continue ( in optional any key ); para
meters key the key to which to move the cursor's position.
IDBFactory.deleteDatabase() - Web APIs
syntax for the current standard: var request = indexeddb.deletedatabase(name); for the experimental version with options (see below): var request = indexeddb.deletedatabase(name, options); para
meters name the name of the database you want to delete.
... optionsnon-standard in gecko, since version 26, you can include a non-standard optional storage para
meter that specifies whether you want to delete a permanent (the default value) indexeddb, or an indexeddb in temporary storage (aka shared pool.) return value a idbopendbrequest on which subsequent events related to this request are fired.
IDBFactorySync - Web APIs
idbdatabasesync open ( in domstring name, in domstring description ) raises (idbdatabaseexception); para
meters name the name for the database.
... exceptions this method can raise an idbdatabaseexception with the following codes: non_transient_err if the name para
meter is not valid.
IDBIndex.getAll() - Web APIs
syntax var getallkeysrequest = idbindex.getall(); var getallkeysrequest = idbindex.getall(query); var getallkeysrequest = idbindex.getall(query, count); para
meters query optional a key or an idbkeyrange identifying the records to retrieve.
... a typeerror exception is thrown if the count para
meter is not between 0 and 232-1 included.
IDBIndex.getAllKeys() - Web APIs
syntax var allkeysrequest = idbindex.getallkeys(); var allkeysrequest = idbindex.getallkeys(query); var allkeysrequest = idbindex.getallkeys(query, count); para
meters query optional a key or an idbkeyrange identifying the keys to retrieve.
... a typeerror exception is thrown if the count para
meter is not between 0 and 232-1 included.
IDBIndex.openCursor() - Web APIs
syntax var request = myindex.opencursor(); var request = myindex.opencursor(range); var request = myindex.opencursor(range, direction); para
meters range optional a key or idbkeyrange to use as the cursor's range.
... typeerror the value for the direction para
meter is invalid.
IDBIndex.openKeyCursor() - Web APIs
syntax var request = myindex.openkeycursor(); var request = myindex.openkeycursor(range); var request = myindex.openkeycursor(range, direction); para
meters range optional a key or idbkeyrange to use as the cursor's range.
... typeerror the value for the direction para
meter is invalid.
IDBKeyRange.bound() - Web APIs
syntax var myidbkeyrange = idbkeyrange.bound(lower, upper); var myidbkeyrange = idbkeyrange.bound(lower, upper, loweropen); var myidbkeyrange = idbkeyrange.bound(lower, upper, loweropen, upperopen); para
meters lower specifies the lower bound of the new key range.
... exceptions this method may raise a domexception of the following type: exception description dataerror the following conditions raise an exception: the lower or upper para
meters were not passed a valid key.
IDBKeyRange.lowerBound() - Web APIs
syntax var myidbkeyrange = idbkeyrange.lowerbound(lower); var myidbkeyrange = idbkeyrange.lowerbound(lower, open); para
meters lower specifies the lower bound of the new key range.
... exceptions this method may raise a domexception of the following type: exception description dataerror the value para
meter passed was not a valid key.
IDBKeyRange.only() - Web APIs
syntax var myidbkeyrange = idbkeyrange.only(value); para
meters value is the value for the new key range.
... exceptions this method may raise a domexception of the following types: exception description dataerror the value para
meter passed was not a valid key.
IDBKeyRange.upperBound() - Web APIs
syntax var myidbkeyrange = idbkeyrange.upperbound(upper[, open=false]) para
meters bound specifies the upper bound of the new key range.
... exceptions this method may raise a domexception of the following type: exception description dataerror the value para
meter passed was not a valid key.
IDBObjectStore.getAllKeys() - Web APIs
the getallkeys() method of the idbobjectstore interface returns an idbrequest object retrieves record keys for all objects in the object store matching the specified para
meter or all objects in the store if no para
meters are given.
... syntax var request = objectstore.getallkeys(); var request = objectstore.getallkeys(query); var request = objectstore.getallkeys(query, count); para
meters query optional a value that is or resolves to an idbkeyrange.
IDBRequest.onerror - Web APIs
the event handler takes one para
meter, an error event with type="error".
...is new request succeeds, run the displaydata() // function again to update the display updatetitlerequest.onsuccess = function() { displaydata(); }; }; objectstoretitlerequest.onerror = function() { // if an error occurs with the request, log what it is console.log("there has been an error with retrieving your data: " + objectstoretitlerequest.error); // todo what about event para
meter into onerror()?
compareVersion - Web APIs
method of installtrigger object syntax int compareversion ( string registryname, installversion version); int compareversion ( string registryname, string version); int compareversion ( string registryname, int major, int minor, int release, int build); para
meters the compareversion method has the following para
meters: registryname the pathname in the client version registry for the component whose version is to be compared.
... this para
meter can be an absolute pathname, such as /royalairways/royalsw or a relative pathname, such as plugsin/royalairway/royalsw.
install - Web APIs
method of installtrigger object syntax int install(array xpilist [, function callbackfunc ] ) para
meters the install method has the following para
meters: xpilist an array of files to be installed (see example below).
...to surface detail about the status of the installation, use the optional callback function and its status para
meter, as in the example below.
IntersectionObserver.IntersectionObserver() - Web APIs
syntax var observer = new intersectionobserver(callback[, options]); para
meters callback a function which is called when the percentage of the target element is visible crosses a threshold.
... the callback receives as input two para
meters: entries an array of intersectionobserverentry objects, each representing one threshold which was crossed, either becoming more or less visible than the percentage specified by that threshold.
Timing element visibility with the Intersection Observer API - Web APIs
then we load a new ad by calling loadrandomad(), specifying the ad to be replaced as an input para
meter.
... as we saw previously, loadrandomad() will replace an existing ad with content and data corresponding to a new ad, if you specify an existing ad's element as an input para
meter.
LinearAccelerationSensor.LinearAccelerationSensor() - Web APIs
syntax var linearaccelerationsensor = new linearaccelerationsensor([options]) para
meters options optional options are as follows: frequency: the desired number of times per second a sample should be taken, meaning the number of times per second that sensor.onreading will be called.
... accelero
meterthe definition of 'linearaccelerationsensor' in that specification.
LinearAccelerationSensor - Web APIs
to use this sensor, the user must grant permission to the 'accelero
meter' device sensor through the permissions api.
... accelero
meterthe definition of 'linearaccelerationsensor' in that specification.
Location: search - Web APIs
the search property of the location interface is a search string, also called a query string; that is, a usvstring containing a '?' followed by the para
meters of the url.
... modern browsers provide urlsearchparams and url.searchparams to make it easy to parse out the para
meters from the querystring.
LockedFile.readAsText() - Web APIs
syntax var request = instanceoflockedfile.readastext(size[, encoding]); para
meters size a number representing the number of bytes to read in the file.
...by default, utf-8 is assumed if this para
meter is not specified.
LockedFile.truncate() - Web APIs
if the method is called with an argument, the operation removes all the bytes starting at the index corresponding to the para
meter and regardless of the value of lockedfile.location.
... syntax var request = instanceoflockedfile.truncate(start); para
meters start optional a number representing the index where to start the operation.
MediaDevices.getDisplayMedia() - Web APIs
syntax var promise = navigator.mediadevices.getdisplaymedia(constraints); para
meters constraints optional an optional mediastreamconstraints object specifying requirements for the returned mediastream.
... example in the example below, a startcapture() method is created which initiates screen capture given a set of options specified by the displaymediaoptions para
meter.
MediaDevices.getUserMedia() - Web APIs
syntax var promise = navigator.mediadevices.getusermedia(constraints); para
meters constraints a mediastreamconstraints object specifying the types of media to request, along with any requirements for each type.
... the constraints para
meter is a mediastreamconstraints object with two members: video and audio, describing the media types requested.
MediaRecorder.start() - Web APIs
syntax mediarecorder.start(timeslice) para
meters timeslice optional the number of milliseconds to record into each blob.
... if this para
meter isn't included, the entire media duration is recorded into a single blob unless the requestdata() method is called to obtain the blob and trigger the creation of a new blob into which the media continues to be recorded.
MediaSource.isTypeSupported() - Web APIs
syntax var isitsupported = mediasource.istypesupported(mimetype); para
meters mimetype the mime media type that you want to test support for in the current browser.
... this may include the codecs para
meter to provide added details about the codecs used within the file.
MediaStream() - Web APIs
if any para
meters are given, the specified tracks are added to the new stream.
... syntax newstream = new mediastream(); newstream = new mediastream(stream); newstream = new mediastream(tracks[]); para
meters stream a different mediastream object whose tracks are added to the newly-created stream automatically.
MediaStream.addTrack() - Web APIs
the track is specified as a para
meter of type mediastreamtrack.
... syntax stream.addtrack(track); para
meters track a mediastreamtrack to add to the stream.
MediaStream - Web APIs
mediastream.gettrackbyid() returns the track whose id corresponds to the one given in para
meters, trackid.
... if no para
meter is given, or if no track with that id does exist, it returns null.
MediaStreamTrack.applyConstraints() - Web APIs
syntax const appliedpromise = track.applyconstraints([constraints]) para
meters constraints optional a mediatrackconstraints object listing the constraints to apply to the track's constrainable properties; any existing constraints are replaced with the new values specified, and any constrainable properties not included are restored to their default constraints.
... if this para
meter is omitted, all currently set custom constraints are cleared.
MediaStreamTrack.onoverconstrained - Web APIs
syntax track.onoverconstrained = function; values function is the name of a user-defined function, without the () suffix or any para
meters, or an anonymous function declaration, such as function(event) {...}.
... an event handler always has one single para
meter, containing the event, here of type mediastreamerrorevent.
msSetMediaProtectionManager - Web APIs
syntax htmlmediaelement.mssetmediaprotectionmanager(mediaprotectionmanager); para
meters the windows.media.protection namespace provides classes to manage digital rights management (drm) media contents.
... the optional para
meter of the mssetmediaprotectionmanager property is mediaprotectionmanager and can be any type.
MutationObserver.MutationObserver() - Web APIs
syntax const observer = new mutationobserver(callback) para
meters callback a function which will be called on each dom change that qualifies given the observed node or subtree and options.
... the callback function takes as input two para
meters: an array of mutationrecord objects, describing each change that occurred; and the mutationobserver which invoked the callback.
Navigator.getUserMedia() - Web APIs
syntax navigator.getusermedia(constraints, successcallback, errorcallback); para
meters constraints a mediastreamconstraints object specifying the types of media to request, along with any requirements for each type.
...the function is called with one para
meter: the mediastream object that contains the media stream.
Web-based protocol handlers - Web APIs
for example: navigator.registerprotocolhandler("web+burger", "http://www.google.co.uk/?uri=%s", "burger handler"); where the para
meters are: the protocol.
...so, using the above examples, the browser would perform a get on this url: http://www.google.co.uk/?uri=web+burger:cheeseburger server side code can extract the query string para
meters and perform the desired action.
Navigator.requestMediaKeySystemAccess() - Web APIs
syntax promise = navigator.requestmediakeysystemaccess(keysystem, supportedconfigurations); para
meters keysystem a domstring identifying the key system.
...the fulfillment handler receives as input just one para
meter: mediakeysystemaccess a mediakeysystemaccess object representing the media key system configuration described by keysystem and supportedconfigurations exceptions in case of an error, the returned promise is rejected with a domexception whose name indicates what kind of error occurred.
Navigator.sendBeacon() - Web APIs
syntax navigator.sendbeacon(url, data); para
meters url the url that will receive the data.
... window.addeventlistener("unload", function logdata() { var xhr = new xmlhttprequest(); xhr.open("post", "/log", false); // third para
meter of `false` means synchronous xhr.send(analyticsdata); }); this is what sendbeacon() replaces.
Navigator.share() - Web APIs
syntax var sharepromise = navigator.share(data); para
meters data an object containing data to share.
...it will reject immediately if the data para
meter is not correctly specified, and will also reject if the user cancels sharing.
Node.lookupNamespaceURI() - Web APIs
syntax var namespace = node.lookupnamespaceuri(prefix); para
meters prefix the prefix to look for.
... if this para
meter is null, the method will return the default namespace uri, if any.
Node - Web APIs
node.replacechild() replaces one child node of the current one with the second one given in para
meter.
... para
meters rootnode the node object whose descendants will be recursed through.
Notification.Notification() - Web APIs
syntax var mynotification = new notification(title, options); para
meters title defines a title for the notification, which is shown at the top of the notification window.
...the function is passed para
meters to specify the body, icon, and title we want, and then it creates the necessary options object and triggers the notification by using the notification() constructor.
NotificationEvent.NotificationEvent() - Web APIs
syntax var mynotificationevent = new notificationevent(type, notificationeventinit); para
meters type tbd notificationeventinit optional a dictionary object containing a notification object to be used as the notification the event is dispatched on.
... in later drafts of the specification, this para
meter is not optional.
OES_texture_float_linear - Web APIs
with the help of this extension, you can now set the magnification or minification filter in the webglrenderingcontext.texpara
meter() method to one of gl.linear, gl.linear_mipmap_nearest, gl.nearest_mipmap_linear, or gl.linear_mipmap_linear, and use floating-point textures.
... examples gl.getextension('oes_texture_float'); gl.getextension('oes_texture_float_linear'); var texture = gl.createtexture(); gl.bindtexture(gl.texture_2d, texture); gl.texpara
meterf(gl.texture_2d, gl.texture_mag_filter, gl.linear); gl.teximage2d(gl.texture_2d, 0, gl.rgba, gl.rgba, gl.float, image); specifications specification status comment oes_texture_float_linearthe definition of 'oes_texture_float_linear' in that specification.
OES_texture_half_float - Web APIs
extended methods this extension extends webglrenderingcontext.teximage2d() and webglrenderingcontext.texsubimage2d(): the type para
meter now accepts ext.half_float_oes.
...if you set the magnification or minification filter in the webglrenderingcontext.texpara
meter() method to one of gl.linear, gl.linear_mipmap_nearest, gl.nearest_mipmap_linear, or gl.linear_mipmap_linear, and use half floating-point textures, the texture will be marked as incomplete.
OES_texture_half_float_linear - Web APIs
with the help of this extension, you can now set the magnification or minification filter in the webglrenderingcontext.texpara
meter() method to one of gl.linear, gl.linear_mipmap_nearest, gl.nearest_mipmap_linear, or gl.linear_mipmap_linear, and use half floating-point textures.
... examples var halffloat = gl.getextension('oes_texture_half_float'); gl.getextension('oes_texture_half_float_linear'); var texture = gl.createtexture(); gl.bindtexture(gl.texture_2d, texture); gl.texpara
meterf(gl.texture_2d, gl.texture_mag_filter, gl.linear); gl.teximage2d(gl.texture_2d, 0, gl.rgba, gl.rgba, halffloat.half_float_oes, image); specifications specification status comment oes_texture_half_float_linearthe definition of 'oes_texture_half_float_linear' in that specification.
OfflineAudioContext.OfflineAudioContext() - Web APIs
syntax var offlineaudioctx = new offlineaudiocontext(numberofchannels, length, samplerate); var offlineaudioctx = new offlineaudiocontext(options); para
meters you can specify the para
meters for the offlineaudiocontext() constructor as either the same set of para
meters as are inputs into the audiocontext.createbuffer() method, or by passing those para
meters in an options object.
... either way, the individual para
meters are the same.
OscillatorNode.start() - Web APIs
its para
meter is optional and default to 0.
... syntax oscillator.start(when); // start playing oscillator at the point in time specified by when para
meters when optional an optional double representing the time (in seconds) when the oscillator should start, in the same coordinate system as audiocontext's currenttime attribute.
OscillatorNode.stop() - Web APIs
its para
meter is optional and defaults to 0.
... syntax oscillator.stop(when); // stop playing oscillator at when para
meters when optional an optional double representing the audio context time when the oscillator should stop.
PannerNode.orientationX - Web APIs
the audioparam contained by this property is read only; however, you can still change the value of the para
meter by assigning a new value to its audioparam.value property.
... example in this example, we'll demonstrate how changing the orientation para
meters of a pannernode in combination with coneinnerangle and coneouterangle affects volume.
PannerNode.orientationY - Web APIs
the audioparam contained by this property is read only; however, you can still change the value of the para
meter by assigning a new value to its audioparam.value property.
... example in this example, we'll demonstrate how changing the orientation para
meters of a pannernode in combination with coneinnerangle and coneouterangle affects volume.
PannerNode.orientationZ - Web APIs
the audioparam contained by this property is read only; however, you can still change the value of the para
meter by assigning a new value to its audioparam.value property.
... example in this example, we'll demonstrate how changing the orientation para
meters of a pannernode in combination with coneinnerangle and coneouterangle affects volume.
PannerNode.setOrientation() - Web APIs
the three para
meters x, y and z are unitless and describe a direction vector in 3d space using the right-hand cartesian coordinate system.
... para
meters x the x value of the panner's direction vector in 3d space.
PannerNode.setPosition() - Web APIs
the setposition() method of the pannernode interface defines the position of the audio source relative to the listener (represented by an audiolistener object stored in the audiocontext.listener attribute.) the three para
meters x, y and z are unitless and describe the source's position in 3d space using the right-hand cartesian coordinate system.
... para
meters x the x position of the panner in 3d space.
PannerNode.setVelocity() - Web APIs
as the vector controls both the direction of travel and its velocity, the three para
meters x, y and z are expressed in
meters per second.
... para
meters x the x value of the panner's velocity vector.
PaymentRequest.show() - Web APIs
if your architecture doesn't necessarily have all of the data ready to go at the moment it instantiates the payment interface by calling show(), specify the detailspromise para
meter, providing a promise that is fulfilled once the data is ready.
... syntax paymentpromise = paymentrequest.show(detailspromise); para
meters detailspromise optional an optional promise that you can provide if your architecture requires that the payment request's details need to be updated between instantiating the payment interface and the user beginning to interact with it.
PerformanceObserver() - Web APIs
syntax var observer = new performanceobserver(callback); para
meters callback a performanceobservercallback callback that will be invoked when observed performance events are recorded.
... when the callback is invoked, its first para
meter is a list of performance observer entries and the second para
meter is the observer object.
PerformanceObserverEntryList.getEntriesByName() - Web APIs
the list is available in the observer's callback function (as the first para
meter in the callback).
... syntax entries = list.getentriesbyname(name, type); para
meters name a domstring representing the name of the entry to retrieve.
Permissions - Web APIs
43chrome android full support 43firefox android full support 46opera android full support yessafari ios no support nosamsung internet android full support 4.0accelero
meter permissionchrome full support 62edge full support 79firefox ?
... safari ios no support nosamsung internet android full support 5.0magneto
meter permissionchrome full support 62edge full support 79firefox ?
PromiseRejectionEvent() - Web APIs
syntax promiserejectionevent = promiserejectionevent(type, options); para
meters the promiserejectionevent() constructor also inherits para
meters from event().
... return value a new promiserejectionevent configured as specified by the para
meters.
PushManager.subscribe() - Web APIs
} ); para
meters options optional an object containing optional configuration para
meters.
... note: this para
meter is required in some browsers like chrome and edge.
RTCDTMFSender.insertDTMF() - Web APIs
syntax rtcdtmfsender.insertdtmf(tones[, duration[, intertonegap]]); para
meters tones a domstring containing the dtmf codes to be transmitted to the recipient.
... specifying an empty string as the tones para
meter clears the tone buffer, aborting any currently queued tones.
RTCIceCandidate.usernameFragment - Web APIs
if you instead call rtcicecandidate() with a string para
meter containing the candidate m-line text, the value of usernamefragment is extracted from the m-line.
...to avoid including candidates obsoleted by an ice restart, we can use code like this: const ssnewcandidate = signalmsg => { let candidate = new rtcicecandidate(signalmsg.candidate); let receivers = pc.getreceivers(); receivers.foreach(receiver => { let para
meters = receiver.transport.getpara
meters(); if (para
meters.usernamefragment === candidate.usernamefragment) { return; } }); pc.addicecandidate(candidate) .catch(reporterror); } this walks through the list of the rtcrtpreceiver objects being used to receive ice data, and looks to see if the usernamefragment indicated in the candidate matches any of them.
RTCOfferAnswerOptions - Web APIs
it's used as the base type for the options para
meter when calling createoffer() or createanswer() on an rtcpeerconnection.
... each of createoffer() and createanswer() use rtcofferansweroptions as the base type for their options para
meter's dictionary.
RTCPeerConnection.addTransceiver() - Web APIs
syntax rtptransceiver = rtcpeerconnection.addtransceiver(trackorkind, init); para
meters trackorkind a mediastreamtrack to associate with the transceiver, or a domstring which is used as the kind of the receiver's track, and by extension of the rtcrtpreceiver itself.
...each entry is of type rtcrtpencodingpara
meters.
RTCPeerConnection.onidentityresult - Web APIs
syntax peerconnection.onidentityresult = function; values function is the name of a user-defined function, without the () suffix or any para
meters, or an anonymous function declaration, such as function(event) {...}.
... an event handler always has one single para
meter, containing the event, here of type rtcidentityevent.
RTCPeerConnection.onidpassertionerror - Web APIs
syntax peerconnection.onidpassertionerror = function; values function is the name of a user-defined function, without the () suffix or any para
meters, or an anonymous function declaration, such as function(event) {...}.
... an event handler always has one single para
meter, containing the event, here of type rtcidentityerrorevent.
RTCPeerConnection.onidpvalidationerror - Web APIs
syntax peerconnection.onidpvalidationerror = function; values function is the name of a user-defined function, without the () suffix or any para
meters, or an anonymous function declaration, such as function(event) {...}.
... an event handler always has one single para
meter, containing the event, here of type rtcidentityerrorevent.
RTCPeerConnection.onpeeridentity - Web APIs
syntax peerconnection.onpeeridentity = function; values function is the name of a user-defined function, without the () suffix or any para
meters, or an anonymous function declaration, such as function(event) {...}.
... an event handler always has one single para
meter, containing the event, here of type event.
RTCPeerConnection.onremovestream - Web APIs
syntax peerconnection.onremovestream = function; values function is the name of a user-defined function, without the () suffix or any para
meters, or an anonymous function declaration, such as function(event) {...}.
... an event handler always has one single para
meter, containing the event, here of type mediastreamevent.
RTCPeerConnection.setConfiguration() - Web APIs
if, for example, the rtcpeerconnection() constructor was called with no para
meters, you would have to then call setconfiguration() to add ice servers before ice negotiation could begin.
... syntax rtcpeerconnection.setconfiguration(configuration); para
meters configuration an rtcconfiguration object which provides the options to be set.
RTCPeerConnection.setIdentityProvider() - Web APIs
the rtcpeerconnection.setidentityprovider() method sets the identity provider (idp) to the triplet given in para
meter: its name, the protocol used to communicate with it (optional) and an optional username.
... para
meters domainname is a domstring is the domain name where the idp is.
RTCRtpSender.setStreams() - Web APIs
syntax rtcrtpsender.setstreams(mediastream); rtcrtpsender.setstreams([mediastream...]); para
meters mediastream or [mediastream...] optional an mediastream object—or an array of multiple mediastream objects—identifying the streams to which the rtcrtpsender's track belongs.
... if this para
meter isn't specified, no new streams will be associated with the track.
RTCRtpSender - Web APIs
methods rtcrtpsender.getpara
meters() returns a rtcrtppara
meters object describing the current configuration for the encoding and transmission of media on the track.
... rtcrtpsender.setpara
meters() applies changes to para
meters which configure how the track is encoded and transmitted to the remote peer.
RTCRtpTransceiver.setCodecPreferences() - Web APIs
when preparing to open an rtcpeerconnection, you can change the codec para
meters from the user agent's default configuration by calling setcodecpara
meters() before calling either rtcpeerconnection.createoffer() or createanswer().
... syntax rtcrtptransceiver.setcodecpreferences(codecs) para
meters codecs an array of rtcrtpcodeccapability objects, in order of preference, each providing the para
meters for one of the transceiver's supported codecs.
Range.collapse() - Web APIs
syntax range.collapse(tostart); para
meters tostart optional a boolean value: true collapses the range to its start, false to its end.
... living standard the para
meter is now optional and default to false.
Range.compareBoundaryPoints() - Web APIs
para
meters how a constant describing the comparison method: range.end_to_end compares the end boundary-point of sourcerange to the end boundary-point of range.
... if the value of the para
meter is invalid, a domexception with a notsupportederror code is thrown.
ReadableStreamBYOBReader.ReadableStreamBYOBReader() - Web APIs
syntax var readablestreambyobreader = new readablestreambyobreader(stream); para
meters stream the readablestream to be read.
... exceptions typeerror the supplied stream para
meter is not a readablestream, or it is already locked for reading by another reader, or its stream controller is not a readablebytestreamcontroller.
ReadableStreamDefaultReader.cancel() - Web APIs
syntax var promise = readablestreamdefaultreader.cancel(reason); para
meters reason optional a domstring providing a human-readable reason for the cancellation.
... return value a promise, which fulfills with the value given in the reason para
meter.
RelativeOrientationSensor - Web APIs
to use this sensor, the user must grant permission to the 'accelero
meter', and 'gyroscope' device sensors through the permissions api.
... const sensor = new relativeorientationsensor(); promise.all([navigator.permissions.query({ name: "accelero
meter" }), navigator.permissions.query({ name: "gyroscope" })]) .then(results => { if (results.every(result => result.state === "granted")) { sensor.start(); ...
ReportingObserver() - Web APIs
syntax new reportingobserver(callback[, options]); para
meters callback a callback function that runs when the observer starts to collect reports (i.e.
...the callback function is given two para
meters: reports: a sequence of report objects representing the reports collected in the observer's report queue.
Request - Web APIs
te a new request using the request() constructor (for an image file in the same directory as the script), then return some property values of the request: const request = new request('https://www.mozilla.org/favicon.ico'); const url = request.url; const method = request.method; const credentials = request.credentials; you could then fetch this request by passing the request object in as a para
meter to a windoworworkerglobalscope.fetch() call, for example: fetch(request) .then(response => response.blob()) .then(blob => { image.src = url.createobjecturl(blob); }); in the following snippet, we create a new request using the request() constructor with some initial data and body content for an api request which need a body payload: const request = new request('https://example.com', ...
... you could then fetch this api request by passing the request object in as a para
meter to a windoworworkerglobalscope.fetch() call, for example and get the response: fetch(request) .then(response => { if (response.status === 200) { return response.json(); } else { throw new error('something went wrong on api server!'); } }) .then(response => { console.debug(response); // ...
ResizeObserver() - Web APIs
syntax var resizeobserver = new resizeobserver(callback) para
meters callback the function called whenever an observed resize occurs.
... the function is called with two para
meters: entries an array of resizeobserverentry objects that can be used to access the new dimensions of the element after each change.
SVGTransformList - Web APIs
initialize(in svgtransform newitem) svgtransform clears all existing current items from the list and re-initializes the list to hold the single item specified by the para
meter.
...the values from the para
meter matrix are copied, the matrix para
meter is not adopted as svgtransform::matrix.
ScrollToOptions - Web APIs
a scrolltooptions dictionary can be provided as a para
meter for the following methods: window.scroll() window.scrollby() window.scrollto() element.scroll() element.scrollby() element.scrollto() properties scrolltooptions.top specifies the number of pixels along the y axis to scroll the window or element.
... when the form is submitted, an event handler is run that puts the entered values into a scrolltooptions dictionary, and then invokes the window.scrollto() method, passing the dictionary as a para
meter: form.addeventlistener('submit', (e) => { e.preventdefault(); var scrolloptions = { left: leftinput.value, top: topinput.value, behavior: scrollinput.checked ?
Selection.extend() - Web APIs
syntax sel.extend(node, offset) para
meters node the node within which the focus will be moved.
... nochrome android full support yesfirefox android full support yesopera android full support yessafari ios full support yessamsung internet android full support yesoffset para
meter is optional experimentalchrome full support yesedge full support ≤79firefox full support 55ie no support noopera full support yessafari full support ...
ServiceWorkerMessageEvent.ServiceWorkerMessageEvent() - Web APIs
syntax var myswme = new serviceworkermessageevent(type, init); para
meters type a domstring that defines the type of the message event being created.
... init optional an initialisation object, which should contain the following para
meters: data: the event's data — this can be any type.
SourceBuffer.appendBufferAsync() - Web APIs
syntax appendpromise = sourcebuffer.appendbufferasync(source); para
meters source a buffersource (that is, either an arraybufferview or arraybuffer) which contains the media segment data you want to add to the sourcebuffer.
... example this simplified example async function, fillsourcebuffer(), takes as input para
meters buffersource, buffer, and a sourcebuffer to which to append the source media from the buffer.
SourceBuffer.remove() - Web APIs
syntax sourcebuffer.remove(start, end); para
meters start a double representing the start of the time range, in seconds.
... exceptions exception explanation invalidaccesserror the mediasource.duration property is equal to nan, the start para
meter is negative or greater than mediasource.duration, or the end para
meter is less than or equal to start or equal to nan.
SpeechSynthesis.speak() - Web APIs
para
meters utterance a speechsynthesisutterance object.
...when a form containing the text we want to speak is submitted, we (amongst other things) create a new utterance containing this text, then speak it by passing it into speak() as a para
meter.
Using readable streams - Web APIs
the generic syntax skeleton looks like this: const stream = new readablestream({ start(controller) { }, pull(controller) { }, cancel() { }, type, autoallocatechunksize }, { highwatermark, size() }); the constructor takes two objects as para
meters.
...m if (done) { controller.close(); return; } // enqueue the next data chunk into our target stream controller.enqueue(value); return pump(); }); } } }) }) readablestream controllers you’ll notice that the start() and pull() methods passed into the readablestream() constructor are given controller para
meters — these are instances of the readablestreamdefaultcontroller class, which can be used to control your stream.
SubtleCrypto.importKey() - Web APIs
syntax const result = crypto.subtle.importkey( format, keydata, algorithm, extractable, usages ); para
meters format is a string describing the data format of the key to import.
... algorithm is a dictionary object defining the type of key to import and providing extra algorithm-specific para
meters.
SubtleCrypto.sign() - Web APIs
it takes as its arguments a key to sign with, some algorithm-specific para
meters, and the data to sign.
... syntax const signature = crypto.subtle.sign(algorithm, key, data); para
meters algorithm is a string or object that specifies the signature algorithm to use and its para
meters: to use rsassa-pkcs1-v1_5, pass the string "rsassa-pkcs1-v1_5" or an object of the form { "name": "rsassa-pkcs1-v1_5" }.
SubtleCrypto.wrapKey() - Web APIs
syntax const result = crypto.subtle.wrapkey( format, key, wrappingkey, wrapalgo ); para
meters format is a string describing the data format in which the key will be exported before it is encrypted.
... wrapalgo is an object specifying the algorithm to be used to encrypt the exported key, and any required extra para
meters: to use rsa-oaep, pass an rsaoaepparams object.
TextDecoder() - Web APIs
the textdecoder() constructor returns a newly created textdecoder object for the encoding specified in para
meter.
... syntax decoder = new textdecoder(utflabel, options); para
meters utflabeloptional is a domstring, defaulting to "utf-8", containing the label of the encoder.
TextDecoder.prototype.decode() - Web APIs
the textdecoder.prototype.decode() method returns a domstring containing the text, given in para
meters, decoded with the specific method for that textdecoder object.
... syntax b1 = decoder.decode(buffer, options); b2 = decoder.decode(buffer); b3 = decoder.decode(); para
meters buffer optional is either an arraybuffer or an arraybufferview containing the text to decode.
TextEncoder.prototype.encode() - Web APIs
the textencoder.prototype.encode() method takes a usvstring as input, and returns a uint8array containing the text given in para
meters encoded with the specific method for that textencoder object.
... syntax b1 = encoder.encode(string); para
meters string is a usvstring containing the text to encode.
URL() - Web APIs
the url() constructor returns a newly created url object representing the url defined by the para
meters.
... syntax const url = new url(url [, base]) para
meters url a usvstring representing an absolute or relative url.
URL.createObjectURL() - Web APIs
the url.createobjecturl() static method creates a domstring containing a url representing the object given in the para
meter.
... syntax const objecturl = url.createobjecturl(object) para
meters object a file, blob, or mediasource object to create an object url for.
URL.search - Web APIs
the search property of the url interface is a search string, also called a query string, that is a usvstring containing a '?' followed by the para
meters of the url.
... modern browsers provide the url.searchparams property to make it easy to parse out the para
meters from the query string.
URL.search - Web APIs
the search property of the url interface is a search string, also called a query string, that is a usvstring containing a '?' followed by the para
meters of the url.
... modern browsers provide the url.searchparams property to make it easy to parse out the para
meters from the query string.
URLSearchParams.has() - Web APIs
the has() method of the urlsearchparams interface returns a boolean that indicates whether a para
meter with the specified name exists.
... syntax var hasname = urlsearchparams.has(name) para
meters name the name of the para
meter to find.
URLSearchParams.toString() - Web APIs
syntax urlsearchparams.tostring() para
meters none.
...(returns an empty string if no search para
meters have been set.) examples let url = new url('https://example.com?foo=1&bar=2'); let params = new urlsearchparams(url.search.slice(1)); //add a second foo para
meter.
USBDevice.controlTransferIn() - Web APIs
syntax var promise = usbdevice.controltransferin(setup, length) para
meters setup an object that sets options for .
... value: vender-specific request para
meters.
WEBGL_debug_renderer_info - Web APIs
the webglrenderingcontext.getpara
meter() method can help you to detect which features are supported and the failifmajorperformancecaveat context attribute lets you control if a context should be returned at all, if the performance would be dramatically slow.
... examples with the help of this extension, privileged contexts are able to retrieve debugging information about about the user's graphic driver: var canvas = document.getelementbyid('canvas'); var gl = canvas.getcontext('webgl'); var debuginfo = gl.getextension('webgl_debug_renderer_info'); var vendor = gl.getpara
meter(debuginfo.unmasked_vendor_webgl); var renderer = gl.getpara
meter(debuginfo.unmasked_renderer_webgl); console.log(vendor); console.log(renderer); specifications specification status comment webgl_debug_renderer_infothe definition of 'webgl_debug_renderer_info' in that specification.
WebGL2RenderingContext.getActiveUniforms() - Web APIs
syntax any gl.getactiveuniforms(program, uniformindices, pname); para
meters program a webglprogram containing the active uniforms.
... return value depends on which information is requested using the pname para
meter.
WebGLRenderingContext.attachShader() - Web APIs
syntax void gl.attachshader(program, shader); para
meters program a webglprogram.
... var program = gl.createprogram(); // attach pre-existing shaders gl.attachshader(program, vertexshader); gl.attachshader(program, fragmentshader); gl.linkprogram(program); if ( !gl.getprogrampara
meter( program, gl.link_status) ) { var info = gl.getprograminfolog(program); throw 'could not compile webgl program.
WebGLRenderingContext.bindBuffer() - Web APIs
syntax void gl.bindbuffer(target, buffer); para
meters target a glenum specifying the binding point (target).
... gl.getpara
meter(gl.array_buffer_binding); gl.getpara
meter(gl.element_array_buffer_binding); specifications specification status comment webgl 1.0the definition of 'bindbuffer' in that specification.
WebGLRenderingContext.bindFramebuffer() - Web APIs
syntax void gl.bindframebuffer(target, framebuffer); para
meters target a glenum specifying the binding point (target).
... gl.getpara
meter(gl.framebuffer_binding); specifications specification status comment webgl 1.0the definition of 'bindframebuffer' in that specification.
WebGLRenderingContext.bindRenderbuffer() - Web APIs
syntax void gl.bindrenderbuffer(target, renderbuffer); para
meters target a glenum specifying the binding point (target).
... gl.getpara
meter(gl.renderbuffer_binding); specifications specification status comment webgl 1.0the definition of 'bindrenderbuffer' in that specification.
WebGLRenderingContext.bindTexture() - Web APIs
syntax void gl.bindtexture(target, texture); para
meters target a glenum specifying the binding point (target).
... gl.getpara
meter(gl.texture_binding_2d); specifications specification status comment webgl 1.0the definition of 'bindtexture' in that specification.
WebGLRenderingContext.blendColor() - Web APIs
syntax void gl.blendcolor(red, green, blue, alpha); para
meters red a glclampf for the red component in the range of 0 to 1.
... gl.getpara
meter(gl.blend_color); // float32array[0, 0.5, 1, 1] specifications specification status comment webgl 1.0the definition of 'blendcolor' in that specification.
WebGLRenderingContext.blendEquation() - Web APIs
syntax void gl.blendequation(mode); para
meters mode a glenum specifying how source and destination colors are combined.
... gl.getpara
meter(gl.blend_equation_rgb) === gl.func_add; // true gl.getpara
meter(gl.blend_equation_alpha) === gl.func_add; // true specifications specification status comment webgl 1.0the definition of 'blendequation' in that specification.
WebGLRenderingContext.blendEquationSeparate() - Web APIs
syntax void gl.blendequationseparate(modergb, modealpha); para
meters modergb a glenum specifying how the red, green and blue components of source and destination colors are combined.
... gl.getpara
meter(gl.blend_equation_rgb) === gl.func_add; // true gl.getpara
meter(gl.blend_equation_alpha) === gl.func_add; // true specifications specification status comment webgl 1.0the definition of 'blendequationseparate' in that specification.
WebGLRenderingContext.blendFunc() - Web APIs
syntax void gl.blendfunc(sfactor, dfactor); para
meters sfactor a glenum specifying a multiplier for the source blending factors.
... gl.enable(gl.blend); gl.blendfunc(gl.src_color, gl.dst_color); gl.getpara
meter(gl.blend_src_rgb) == gl.src_color; // true specifications specification status comment webgl 1.0the definition of 'blendfunc' in that specification.
WebGLRenderingContext.blendFuncSeparate() - Web APIs
syntax void gl.blendfuncseparate(srcrgb, dstrgb, srcalpha, dstalpha); para
meters srcrgb a glenum specifying a multiplier for the red, green and blue (rgb) source blending factors.
... gl.enable(gl.blend); gl.blendfuncseparate(gl.src_color, gl.dst_color, gl.one, gl.zero); gl.getpara
meter(gl.blend_src_rgb) == gl.src_color; // true specifications specification status comment webgl 1.0the definition of 'blendfunc' in that specification.
WebGLRenderingContext.clear() - Web APIs
syntax void gl.clear(mask); para
meters mask a glbitfield bitwise or mask that indicates the buffers to be cleared.
... gl.getpara
meter(gl.color_clear_value); gl.getpara
meter(gl.depth_clear_value); gl.getpara
meter(gl.stencil_clear_value); specifications specification status comment webgl 1.0the definition of 'clear' in that specification.
WebGLRenderingContext.clearColor() - Web APIs
syntax void gl.clearcolor(red, green, blue, alpha); para
meters red a glclampf specifying the red color value used when the color buffers are cleared.
... gl.getpara
meter(gl.color_clear_value); // float32array[1, 0.5, 0.5, 1] specifications specification status comment webgl 1.0the definition of 'clearcolor' in that specification.
WebGLRenderingContext.clearDepth() - Web APIs
syntax void gl.cleardepth(depth); para
meters depth a glclampf specifying the depth value used when the depth buffer is cleared.
... gl.getpara
meter(gl.depth_clear_value); // 0.5 specifications specification status comment webgl 1.0the definition of 'cleardepth' in that specification.
WebGLRenderingContext.clearStencil() - Web APIs
syntax void gl.clearstencil(s); para
meters s a glint specifying the index used when the stencil buffer is cleared.
... gl.getpara
meter(gl.stencil_clear_value); // 1 specifications specification status comment webgl 1.0the definition of 'clearstencil' in that specification.
WebGLRenderingContext.colorMask() - Web APIs
syntax void gl.colormask(red, green, blue, alpha); para
meters red a glboolean specifying whether or not the red color component can be written into the frame buffer.
... gl.getpara
meter(gl.color_writemask); // [true, true, true, false] specifications specification status comment webgl 1.0the definition of 'colormask' in that specification.
WebGLRenderingContext.compressedTexImage[23]D() - Web APIs
srclengthoverride); // read from buffer bound to gl.pixel_unpack_buffer void gl.compressedteximage3d(target, level, internalformat, width, height, depth, border, glsizei imagesize, glintptr offset); void gl.compressedteximage3d(target, level, internalformat, width, height, depth, border, arraybufferview srcdata, optional srcoffset, optional srclengthoverride); para
meters target a glenum specifying the binding point (target) of the active texture.
... examples var ext = ( gl.getextension('webgl_compressed_texture_s3tc') || gl.getextension('moz_webgl_compressed_texture_s3tc') || gl.getextension('webkit_webgl_compressed_texture_s3tc') ); var texture = gl.createtexture(); gl.bindtexture(gl.texture_2d, texture); gl.compressedteximage2d(gl.texture_2d, 0, ext.compressed_rgba_s3tc_dxt5_ext, 512, 512, 0, texturedata); gl.texpara
meteri(gl.texture_2d, gl.texture_mag_filter, gl.linear); gl.texpara
meteri(gl.texture_2d, gl.texture_min_filter, gl.linear); specifications specification status comment webgl 1.0the definition of 'compressedteximage2d' in that specification.
WebGLRenderingContext.createProgram() - Web APIs
syntax webglprogram gl.createprogram(); para
meters none.
... examples creating a webgl program var program = gl.createprogram(); // attach pre-existing shaders gl.attachshader(program, vertexshader); gl.attachshader(program, fragmentshader); gl.linkprogram(program); if ( !gl.getprogrampara
meter( program, gl.link_status) ) { var info = gl.getprograminfolog(program); throw 'could not compile webgl program.
WebGLRenderingContext.cullFace() - Web APIs
syntax void gl.cullface(mode); para
meters mode a glenum specifying whether front- or back-facing polygons are candidates for culling.
... gl.getpara
meter(gl.cull_face_mode) === gl.front_and_back; // true specifications specification status comment webgl 1.0the definition of 'cullface' in that specification.
WebGLRenderingContext.depthFunc() - Web APIs
syntax void gl.depthfunc(func); para
meters func a glenum specifying the depth comparison function, which sets the conditions under which the pixel will be drawn.
... gl.getpara
meter(gl.depth_func) === gl.never; // true specifications specification status comment webgl 1.0the definition of 'depthfunc' in that specification.
WebGLRenderingContext.depthMask() - Web APIs
syntax void gl.depthmask(flag); para
meters flag a glboolean specifying whether or not writing into the depth buffer is enabled.
... gl.getpara
meter(gl.depth_writemask); // false specifications specification status comment webgl 1.0the definition of 'depthmask' in that specification.
WebGLRenderingContext.depthRange() - Web APIs
syntax void gl.depthrange(znear, zfar); para
meters znear a glclampf specifying the mapping of the near clipping plane to window or viewport coordinates.
... examples gl.depthrange(0.2, 0.6); to check the current depth range, query the depth_range constant which returns a float32array gl.getpara
meter(gl.depth_range); // float32array[0.2, 0.6] specifications specification status comment webgl 1.0the definition of 'depthrange' in that specification.
WebGLRenderingContext.getContextAttributes() - Web APIs
the webglrenderingcontext.getcontextattributes() method returns a webglcontextattributes object that contains the actual context para
meters.
... syntax gl.getcontextattributes(); return value a webglcontextattributes object that contains the actual context para
meters, or null if the context is lost.
WebGLRenderingContext.linkProgram() - Web APIs
syntax void gl.linkprogram(program); para
meters program the webglprogram to link.
... examples var program = gl.createprogram(); // attach pre-existing shaders gl.attachshader(program, vertexshader); gl.attachshader(program, fragmentshader); gl.linkprogram(program); if ( !gl.getprogrampara
meter( program, gl.link_status) ) { var info = gl.getprograminfolog(program); throw new error('could not compile webgl program.
WebGLRenderingContext.polygonOffset() - Web APIs
syntax void gl.polygonoffset(factor, units); para
meters factor a glfloat which sets the scale factor for the variable depth offset for each polygon.
... gl.getpara
meter(gl.polygon_offset_factor); // 2 gl.getpara
meter(gl.polygon_offset_units); // 3 specifications specification status comment webgl 1.0the definition of 'polygonoffset' in that specification.
WebGLRenderingContext.readPixels() - Web APIs
syntax // webgl1: void gl.readpixels(x, y, width, height, format, type, pixels); // webgl2: void gl.readpixels(x, y, width, height, format, type, glintptr offset); void gl.readpixels(x, y, width, height, format, type, arraybufferview pixels, gluint dstoffset); para
meters x a glint specifying the first horizontal pixel that is read from the lower left corner of a rectangular block of pixels.
...the array type must match the type of the type para
meter.
WebGLRenderingContext.renderbufferStorage() - Web APIs
syntax void gl.renderbufferstorage(target, internalformat, width, height); para
meters target a glenum specifying the target renderbuffer object.
... webgl 2.0the definition of 'getrenderbufferpara
meter' in that specification.
WebGLRenderingContext.scissor() - Web APIs
syntax void gl.scissor(x, y, width, height); para
meters x a glint specifying the horizontal coordinate for the lower left corner of the box.
... gl.scissor(0, 0, 200, 200); gl.getpara
meter(gl.scissor_box); // int32array[0, 0, 200, 200] specifications specification status comment webgl 1.0the definition of 'scissor' in that specification.
WebGLRenderingContext.stencilMask() - Web APIs
syntax void gl.stencilmask(mask); para
meters mask a gluint specifying a bit mask to enable or disable writing of individual bits in the stencil planes.
... gl.getpara
meter(gl.stencil_writemask); // 110101 gl.getpara
meter(gl.stencil_back_writemask); // 110101 gl.getpara
meter(gl.stencil_bits); // 0 specifications specification status comment webgl 1.0the definition of 'stencilmask' in that specification.
WebGLRenderingContext.stencilMaskSeparate() - Web APIs
syntax void gl.stencilmaskseparate(face, mask); para
meters face a glenum specifying whether the front and/or back stencil writemask is updated.
... gl.getpara
meter(gl.stencil_writemask); // 110101 gl.getpara
meter(gl.stencil_back_writemask); // 110101 gl.getpara
meter(gl.stencil_bits); // 0 specifications specification status comment webgl 1.0the definition of 'stencilmaskseparate' in that specification.
WebGLRenderingContext.validateProgram() - Web APIs
syntax void gl.validateprogram(program); para
meters program a webglprogram to validate.
... examples var program = gl.createprogram(); // attach pre-existing shaders gl.attachshader(program, vertexshader); gl.attachshader(program, fragmentshader); gl.linkprogram(program); gl.validateprogram(program); if ( !gl.getprogrampara
meter( program, gl.link_status) ) { var info = gl.getprograminfolog(program); throw 'could not compile webgl program.
WebGLSampler - Web APIs
the webglsampler interface is part of the webgl 2 api and stores sampling para
meters for webgltexture access inside of a shader.
... when working with webglsampler objects, the following methods of the webgl2renderingcontext are useful: webgl2renderingcontext.createsampler() webgl2renderingcontext.deletesampler() webgl2renderingcontext.issampler() webgl2renderingcontext.bindsampler() webgl2renderingcontext.getsamplerpara
meter() examples creating a webglsampler object in this example, gl must be a webgl2renderingcontext.
Establishing a connection: The WebRTC perfect negotiation pattern - Web APIs
if the newly-set remote description is an offer, we ask webrtc to select an appropriate local configuration by calling the rtcpeerconnection method setlocaldescription() without para
meters.
... perfect negotiation with the updated api the updated code takes advantage of the fact that you can now call setlocaldescription() with no para
meters so it just does the right thing for you, as well as the fact that setremotedescription() automatically rolls back if necessary.
Lighting a WebXR setting - Web APIs
a tapering rate para
meter defines how quickly the brightness of the light falls off at the edges of the cone of light, and, as with point lights, an attenuation para
meter controls how the light fades over distance.
...this involves the collection of data that may come from various sensors (including the accelero
meter and compass, if available), cameras, and potentially others.
Spaces and reference spaces: Spatial tracking in WebXR - Web APIs
*/ } } the frame para
meter is the xrframe representing the animation frame information provided by webxr.
...for example, to create a new reference space that moves the reference space arefspace a half
meter in each direction, you can do something like this: let half
metertransform = new xrrigidtransform({ x: 0.5, y: 0.5, z: 0.5, w: 1.0 }); arefspace = arefspace.getoffsetreferencespace(half
metertransform); this replaces the existing reference space arefspace with one whose coordinates and orientation have had the transform half
metertransform applied.
Starting up and shutting down a WebXR session - Web APIs
fundamentally, that looks like this: xr.requestsession("immersive-vr").then((session) => { xrsession = session; /* continue to set up the session */ }); note the para
meter passed into requestsession() in this code snippet: immersive-vr.
... customizing the session in addition to the display mode, the requestsession() method can take an optional object with initialization para
meters to customize the session.
Using IIR filters - Web APIs
the iirfilternode interface of the web audio api is an audionode processor that implements a general infinite impulse response (iir) filter; this type of filter can be used to implement tone control devices and graphic equalizers, and the filter response para
meters can be specified, so that it can be tuned as needed.
...both of these para
meters are arrays, neither of which can be larger than 20 items.
Web Audio API - Web APIs
audioparam the audioparam interface represents an audio-related para
meter, like one of an audionode.
...ing javascript, establishing it as an audio worklet processor, and then using that processor within a web audio application is the topic of this article.basic concepts behind web audio apithis article explains some of the audio theory behind how the features of the web audio api work, to help you make informed decisions while designing how audio is routed through your app.controlling multiple para
meters with constantsourcenodethis article demonstrates how to use a constantsourcenode to link multiple para
meters together so they share the same value, which can be changed by simply setting the value of the constantsourcenode.offset para
meter.example and tutorial: simple synth keyboardthis article presents the code and working demo of a video keyboard you can play using the mouse.
Window.dialogArguments - Web APIs
the dialogarguments property returns the para
meters that were passed into the window.showmodaldialog() method.
... this lets you determine what para
meters were specified when the modal dialog was created.
window.dump() - Web APIs
syntax window.dump(message); dump(message); para
meters message is the string message to log.
...if you don't have one already, closing the application and re-opening it with the command line para
meter -console should create the console or use -attach-console to use the existing console.
Window.prompt() - Web APIs
syntax result = window.prompt(message, default); para
meters message optional a string of text to display to the user.
...note that in internet explorer 7 and 8, if you do not provide this para
meter, the string "undefined" is the default value.
window.requestIdleCallback() - Web APIs
para
meters callback a reference to a function that should be called in the near future, when the event loop is idle.
... options optional contains optional configuration para
meters.
Window.scroll() - Web APIs
syntax window.scroll(x-coord, y-coord) window.scroll(options) para
meters x-coord is the pixel along the horizontal axis of the document that you want displayed in the upper left.
...rome android full support 18firefox android full support 4opera android full support 10.1safari ios full support 1samsung internet android full support 1.0scrolltooptions para
meterchrome full support 45edge full support 79firefox full support yesie no support noopera full support 32safari no support nowebview...
Window.scrollBy() - Web APIs
syntax window.scrollby(x-coord, y-coord); window.scrollby(options) para
meters x-coord is the horizontal pixel value that you want to scroll by.
...rome android full support 18firefox android full support 4opera android full support 10.1safari ios full support 1samsung internet android full support 1.0scrolltooptions para
meterchrome full support 45edge full support 79firefox full support yesie no support noopera full support 32safari no support nowebview...
Window - Web APIs
window.ondevicelight an event handler property for any ambient light levels changes window.ondevicemotion called if accelero
meter detects a change (for mobile devices) window.ondeviceorientation called when the orientation is changed (for mobile devices) window.ondeviceorientationabsolute an event handler property for any device orientation changes.
... deviceorientation fired when fresh data is available from the magneto
meter orientation sensor about the current orientation of the device as compared to the earth coordinate frame.
WindowEventHandlers.onlanguagechange - Web APIs
syntax object.onlanguagechange = function; value function is the name of a user-defined function, without the () suffix or any para
meters, or an anonymous function declaration, such as function(event) {...}.
... an event handler always has one single para
meter, containing the event, here of type event.
WindowOrWorkerGlobalScope.btoa() - Web APIs
syntax var encodeddata = scope.btoa(stringtoencode); para
meters stringtoencode the binary string to encode.
... example const encodeddata = window.btoa('hello, world'); // encode a string const decodeddata = window.atob(encodeddata); // decode the string unicode strings the btoa() function takes a javascript string as a para
meter.
WindowOrWorkerGlobalScope.fetch() - Web APIs
note: the fetch() method's para
meters are identical to those of the request() constructor.
... syntax const fetchresponsepromise = fetch(resource [, init]) para
meters resource this defines the resource that you wish to fetch.
WindowOrWorkerGlobalScope.setInterval() - Web APIs
syntax var intervalid = scope.setinterval(func, [delay, arg1, arg2, ...]); var intervalid = scope.setinterval(function[, delay]); var intervalid = scope.setinterval(code, [delay]); para
meters func a function to be executed every delay milliseconds.
... var intervalid = window.setinterval(mycallback, 500, 'para
meter 1', 'para
meter 2'); function mycallback(a, b) { // your code here // para
meters are purely optional.
WritableStream.abort() - Web APIs
syntax var promise = writablestream.abort(reason); para
meters reason a domstring providing a human-readable reason for the abort.
... return value a promise, which fulfills with the value given in the reason para
meter.
WritableStreamDefaultWriter.abort() - Web APIs
syntax var promise = writablestreamdefaultwriter.abort(reason); para
meters reason optional a domstring representing a human-readable reason for the abort.
... return value a promise, which fulfills with the value given in the reason para
meter.
XDomainRequest.send() - Web APIs
syntax xdr.send(data); para
meters data the form data to be sent with the request.
... this para
meter is optional for get requests.
XMLHttpRequest.open() - Web APIs
syntax xmlhttprequest.open(method, url[, async[, user[, password]]]) para
meters method the http request method to use, such as "get", "post", "put", "delete", etc.
... async optional an optional boolean para
meter, defaulting to true, indicating whether or not to perform the operation asynchronously.
XRBoundedReferenceSpace.boundsGeometry - Web APIs
the specification recommends that browsers shift the points to the nearest 5 centi
meters (while avoiding going outside the physical limitations of the hardware).
...instead, it's meant to be used for one-room spaces with no more than around 15
meters of available movement space in any direction from the native origin.
XRInputSourceArray.forEach() - Web APIs
syntax xrinputsourcearray.foreach(callback, thisarg); para
meters callback a function to execute once for each entry in the array xrinputsourcearray.
... the callback accepts up to three para
meters: currentvalue a xrinputsource object which is the value of the item from within the xrinputsourcearray which is currently being processed.
XRInputSourcesChangeEvent() - Web APIs
syntax newinputsourceschangeevent = new xrinputsourceschangeevent(type, eventinitdict); para
meters type a domstring indicating the type of event which has occurred.
... return value a newly-created xrinputsourceschangeevent object configured based upon the input para
meters provided.
XRReferenceSpace - Web APIs
these are special spaces which let you establish a peri
meter within which it's "safe" for the viewer to move.
...if the estimated floor level is non-zero, the browser is expected to round it such a way as to avoid fingerprinting (likely to the nearest centi
meter).
XRReferenceSpaceEvent() - Web APIs
syntax let refspaceevent = new xrreferencespaceevent(type, eventinitdict); para
meters type a domstring indicating the event type which has occurred.
... return value a new xrreferencespaceevent object, initialized as defined by the input para
meters.
XRRenderState - Web APIs
depthfar read only the distance, in
meters, of the far clip plane from the viewer.
... depthnear read only the distance, in
meters, of the near clip plane from the viewer.
XRSession.requestReferenceSpace() - Web APIs
syntax refspacepromise = xrsession.requestreferencespace(referencespacetype); para
meters type a domstring specifying the type of reference space for which an instance is to be returned.
...if the estimated floor level is non-zero, the browser is expected to round it such a way as to avoid fingerprinting (likely to the nearest centi
meter).
XRSessionEvent() - Web APIs
syntax newxrsessionevent = new xrsessionevent(type, eventinitdict); para
meters type a domstring indicating which of the events represented by objects of type xrsessionevent this particular object represents.
... return value a newly-created xrsessionevent object representing an object of the specfied type and configured as described by the eventinitdict para
meter.
XRWebGLLayer.ignoreDepthValues - Web APIs
the value of ignoredepthvalues can only be set when the xrwebgllayer is instantiated, by setting the corresponding value in the xrwebgllayerinit object specified as the constructor's layerinit para
meter.
... as a para
meter you're likely to set yourself, it is unlikely you'll need to read it later, but it's available if the need arises.
msWriteProfilerMark - Web APIs
syntax window.mswriteprofilermark("start-render"); para
meters bstrprofilermarkname[in] an event name.
...this para
meter may be null.
:dir() - CSS: Cascading Style Sheets
syntax the :dir() pseudo-class requires one para
meter, representing the text directionality you want to target.
... para
meters ltr target left-to-right elements.
Linear-gradient Generator - CSS: Cascading Style Sheets
lor(); color.sethsv(h, s, v); color.a = a; return color; } function hslcolor(h, s, l) { var color = new color(); color.sethsl(h, s, l); return color; } function hslacolor(h, s, l, a) { var color = new color(); color.sethsl(h, s, l); color.a = a; return color; } color.prototype.copy = function copy(obj) { if(obj instanceof color !== true) { console.log('typeof para
meter not color'); return; } this.r = obj.r; this.g = obj.g; this.b = obj.b; this.a = obj.a; this.hue = obj.hue; this.saturation = obj.saturation; this.value = obj.value; this.format = '' + obj.format; this.lightness = obj.lightness; }; color.prototype.setformat = function setformat(format) { if (format === 'hsv') this.format = 'hsv'; if (format === 'hsl') this.form...
...pic, value) { if (this.subscribers[topic]) this.subscribers[topic](value); }; /*************************************************************************/ // set picker properties /*************************************************************************/ colorpicker.prototype.setcolor = function setcolor(color) { if(color instanceof color !== true) { console.log('typeof para
meter not color'); return; } if (color.format !== this.picker_mode) { color.setformat(this.picker_mode); color.updatehsx(); } this.color.copy(color); this.updatehuepicker(); this.updatepickerposition(); this.updatepickerbackground(); this.updatealphapicker(); this.updatepreviewcolor(); this.updatealphagradient(); this.notify('red', this.color.r); this.notify('green',...
attr() - CSS: Cascading Style Sheets
note: the attr() function can be used with any css property, but support for properties other than content is experimental, and support for the type-or-unit para
meter is sparse.
... candidate recommendation added two optional para
meters; can be used on all properties; may return values other than <string>.
clamp() - CSS: Cascading Style Sheets
it takes three para
meters: a minimum value, a preferred value, and a maximum allowed value.
... syntax the clamp() function takes three comma separated expressions as its para
meter, in the order of minimum value, preferred value, maximum value.
<easing-function> - CSS: Cascading Style Sheets
*/ steps(2, start) /* the second para
meter is optional.
... */ steps(2) these easing function are invalid: /* the first para
meter must be an <integer> and cannot be a real value, even if it is equal to one.
drop-shadow() - CSS: Cascading Style Sheets
syntax drop-shadow(offset-x offset-y blur-radius color) the drop-shadow() function accepts a para
meter of type <shadow> (defined in the box-shadow property), with the exception that the inset keyword and spread para
meters are not allowed.
... para
meters offset-x offset-y (required) two <length> values that determine the shadow offset.
image() - CSS: Cascading Style Sheets
bi-directional awareness the first, optional para
meter of the image() notation is the directionality of the image.
...the section of the image defined in the para
meter becomes a standalone image.
minmax() - CSS: Cascading Style Sheets
00px) minmax(min-content, auto) /* <fixed-breadth>, <track-breadth> values */ minmax(200px, 1fr) minmax(30%, 300px) minmax(400px, 50%) minmax(50%, min-content) minmax(300px, max-content) minmax(200px, auto) /* <inflexible-breadth>, <fixed-breadth> values */ minmax(400px, 50%) minmax(30%, 300px) minmax(min-content, 200px) minmax(max-content, 200px) minmax(auto, 300px) a function taking two para
meters, min and max.
... each para
meter can be a <length>, a <percentage>, a <flex> value, or one of the keyword values max-content, min-content, or auto.
paint() - CSS: Cascading Style Sheets
syntax paint(workletname, para
meters) where: workletname the name of the registered worklet.
... para
meters optional additional para
meters to pass to the paintworklet examples you can pass additional arguments via the css paint() function.
exsl:object-type() - EXSLT
this function lets authors of named templates and extension functions easily provide flexibility in para
meter values.
... syntax exsl:object-type(object) para
meters object the object whose type is to be returned.
regexp:match() - EXSLT
syntax regexp:match(targetstring, regexpstring[, flagsstring]) para
meters targetstring the string to perform regular expression matching upon.
... returns a node set of match elements, each of which has the string value equal to a portion of the first para
meter string as captured by the regular expression.
DOM onevent handlers - Developer guides
(the html specification names these: onblur, onerror, onfocus, onload, and onscroll.) event handler's para
meters, this binding, and the return value when the event handler is specified as an html attribute, the specified code is wrapped into a function with the following para
meters: event — for all event handlers except onerror.
...note that the event para
meter actually contains the error message as a string.
HTML documentation index - HTML: Hypertext Markup Language
160 <
meter>: the html
meter element element, html, html forms, html5, reference, web the html <
meter> element represents either a scalar value within a known range or a fractional value.
... 174 <param>: the object para
meter element element, html, html embedded content, reference, web the html <param> element defines para
meters for an <object> element.
Using the application cache - HTML: Hypertext Markup Language
gotchas never access cached files by using traditional get para
meters (like other-cached-page.html?para
metername=value).
...to link to cached resources that have para
meters parsed in javascript use para
meters in the hash part of the link, such as other-cached-page.html#whatever?para
metername=value.
Data URLs - HTTP
lack of error handling invalid para
meters in media, or typos when specifying 'base64', are ignored, but no error is provided.
... the data portion of a data url is opaque, so an attempt to use a query string (page-specific para
meters, with the syntax <url>?para
meter-data) with a data url will just include the query string in the data the url represents.
Cross-Origin Resource Sharing (CORS) - HTTP
the browser determines that it needs to send this based on the request para
meters that the javascript code snippet above was using, so that the server can respond whether it is acceptable to send the request with the actual request para
meters.
... access-control-max-age: <delta-seconds> the delta-seconds para
meter indicates the number of seconds the results can be cached.
List of default Accept values - HTTP
nt firefox text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 (since firefox 66) text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8 (in firefox 65) text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 (before) in firefox 65 and earlier, this value can be modified using the network.http.accept.default para
meter.
... user agent value comment firefox image/webp,*/* (since firefox 65) */* (since firefox 47) image/png,image/*;q=0.8,*/*;q=0.5 (before) this value can be modified using the image.http.accept para
meter.
Feature-Policy - HTTP
directives accelero
meter controls whether the current document is allowed to gather information about the acceleration of the device through the accelero
meter interface.
... magneto
meter controls whether the current document is allowed to gather information about the orientation of the device through the magneto
meter interface.
Public-Key-Pins - HTTP
includesubdomains optional if this optional para
meter is specified, this rule applies to all of the site's subdomains as well.
... report-uri="<uri>" optional if this optional para
meter is specified, pin validation failures are reported to the given url.
HTTP Index - HTTP
123 feature-policy: accelero
meter accelero
meter, directive, feature policy, http, reference the http feature-policy header accelero
meter directive controls whether the current document is allowed to gather information about the acceleration of the device through the accelero
meter interface.
... 136 feature-policy: magneto
meter directive, feature-policy, http, magneto
meter, reference the http feature-policy header magneto
meter directive controls whether the current document is allowed to gather information about the orientation of the device through the magneto
meter interface.
HTTP Public Key Pinning (HPKP) - HTTP
includesubdomains optional if this optional para
meter is specified, this rule applies to all of the site's subdomains as well.
... report-uri optional if this optional para
meter is specified, pin validation failures are reported to the given url.
Grammar and types - JavaScript
additionally, a best practice for parseint is to always include the radix para
meter.
... the radix para
meter is used to specify which numerical system is to be used.
Numbers and dates - JavaScript
to create a date object: var dateobjectname = new date([para
meters]); where dateobjectname is the name of the date object being created; it can be a new object or a property of an existing object.
... the para
meters in the preceding syntax can be any of the following: nothing: creates today's date and time.
getter - JavaScript
} } para
meters prop the name of the property to bind to the given function.
... note the following when working with the get syntax: it can have an identifier which is either a number or a string; it must have exactly zero para
meters (see incompatible es5 change: literal getter and setter functions must now have exactly zero or one arguments for more information); it must not appear in an object literal with another get or with a data entry for the same property ({ get x() { }, get x() { } } and { x: ..., get x() { } } are forbidden).
setter - JavaScript
}} para
meters prop the name of the property to bind to the given function.
... note the following when working with the set syntax: it can have an identifier which is either a number or a string; it must have exactly one para
meter (see incompatible es5 change: literal getter and setter functions must now have exactly zero or one arguments for more information); it must not appear in an object literal with another set or with a data entry for the same property.
Array.prototype.concat() - JavaScript
syntax const new_array = old_array.concat([value1[, value2[, ...[, valuen]]]]) para
meters valuen optional arrays and/or values to concatenate into a new array.
... if all valuen para
meters are omitted, concat returns a shallow copy of the existing array on which it is called.
Array.prototype.every() - JavaScript
syntax arr.every(callback(element[, index[, array]])[, thisarg]) para
meters callback a function to test for each element, taking three arguments: element the current element being processed in the array.
... if a thisarg para
meter is provided to every, it will be used as callback's this value.
Array.prototype.fill() - JavaScript
syntax arr.fill(value[, start[, end]]) para
meters value value to fill the array with.
... if the first para
meter is an object, each slot in the array will reference that object.
Array.prototype.filter() - JavaScript
syntax let newarray = arr.filter(callback(element[, index, [array]])[, thisarg]) para
meters callback function is a predicate, to test each element of the array.
... callback is invoked with three arguments: the value of the element the index of the element the array object being traversed if a thisarg para
meter is provided to filter, it will be used as the callback's this value.
Array.prototype.find() - JavaScript
syntax arr.find(callback(element[, index[, array]])[, thisarg]) para
meters callback function to execute on each value in the array, taking 3 arguments: element the current element in the array.
... if a thisarg para
meter is provided to find, it will be used as the this value inside each invocation of the callback.
Array.prototype.findIndex() - JavaScript
syntax arr.findindex(callback( element[, index[, array]] )[, thisarg]) para
meters callback a function to execute on each value in the array until the function returns true, indicating that the satisfying element was found.
... callback is invoked with three arguments: the value of the element the index of the element the array object being traversed if a thisarg para
meter is passed to findindex(), it will be used as the this inside each invocation of the callback.
Array.from() - JavaScript
syntax array.from(arraylike [, mapfn [, thisarg]]) para
meters arraylike an array-like or iterable object to convert to an array.
... array.from() has an optional para
meter mapfn, which allows you to execute a map() function on each element of the array being created.
Array.prototype.lastIndexOf() - JavaScript
syntax arr.lastindexof(searchelement[, fromindex]) para
meters searchelement element to locate in the array.
...array.lastindexof(element, idx - 1) : -1); } console.log(indices); // [4, 2, 0] note that we have to handle the case idx == 0 separately here because the element will always be found regardless of the fromindex para
meter if it is the first element of the array.
Array.prototype.push() - JavaScript
syntax arr.push([element1[, ...[, elementn]]]) para
meters elementn the element(s) to add to the end of the array.
... do not use this method if the second array (morevegs in the example) is very large because the maximum number of para
meters that one function can take is limited in practice.
Array.prototype.some() - JavaScript
syntax arr.some(callback(element[, index[, array]])[, thisarg]) para
meters callback a function to test for each element, taking three arguments: element the current element being processed in the array.
... if a thisarg para
meter is provided to some(), it will be used as the callback's this value.
Array.prototype.unshift() - JavaScript
syntax arr.unshift(element1[, ...[, elementn]]) para
meters elementn the elements to add to the front of the arr.
... please note that, if multiple elements are passed as para
meters, they're inserted in chunk at the beginning of the object, in the exact same order they were passed as para
meters.
AsyncFunction - JavaScript
it can be obtained with the following code: object.getprototypeof(async function(){}).constructor syntax new asyncfunction([arg1[, arg2[, ...argn]],] functionbody) para
meters arg1, arg2, ...
... all arguments passed to the function are treated as the names of the identifiers of the para
meters in the function to be created, in the order in which they are passed.
BigInt.prototype.toLocaleString() - JavaScript
syntax bigintobj.tolocalestring([locales [, options]]) para
meters the locales and options arguments customize the behavior of the function and let applications specify the language whose formatting conventions should be used.
... see the intl.numberformat() constructor for details on these para
meters and how to use them.
BigInt64Array() constructor - JavaScript
syntax new bigint64array(); new bigint64array(length); new bigint64array(typedarray); new bigint64array(object); new bigint64array(buffer [, byteoffset [, length]]); para
meters length when called with a length argument, an internal array buffer is created in memory, of size length multiplied by bytes_per_element bytes, containing zeros.
...the byteoffset and length para
meters specify the memory range that will be exposed by the typed array view.
BigUint64Array() constructor - JavaScript
syntax new biguint64array(); new biguint64array(length); new biguint64array(typedarray); new biguint64array(object); new biguint64array(buffer [, byteoffset [, length]]); para
meters length when called with a length argument, an internal array buffer is created in memory, of size length multiplied by bytes_per_element bytes, containing zeros.
...the byteoffset and length para
meters specify the memory range that will be exposed by the typed array view.
DataView() constructor - JavaScript
syntax new dataview(buffer [, byteoffset [, bytelength]]) para
meters buffer an existing arraybuffer or sharedarraybuffer to use as the storage backing the new dataview object.
... exceptions rangeerror thrown if the byteoffset or bytelength para
meter values result in the view extending past the end of the buffer.
Date() constructor - JavaScript
para
meters there are four basic forms for the date() constructor: no para
meters when no para
meters are provided, the newly-created date object represents the current date and time as of the time of instantiation.
... individual date and time component values given at least a year and month, this form of date() returns a date object whose component values (year, month, day, hour, minute, second, and millisecond) all come from the following para
meters.
Date.prototype.setUTCDate() - JavaScript
syntax dateobj.setutcdate(dayvalue) para
meters dayvalue an integer from 1 to 31, representing the day of the month.
... description if a para
meter you specify is outside of the expected range, setutcdate() attempts to update the date information in the date object accordingly.
Date.prototype.setUTCMilliseconds() - JavaScript
syntax dateobj.setutcmilliseconds(millisecondsvalue) para
meters millisecondsvalue a number between 0 and 999, representing the milliseconds.
... description if a para
meter you specify is outside of the expected range, setutcmilliseconds() attempts to update the date information in the date object accordingly.
Date.prototype.toLocaleDateString() - JavaScript
syntax dateobj.tolocaledatestring([locales [, options]]) para
meters the locales and options arguments customize the behavior of the function and let applications specify the language whose formatting conventions should be used.
... see the intl.datetimeformat() constructor for details on these para
meters and how to use them.
Date.prototype.toLocaleString() - JavaScript
syntax dateobj.tolocalestring([locales[, options]]) para
meters the locales and options arguments customize the behavior of the function and let applications specify the language whose formatting conventions should be used.
... see the intl.datetimeformat() constructor for details on these para
meters and how to use them.
Date.prototype.toLocaleTimeString() - JavaScript
syntax dateobj.tolocaletimestring([locales[, options]]) para
meters the locales and options arguments customize the behavior of the function and let applications specify the language whose formatting conventions should be used.
... see the intl.datetimeformat() constructor for details on these para
meters and how to use them.
Float32Array() constructor - JavaScript
syntax new float32array(); // new in es2017 new float32array(length); new float32array(typedarray); new float32array(object); new float32array(buffer [, byteoffset [, length]]); para
meters length when called with a length argument, an internal array buffer is created in memory, of size length multiplied by bytes_per_element bytes, containing zeros.
...the byteoffset and length para
meters specify the memory range that will be exposed by the typed array view.
Float64Array() constructor - JavaScript
syntax new float64array(); // new in es2017 new float64array(length); new float64array(typedarray); new float64array(object); new float64array(buffer [, byteoffset [, length]]); para
meters length when called with a length argument, an internal array buffer is created in memory, of size length multiplied by bytes_per_element bytes, containing zeros.
...the byteoffset and length para
meters specify the memory range that will be exposed by the typed array view.
Function.prototype.call() - JavaScript
syntax func.call([thisarg[, arg1, arg2, ...argn]]) para
meters thisarg optional the value to use as this when calling func.
... in the following example, the constructor for the product object is defined with two para
meters: name and price.
Generator.prototype.next() - JavaScript
you can also provide a para
meter to the next method to send a value to the generator.
... syntax gen.next(value) para
meters value the value to send to the generator.
GeneratorFunction - JavaScript
object.getprototypeof(function*(){}).constructor syntax new generatorfunction ([arg1[, arg2[, ...argn]],] functionbody) para
meters arg1, arg2, ...
... all arguments passed to the function are treated as the names of the identifiers of the para
meters in the function to be created, in the order in which they are passed.
Int16Array() constructor - JavaScript
syntax new int16array(); // new in es2017 new int16array(length); new int16array(typedarray); new int16array(object); new int16array(buffer [, byteoffset [, length]]); para
meters length when called with a length argument, an internal array buffer is created in memory, of size length multiplied by bytes_per_element bytes, containing zeros.
...the byteoffset and length para
meters specify the memory range that will be exposed by the typed array view.
Int32Array() constructor - JavaScript
syntax new int32array(); // new in es2017 new int32array(length); new int32array(typedarray); new int32array(object); new int32array(buffer [, byteoffset [, length]]); para
meters length when called with a length argument, an internal array buffer is created in memory, of size length multiplied by bytes_per_element bytes, containing zeros.
...the byteoffset and length para
meters specify the memory range that will be exposed by the typed array view.
Int8Array() constructor - JavaScript
syntax new int8array(); // new in es2017 new int8array(length); new int8array(typedarray); new int8array(object); new int8array(buffer [, byteoffset [, length]]); para
meters length when called with a length argument, an internal array buffer is created in memory, of size length multiplied by bytes_per_element bytes, containing zeros.
...the byteoffset and length para
meters specify the memory range that will be exposed by the typed array view.
Intl.ListFormat.prototype.format() - JavaScript
syntax listformat.format([list]); para
meters list an iterable object, such as an array return value a language-specific formatted string representing the elements of the list description the format() method returns a string that has been formatted based on para
meters provided in the intl.listformat object.
... the locales and options para
meters customize the behavior of format() and let applications specify the language conventions that should be used to format the list.
JSON.parse() - JavaScript
syntax json.parse(text[, reviver]) para
meters text the string to parse as json.
... throw new syntaxerror("json.parse"); }; } examples using json.parse() json.parse('{}'); // {} json.parse('true'); // true json.parse('"foo"'); // "foo" json.parse('[1, 5, "false"]'); // [1, 5, "false"] json.parse('null'); // null using the reviver para
meter if a reviver is specified, the value computed by parsing is transformed before being returned.
Map.prototype.forEach() - JavaScript
syntax mymap.foreach(callback([value][,key][,map])[, thisarg]) para
meters callback function to execute for each entry of mymap.
... callback is invoked with three arguments: the entry's value the entry's key the map object being traversed if a thisarg para
meter is provided to foreach, it will be passed to callback when invoked, for use as its this value.
Math.imul() - JavaScript
the math.imul() function returns the result of the c-like 32-bit multiplication of the two para
meters.
... syntax var product = math.imul(a, b); para
meters a first number.
Number.isFinite() - JavaScript
syntax number.isfinite(value) para
meters value the value to be tested for finiteness.
... description in comparison to the global isfinite() function, this method doesn't forcibly convert the para
meter to a number.
Number.isNaN() - JavaScript
syntax number.isnan(value) para
meters value the value to be tested for nan.
... in comparison to the global isnan() function, number.isnan() doesn't suffer the problem of forcefully converting the para
meter to a number.
Number.prototype.toExponential() - JavaScript
syntax numobj.toexponential([fractiondigits]) para
meters fractiondigits optional.
... if a number has more digits than requested by the fractiondigits para
meter, the number is rounded to the nearest number represented by fractiondigits digits.
Number.prototype.toLocaleString() - JavaScript
syntax numobj.tolocalestring([locales [, options]]) para
meters the locales and options arguments customize the behavior of the function and let applications specify the language whose formatting conventions should be used.
... see the intl.numberformat() constructor for details on these para
meters and how to use them.
Object.assign() - JavaScript
syntax object.assign(target, ...sources) para
meters target the target object — what to apply the sources’ properties to, which is returned after it is modified.
... merging objects with same properties const o1 = { a: 1, b: 1, c: 1 }; const o2 = { b: 2, c: 2 }; const o3 = { c: 3 }; const obj = object.assign({}, o1, o2, o3); console.log(obj); // { a: 1, b: 2, c: 3 } the properties are overwritten by other objects that have the same properties later in the para
meters order.
Object.setPrototypeOf() - JavaScript
syntax object.setprototypeof(obj, prototype) para
meters obj the object which is to have its prototype set.
...does nothing if the prototype para
meter isn't an object or null (i.e., number, string, boolean, or undefined).
Object.prototype.toString() - JavaScript
para
meters for numbers and bigints tostring() takes an optional para
meter radix the value of radix must be minimum 2 and maximum 36.
... to use the object.prototype.tostring() with every object, you need to call function.prototype.call() or function.prototype.apply() on it, passing the object you want to inspect as the first para
meter (called thisarg).
Promise.prototype.catch() - JavaScript
syntax p.catch(onrejected); p.catch(function(reason) { // rejection }); para
meters onrejected a function called when the promise is rejected.
... return value internally calls promise.prototype.then on the object upon which it was called, passing the para
meters undefined and the received onrejected handler.
handler.setPrototypeOf() - JavaScript
syntax const p = new proxy(target, { setprototypeof: function(target, prototype) { } }); para
meters the following para
meters are passed to the setprototypeof() method.
... interceptions this trap can intercept these operations: object.setprototypeof() reflect.setprototypeof() invariants if the following invariants are violated, the proxy will throw a typeerror: if target is not extensible, the prototype para
meter must be the same value as object.getprototypeof(target).
Reflect.construct() - JavaScript
syntax reflect.construct(target, argumentslist[, newtarget]) para
meters target the target function to call.
... when invoking reflect.construct(), on the other hand, the new.target operator will point to the newtarget para
meter if supplied, or target if not.
Set() constructor - JavaScript
syntax new set([iterable]) para
meters iterable optional if an iterable object is passed, all of its elements will be added to the new set.
... if you don't specify this para
meter, or its value is null, the new set is empty.
Set.prototype.forEach() - JavaScript
syntax myset.foreach(callback[, thisarg]) para
meters callback function to execute for each element, taking three arguments: currentvalue, currentkey the current element being processed in the set.
... if a thisarg para
meter is provided to foreach(), it will be passed to callback when invoked, for use as its this value.
String.prototype.localeCompare() - JavaScript
syntax referencestr.localecompare(comparestring[, locales[, options]]) para
meters comparestring the string against which the referencestr is compared.
... see the intl.collator() constructor for details on these para
meters and how to use them.
String.prototype.padEnd() - JavaScript
syntax str.padend(targetlength [, padstring]) para
meters targetlength the length of the resulting string once the current str has been padded.
...the default value for this para
meter is " " (u+0020).
String.prototype.split() - JavaScript
the division is done by searching for a pattern; where the pattern is provided as the first para
meter in the method's call.
... syntax str.split([separator[, limit]]) para
meters separator optional the pattern describing where each split should occur.
String.prototype.substr() - JavaScript
syntax str.substr(start[, length]) para
meters start the index of the first character to include in the returned substring.
... where to start the substring * @param {integer} length how many characters to return * @return {string} */ string.prototype.substr = function(substr) { return function(start, length) { // call the original method return substr.call(this, // did we get a negative start, calculate how much it is from the beginning of the string // adjust the start para
meter for negative value start < 0 ?
TypedArray.prototype.every() - JavaScript
syntax typedarray.every(callback[, thisarg]) para
meters callback function to test for each element, taking three arguments: currentvalue the current element being processed in the typed array.
... if a thisarg para
meter is provided to every, it will be passed to callback when invoked, for use as its this value.
TypedArray.prototype.filter() - JavaScript
syntax typedarray.filter(callback[, thisarg]) para
meters callback function to test each element of the typed array.
... callback is invoked with three arguments: the value of the element the index of the element the typed array object being traversed if a thisarg para
meter is provided to filter, it will be passed to callback when invoked, for use as its this value.
TypedArray.prototype.find() - JavaScript
syntax typedarray.find(callback[, thisarg]) para
meters callback function to execute on each value in the typed array, taking three arguments: element the current element being processed in the typed array.
... if a thisarg para
meter is provided to find, it will be used as the this for each invocation of the callback.
TypedArray.prototype.findIndex() - JavaScript
syntax typedarray.findindex(callback[, thisarg]) para
meters callback function to execute on each value in the typed array, taking three arguments: element the current element being processed in the typed array.
... if a thisarg para
meter is provided to findindex, it will be used as the this for each invocation of the callback.
TypedArray.prototype.forEach() - JavaScript
syntax typedarray.foreach(callback[, thisarg]) para
meters callback function that produces an element of the new typed array, taking three arguments: currentvalue the current element being processed in the typed array.
... callback is invoked with three arguments: the element value the element index the typed array being traversed if a thisarg para
meter is provided to foreach(), it will be passed to callback when invoked, for use as its this value.
TypedArray.prototype.map() - JavaScript
syntax typedarray.map(mapfn[, thisarg]) para
meters mapfn a callback function that produces an element of the new typed array, taking three arguments: currentvalue the current element being processed in the typed array.
... if a thisarg para
meter is provided to map(), it will be passed to mapfn when invoked, for use as its this value.
TypedArray.prototype.some() - JavaScript
syntax typedarray.some(callback[, thisarg]) para
meters callback function to test for each element, taking three arguments: currentvalue the current element being processed in the typed array.
... if a thisarg para
meter is provided to some, it will be passed to callback when invoked, for use as its this value.
TypedArray.prototype.toLocaleString() - JavaScript
syntax typedarray.tolocalestring([locales [, options]]); para
meters the locales and options arguments customize the behavior of the function and let applications specify the language whose formatting conventions should be used.
... see the intl.numberformat() constructor for details on these para
meters and how to use them.
TypedArray - JavaScript
para
meters length when called with a length argument, an internal array buffer is created in memory, of size length multiplied by bytes_per_element bytes, containing zeros.
...the byteoffset and length para
meters specify the memory range that will be exposed by the typed array view.
Uint16Array() constructor - JavaScript
syntax new uint16array(); // new in es2017 new uint16array(length); new uint16array(typedarray); new uint16array(object); new uint16array(buffer [, byteoffset [, length]]); para
meters length when called with a length argument, an internal array buffer is created in memory, of size length multiplied by bytes_per_element bytes, containing zeros.
...the byteoffset and length para
meters specify the memory range that will be exposed by the typed array view.
Uint32Array() constructor - JavaScript
syntax new uint32array(); // new in es2017 new uint32array(length); new uint32array(typedarray); new uint32array(object); new uint32array(buffer [, byteoffset [, length]]); para
meters length when called with a length argument, an internal array buffer is created in memory, of size length multiplied by bytes_per_element bytes, containing zeros.
...the byteoffset and length para
meters specify the memory range that will be exposed by the typed array view.
Uint8Array() constructor - JavaScript
syntax new uint8array(); // new in es2017 new uint8array(length); new uint8array(typedarray); new uint8array(object); new uint8array(buffer [, byteoffset [, length]]); para
meters length when called with a length argument, an internal array buffer is created in memory, of size length multiplied by bytes_per_element bytes, containing zeros.
...the byteoffset and length para
meters specify the memory range that will be exposed by the typed array view.
Uint8ClampedArray() constructor - JavaScript
syntax new uint8clampedarray(); // new in es2017 new uint8clampedarray(length); new uint8clampedarray(typedarray); new uint8clampedarray(object); new uint8clampedarray(buffer [, byteoffset [, length]]); para
meters length when called with a length argument, an internal array buffer is created in memory, of size length multiplied by bytes_per_element bytes, containing zeros.
...the byteoffset and length para
meters specify the memory range that will be exposed by the typed array view.
WebAssembly.Memory() constructor - JavaScript
syntax new webassembly.memory(memorydescriptor); para
meters memorydescriptor an object that can contain the following members: initial the initial size of the webassembly memory, in units of webassembly pages.
...when present, the maximum para
meter acts as a hint to the engine to reserve memory up front.
WebAssembly.instantiateStreaming() - JavaScript
syntax promise<resultobject> webassembly.instantiatestreaming(source, importobject); para
meters source a response object or a promise that will fulfill with one, representing the underlying source of a .wasm module you want to stream, compile, and instantiate.
... exceptions if either of the para
meters are not of the correct type or structure, a typeerror is thrown.
decodeURIComponent() - JavaScript
syntax decodeuricomponent(encodeduri) para
meters encodeduri an encoded component of a uniform resource identifier.
... examples decoding a cyrillic url component decodeuricomponent('javascript_%d1%88%d0%b5%d0%bb%d0%bb%d1%8b'); // "javascript_шеллы" catching errors try { var a = decodeuricomponent('%e0%a4%a'); } catch(e) { console.error(e); } // urierror: malformed uri sequence decoding query para
meters from a url decodeuricomponent cannot be used directly to parse query para
meters from a url.
encodeURIComponent() - JavaScript
syntax encodeuricomponent(str); para
meters str string.
...ing uses, the following can be safely used: function fixedencodeuricomponent(str) { return encodeuricomponent(str).replace(/[!'()*]/g, function(c) { return '%' + c.charcodeat(0).tostring(16); }); } examples encoding for content-disposition and link headers the following example provides the special encoding required within utf-8 content-disposition and link server response header para
meters (e.g., utf-8 filenames): var filename = 'my file(2).txt'; var header = "content-disposition: attachment; filename*=utf-8''" + encoderfc5987valuechars(filename); console.log(header); // logs "content-disposition: attachment; filename*=utf-8''my%20file%282%29.txt" function encoderfc5987valuechars(str) { return encodeuricomponent(str).
eval() - JavaScript
syntax eval(string) para
meters string a string representing a javascript expression, statement, or sequence of statements.
...} , false); closures are also helpful as a way to create para
meterized functions without concatenating strings.
isFinite() - JavaScript
if needed, the para
meter is first converted to a number.
... syntax isfinite(testvalue) para
meters testvalue the value to be tested for finiteness.
Pipeline operator (|>) - JavaScript
the result is syntactic sugar in which a function call with a single argument can be written like this: let url = "%21" |> decodeuri; the equivalent call in traditional syntax looks like this: let url = decodeuri("%21"); syntax expression |> function the value of the specified expression is passed into the function as its sole para
meter.
... para
meters expression any valid expression.
new operator - JavaScript
syntax new constructor[([arguments])] para
meters constructor a class or function that specifies the type of the object instance.
... this.make = make; this.model = model; this.year = year; this.owner = owner; } to instantiate the new objects, you then use the following: var car1 = new car('eagle', 'talon tsi', 1993, rand); var car2 = new car('nissan', '300zx', 1992, ken); instead of passing a literal string or integer value when creating the new objects, the above statements pass the objects rand and ken as the para
meters for the owners.
import.meta - JavaScript
note that this will include query para
meters and/or hash (i.e., following the ?
... for example, with the following html: <script type="module"> import './index.mjs?someurlinfo=5'; </script> ..the following javascript file will log the `someurlinfo para
meter: // index.mjs new url(import.meta.url).searchparams.get('someurlinfo'); // 5 the same applies when a file imports another: // index.mjs import './index2.mjs?someurlinfo=5'; // index2.mjs new url(import.meta.url).searchparams.get('someurlinfo'); // 5 note that while node.js will pass on query para
meters (or the hash) as in the latter example, as of node 14.1.0, a url with query para
meters will err when loading in the form node --experimental-modules index.mjs?someurlinfo=5 (it is treated as a file rather than a url in this context).
import - JavaScript
description the name para
meter is the name of the "module object" which will be used as a kind of namespace to refer to the exports.
... the export para
meters specify individual named exports, while the import * as name syntax imports all of them.
Web audio codec guide - Web media technologies
in addition to choosing the type of encoder to use, you may have the opportunity to adjust the encoder using para
meters that choose specific algorithms, tune those algorithms, and specify how many passes to apply while encoding.
... joint stereo can reduce the size of the encoded audio to some extent the para
meters available—and the range of possible values—varies from codec to codec, and even among different encoding utilities for the same codec, so read the documentation that comes with the encoding software you use to learn more.
Web video codec guide - Web media technologies
breaking down the value of the codecs para
meter into its dot-delineated properties, we see the following: value desccription av01 the four-character code (4cc) designation identifying the av1 codec.
... the documentation for your codec choices will probably offer information you'll use when constructing your codecs para
meter.
transform - SVG: Scalable Vector Graphics
if optional para
meters x and y are not supplied, the rotation is about the origin of the current user coordinate system.
... if optional para
meters x and y are supplied, the rotation is about the point (x, y).
<radialGradient> - SVG: Scalable Vector Graphics
the gradient will be drawn such that the 0% <stop> is mapped to the peri
meter of the start circle.
...the gradient will be drawn such that the 100% <stop> is mapped to the peri
meter of the end circle.
SVG documentation index - SVG: Scalable Vector Graphics
30 basefrequency filters, svg, svg attribute the basefrequency attribute represents the base frequency para
meter for the noise function of the <feturbulence> filter primitive.
...some of the para
meters that determine their position and size are given, but an element reference would probably contain more accurate and complete descriptions along with other properties that won't be covered in here.
Web Components
:host(): selects the shadow host of the shadow dom containing the css it is used inside (so you can select a custom element from inside its shadow dom) — but only if the selector given as the function's para
meter matches the shadow host.
... :host-context(): selects the shadow host of the shadow dom containing the css it is used inside (so you can select a custom element from inside its shadow dom) — but only if the selector given as the function's para
meter matches the shadow host's ancestor(s) in the place it sits inside the dom hierarchy.
Converting WebAssembly text format to wasm - WebAssembly
when it is called, it calls an imported javascript function called imported_func, which is run with the value (42) provided as a para
meter.
... next, execute the wat2wasm program, passing it the path to the input file, followed by an -o para
meter, followed by the path to the output file: wat2wasm simple.wat -o simple.wasm this will convert the wasm into a file called simple.wasm, which contains the .wasm assembly code.
Compiling an Existing C Module to WebAssembly - WebAssembly
hub.com/webmproject/libwebp to start off simple, expose webpgetencoderversion() from encode.h to javascript by writing a c file called webp.c: #include "emscripten.h" #include "src/webp/encode.h" emscripten_keepalive int version() { return webpgetencoderversion(); } this is a good simple program to test whether you can get the source code of libwebp to compile, as it doesn't require any para
meters or complex data structures to invoke this function.
...emscripten provides emconfigure and emmake to wrap these commands and inject the appropriate para
meters.
Communicating With Other Scripts - Archive of obsolete content
in this example, "main.js" creates a page-mod to target the page we are interested in: var data = require("sdk/self").data; var pagemod = require("sdk/page-mod"); pagemod.pagemod({ include: "http://my-domain.org/talk.html", contentscriptfile: data.url("listen.js") }); the web page "talk.html" creates and dispatches a custom dom event, using initcustomevent()'s detail para
meter to supply the payload: <!doctype html> <html> <head></head> <body> <script> function sendmessage() { var event = document.createevent('customevent'); event.initcustomevent("addon-message", true, true, { hello: 'world' }); document.documentelement.dispatchevent(event); } </script> <button onclick="sendmessage()">send message</button> </body> <...
Interacting with page scripts - Archive of obsolete content
in this example, "main.js" creates a page-mod to target the page we are interested in: var data = require("sdk/self").data; var pagemod = require("sdk/page-mod"); pagemod.pagemod({ include: "http://my-domain.org/talk.html", contentscriptfile: data.url("listen.js") }); the web page "talk.html" creates and dispatches a custom dom event, using initcustomevent()'s detail para
meter to supply the payload: <!doctype html> <html> <head></head> <body> <script> function sendmessage() { var event = document.createevent('customevent'); event.initcustomevent("addon-message", true, true, { hello: 'world' }); document.documentelement.dispatchevent(event); } </script> <button onclick="sendmessage()">send message</button> </body> <...
Modules - Archive of obsolete content
the sandbox constructor takes a url para
meter, which is used to determine the set of privileges for the compartment in which the sandbox will be created.
hotkeys - Archive of obsolete content
para
meters options : object required options: name type combo string any function key: "f1, f2, ..., f24" or key combination in the format of 'modifier-key': "accel-s" "meta-shift-i" "control-alt-d" all hotkeys require at least one modifier as well as the key.
page-mod - Archive of obsolete content
para
meters options : object required options: name: include type: string, regexp, or array of (string or regexp) a match pattern string or an array of match pattern strings.
private-browsing - Archive of obsolete content
it takes an object as an argument, and returns true only if the object is: a private browserwindow or a tab belonging to a private window, or a worker that's associated with a document hosted in a private window para
meters object : any the object to check.
statusbar - Archive of obsolete content
properties accessibletype examples <statusbar> <statusbarpanel label="left panel"/> <spacer flex="1"/> <progress
meter mode="determined" value="82"/> <statusbarpanel label="right panel"/> </statusbar> attributes inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, container, containment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id, insertafter, insertbefore, left, maxheight, maxwidth, menu, minheight,...
<statusbarpanel> - Archive of obsolete content
attributes crop, image, label properties image, label style classes statusbarpanel-iconic, statusbarpanel-iconic-text, statusbarpanel-menu-iconic examples <statusbar> <statusbarpanel label="left panel"/> <spacer flex="1"/> <progress
meter mode="determined" value="82"/> <statusbarpanel label="right panel"/> </statusbar> attributes crop type: one of the values below if the label of the element is too big to fit in its given space, the text will be cropped on the side specified by the crop attribute.
tree - Archive of obsolete content
if the shouldaccept para
meter is true, the cell's label is changed to the edited value (the tree view's nsitreeview.setcelltext() method is called to change the cell contents).
Debugging a XULRunner Application - Archive of obsolete content
add the following code to your xul app: components.utils.import('resource://gre/modules/devtools/dbg-server.jsm'); if (!debuggerserver.initialized) { debuggerserver.init(); // don't specify a window type para
meter below if "navigator:browser" // is suitable for your app.
xulauncher - Archive of obsolete content
#!/bin/bash -e # a simple bash script to create a minimal xulrunner dir structure and # needed meta files in /tmp, copy the xul-file over and start it # usage: # xulauncher xulfile.xul [options] ############################################################################## # check if theres atleast one para
meter ############################################################################## if [ $# -lt 1 ] then echo "you need to give the xul file as first para
meter" exit fi # check if 1st para
meter is a file ############################################################################## if [ !
NPN_CreateObject - Archive of obsolete content
syntax #include <npruntime.h> npobject *npn_createobject(npp npp, npclass *aclass); para
meters the function has the following para
meters: <tt>npp</tt> the npp indicating which plugin wants to instantiate the object.
NPN_DestroyStream - Archive of obsolete content
syntax #include <npapi.h> nperror npn_destroystream(npp instance, npstream* stream, nperror reason); para
meters the function has the following para
meters: instance pointer to current plug-in instance.
NPN_Evaluate - Archive of obsolete content
syntax #include <npruntime.h> bool npn_evaluate(npp npp, npobject *npobj, npstring *script, npvariant *result); para
meters the function has the following para
meters: npp the npp indicating which plugin instance's window to evaluate the script in.
NPN_ForceRedraw - Archive of obsolete content
syntax #include <npapi.h> void npn_forceredraw(npp instance); para
meters the function has the following para
meters: instance plug-in instance for which the function forces redrawing.
NPN_GetIntIdentifier - Archive of obsolete content
syntax #include <npruntime.h> npidentifier npn_getintidentifier(int32_t intid); para
meters the function has the following para
meter: <tt>intid</tt> the integer for which an opaque identifier should be returned.
NPN_GetProperty - Archive of obsolete content
syntax #include <npruntime.h> bool npn_getproperty(npp npp, npobject *npobj, npidentifier propertyname, npvariant *result); para
meters the function has the following para
meters: <tt>npp</tt> the npp indicating which plugin instance's is making the request.
NPN_RemoveProperty - Archive of obsolete content
syntax #include <npruntime.h> bool npn_removeproperty(npp npp, npobject *npobj, npidentifier propertyname); para
meters the function has the following para
meters: npp the npp indicating which plugin instance is making the request.
NPN_RequestRead - Archive of obsolete content
syntax #include <npapi.h> nperror npn_requestread(npstream* stream, npbyterange* rangelist); para
meters the function has the following para
meters: stream stream of type np_seek from which to read bytes.
NPN_SetException - Archive of obsolete content
syntax #include <npruntime.h> void npn_setexception(npobject *npobj, const nputf8 *message); para
meters the function has the following para
meters: <tt>npobj</tt> the object on which the exception occurred.
NPN_SetProperty - Archive of obsolete content
syntax #include <npruntime.h> bool npn_setproperty(npp npp, npobject *npobj, npidentifier propertyname, const npvariant *value); para
meters the function has the following para
meters: <tt>npp</tt> the npp indicating which plugin instance's is making the request.
NPN_SetValueForURL - Archive of obsolete content
much meaning given how proxies are configured, and is not supported.) syntax #include <npapi.h> typedef enum { npnurlvcookie = 501, npnurlvproxy } npnurlvariable; nperror npn_setvalueforurl(npp instance, npnurlvariable variable, const char *url, const char *value, uint32_t len); para
meters this function has the following para
meters: instance pointer to the current plug-in instance.
NPN_Status - Archive of obsolete content
syntax #include <npapi.h> void npn_status(npp instance, const char* message); para
meters the function has the following para
meters: instance pointer to the current plug-in instance.
NPN_UTF8FromIdentifier - Archive of obsolete content
syntax #include <npruntime.h> nputf8 *npn_utf8fromidentifier(npidentifier identifier); para
meters the function has the following para
meter: <tt>identifier</tt> the string identifier whose corresponding string should be returned.
NPN_Version - Archive of obsolete content
syntax #include <npapi.h> void npn_version(int* plugin_major, int* plugin_minor, int* netscape_major, int* netscape_minor); para
meters the function has the following para
meters: plugin_major pointer to a plug-in's major version number; changes with major code release number.
NPN_Write - Archive of obsolete content
syntax #include <npapi.h> int32 npn_write(npp instance, npstream* stream, int32 len, void* buf); para
meters the function has the following para
meters: instance pointer to the current plug-in instance.
NPP_DestroyStream - Archive of obsolete content
syntax #include <npapi.h> nperror npp_destroystream(npp instance, npstream* stream, npreason reason); para
meters the function has the following para
meters: instance pointer to current plug-in instance.
NPP_GetValue - Archive of obsolete content
syntax #include <npapi.h> nperror npp_getvalue(void *instance, nppvariable variable, void *value); para
meters the function has the following para
meters: instance pointer to the plugin instance from which the value should come.
NPP_SetValue - Archive of obsolete content
syntax #include <npapi.h> nperror npp_setvalue(void *instance, npnvariable variable, void *value); para
meters the function has the following para
meters: instance pointer to plugin instance on which to set the variable.
NPP_StreamAsFile - Archive of obsolete content
syntax #include <npapi.h> void npp_streamasfile(npp instance, npstream* stream, const char* fname); para
meters the function has the following para
meters: instance pointer to current plug-in instance.
PR_QueueJob_Connect
syntax #include <prtpool.h> nspr_api(prjob *) pr_queuejob_connect( prthreadpool *tpool, prjobiodesc *iod, const prnetaddr *addr, prjobfn fn, void * arg, prbool joinable ); para
meters the function has the following para
meters: tpool a pointer to a prthreadpool structure previously created by a call to pr_createthreadpool.
PR_QueueJob_Read
syntax #include <prtpool.h> nspr_api(prjob *) pr_queuejob_read( prthreadpool *tpool, prjobiodesc *iod, prjobfn fn, void *arg, prbool joinable ); para
meters the function has the following para
meters: tpool a pointer to a prthreadpool structure previously created by a call to pr_createthreadpool.
PR_QueueJob_Timer
syntax #include <prtpool.h> nspr_api(prjob *) pr_queuejob_timer( prthreadpool *tpool, printervaltime timeout, prjobfn fn, void * arg, prbool joinable ); para
meters the function has the following para
meters: tpool a pointer to a prthreadpool structure previously created by a call to pr_createthreadpool.
PR_QueueJob_Write
syntax #include <prtpool.h> nspr_api(prjob *) pr_queuejob_write( prthreadpool *tpool, prjobiodesc *iod, prjobfn fn, void *arg, prbool joinable ); para
meters the function has the following para
meters: tpool a pointer to a prthreadpool structure previously created by a call to pr_createthreadpool.
PR_Realloc
syntax #include <prmem.h> void *pr_realloc ( void *ptr, pruint32 size); para
meters ptr a pointer to the existing memory block being resized.
PR_REMOVE_AND_INIT_LINK
syntax #include <prclist.h> pr_remove_and_init_link (prclist *elemp); para
meter elemp a pointer to the element.
PR_REMOVE_LINK
syntax #include <prclist.h> pr_remove_link (prclist *elemp); para
meter elemp a pointer to the element.
PR_Read
syntax #include <prio.h> print32 pr_read(prfiledesc *fd, void *buf, print32 amount); para
meters the function has the following para
meters: fd a pointer to a prfiledesc object for the file or socket.
PR_Recv
syntax #include <prio.h> print32 pr_recv( prfiledesc *fd, void *buf, print32 amount, printn flags, printervaltime timeout); para
meters the function has the following para
meters: fd a pointer to a prfiledesc object representing a socket.
PR_Rename
syntax #include <prio.h> prstatus pr_rename( const char *from, const char *to); para
meters the function has the following para
meters: from the old name of the file to be renamed.
PR_RmDir
syntax #include <prio.h> prstatus pr_rmdir(const char *name); para
meter the function has the following para
meter: name the name of the directory to be removed.
PR_STATIC_ASSERT
syntax #include <prlog.h> pr_static_assert ( expression ); para
meters the macro has this para
meter: expression any valid expression which evaluates at compile-time to true or false.
PR_SetConcurrency
syntax #include <prinit.h> void pr_setconcurrency(pruintn numcpus); para
meter pr_setconcurrency has one para
meter: numcpus the number of extra virtual processor threads to be created.
PR_SetError
syntax #include <prerror.h> void pr_seterror(prerrorcode errorcode, print32 oserr) para
meters the function has these para
meters: errorcode the nspr (platform-independent) translation of the error.
PR_SetErrorText
syntax #include <prerror.h> void pr_seterrortext(printn textlength, const char *text) para
meters the function has these para
meters: textlength the length of the text in the text.
PR_cnvtf
syntax #include <prdtoa.h> void pr_cnvtf ( char *buf, printn bufsz, printn prcsn, prfloat64 fval); para
meters the function has these para
meters: buf the address of the buffer in which to store the result.
NSPR API Reference
ses memory-mapped i/o functions anonymous pipe function polling functions pollable events manipulating layers network addresses network address types and constants network address functions atomic operations pr_atomicincrement pr_atomicdecrement pr_atomicset interval timing interval time type and constants interval functions date and time types and constants time para
meter callback functions functions memory management operations memory allocation functions memory allocation macros string operations pl_strlen pl_strcpy pl_strdup pl_strfree floating point number to string conversion pr_strtod pr_dtoa pr_cnvtf long long (64-bit) integers bitmaps formatted printing linked lists linked list types prclist linked list macros ...
CERT_FindCertByDERCert
syntax #include <cert.h> certcertificate *cert_findcertbydercert( certcertdbhandle *handle, secitem *dercert ); para
meters handle in pointer to a certcertdbhandle representing the certificate database to look in dercert in pointer to an secitem whose type must be sidercertbuffer and whose data contains a der-encoded certificate description this function looks in the ?nsscryptocontext?
CERT_FindCertByIssuerAndSN
syntax #include <cert.h> certcertificate *cert_findcertbyissuerandsn ( certcertdbhandle *handle, certissuerandsn *issuerandsn ); para
meters handle in pointer to a certcertdbhandle representing the certificate database to look in issuerandsn in pointer to a certissuerandsn that must be properly formed to contain the issuer name and the serial number (see [example]) description this function creates a certificate key using the issuerandsn and it then uses the key to find the matching certificate in the database.
Encrypt Decrypt MAC Keys As Session Objects
text * encryptinit(pk11symkey *ek, unsigned char *iv, unsigned int ivlen, ck_mechanism_type type) { return cryptinit(ek, iv, ivlen, type, cka_encrypt); } /* * decryptinit */ pk11context * decryptinit(pk11symkey *dk, unsigned char *iv, unsigned int ivlen, ck_mechanism_type type) { return cryptinit(dk, iv, ivlen, type, cka_decrypt); } /* * read cryptographic para
meters from the header file */ secstatus readfromheaderfile(const char *filename, headertype type, secitem *item, prbool ishexdata) { secstatus rv; prfiledesc* file; secitem filedata; secitem outbuf; unsigned char *nonbody; unsigned char *body; char header[40]; char trailer[40]; outbuf.type = sibuffer; ...
Encrypt and decrypt MAC using token
text * encryptinit(pk11symkey *ek, unsigned char *iv, unsigned int ivlen, ck_mechanism_type type) { return cryptinit(ek, iv, ivlen, type, cka_encrypt); } /* * decryptinit */ pk11context * decryptinit(pk11symkey *dk, unsigned char *iv, unsigned int ivlen, ck_mechanism_type type) { return cryptinit(dk, iv, ivlen, type, cka_decrypt); } /* * read cryptographic para
meters from the header file */ secstatus readfromheaderfile(const char *filename, headertype type, secitem *item, prbool ishexdata) { secstatus rv; prfiledesc* file; secitem filedata; secitem outbuf; unsigned char *nonbody; unsigned char *body; char header[40]; char trailer[40]; outbuf.type = sibuffer; ...
4.3 Release Notes
new sqlite-based shareable certificate and key databases by prepending the string "sql:" to the directory path passed to configdir para
meter for crypomanager.initialize method or using the nss environment variable nss_default_db_type.
JSS Provider Notes
none of the key generation algorithms accepts an algorithmpara
meterspec.
NSS_3.12.2_release_notes.html
bug 200704: pkcs11: invalid session handle 0 bug 205434: fully implement new libpkix cert verification api from bug 294531 bug 302670: use the installed libz.so where available bug 305693: shlibsign generates pqg for every run bug 311483: exposing includecertchain as a para
meter to sec_pkcs12addcertandkey bug 390527: get rid of pkixerrormsg variable in pkix_error bug 391560: libpkix does not consistently return pkix_validatenode tree that truly represent failure reasons bug 408260: certutil usage doesn't give enough information about trust arguments bug 412311: replace pr_interval_no_wait with pr_interval_no_timeout in client initialization calls bug 423839: ad...
NSS 3.12.4 release notes
compliant for 2011 bug 494087: passing null as the value of cert_pi_trustanchors causes a crash in cert_pkixsetparam bug 494107: during nss_nodb_init(), softoken tries but fails to load libsqlite3.so crash [@ @0x0 ] bug 495097: sdb_mapsqlerror returns signed int bug 495103: nss_initreadwrite(sql:<dbdir>) causes nss to look for sql:<dbdir>/libnssckbi.so bug 495365: add const to the 'nickname' para
meter of sec_certnicknameconflict bug 495656: nss_initreadwrite(sql:<configdir>) leaves behind a pkcs11.txu file if libnssckbi.so is in <configdir>.
NSS 3.14.2 release notes
bug 373108 - fixed a bug where, under certain circumstances, when applications supplied invalid/out-of-bounds para
meters for aes encryption, a double free may occur.
NSS 3.14.3 release notes
new types ck_nss_mac_constant_time_params - para
meters for use with ckm_nss_hmac_constant_time and ckm_nss_ssl3_mac_constant_time.
NSS 3.17 release notes
new macros in ssl.h ssl_reuse_server_ecdhe_key notable changes in nss 3.17 the manual pages for the certutil and pp tools have been updated to document the new para
meters that had been added in nss 3.16.2.
NSS 3.47 release notes
bug 1542207 - limit policy check on signature algorithms to known algorithms bug 1560329 - drbg: add continuous self-test on entropy source bug 1579290 - asan builds should disable lsan while building bug 1385061 - build nspr tests with nss make; add gyp para
meters to build/run nspr tests bug 1577359 - build atob and btoa for thunderbird bug 1579036 - confusing error when trying to export non-existent cert with pk12util bug 1578626 - [cid 1453375] ub: decrement nullptr.
NSS 3.48 release notes
han 1.3 after helloretryrequest bug 1596450 - added a simplified and unified mac implementation for hmac and cmac behind pkcs#11 bug 1522203 - remove an old pentium pro performance workaround bug 1592557 - fix prng known-answer-test scripts bug 1586176 - encryptupdate should use maxout not block size (cve-2019-11745) bug 1593141 - add `notbefore` or similar "beginning-of-validity-period" para
meter to mozilla::pkix::trustdomain::checkrevocation bug 1591363 - fix a pbkdf2 memory leak in nsc_generatekey if key length > max_key_len (256) bug 1592869 - use arm neon for ctr_xor bug 1566131 - ensure sha-1 fallback disabled in tls 1.2 bug 1577803 - mark pkcs#11 token as friendly if it implements ckp_public_certificates_token bug 1566126 - power ghash vector acceleration bug 1589073 - use of ...
Enc Dec MAC Output Public Key as CSR
text * encryptinit(pk11symkey *ek, unsigned char *iv, unsigned int ivlen, ck_mechanism_type type) { return cryptinit(ek, iv, ivlen, type, cka_encrypt); } /* * decryptinit */ pk11context * decryptinit(pk11symkey *dk, unsigned char *iv, unsigned int ivlen, ck_mechanism_type type) { return cryptinit(dk, iv, ivlen, type, cka_decrypt); } /* * read cryptographic para
meters from the header file */ secstatus readfromheaderfile(const char *filename, headertype type, secitem *item, prbool ishexdata) { secstatus rv; secitem filedata; secitem outbuf; unsigned char *nonbody; unsigned char *body; char *header; char *trailer; prfiledesc *file = null; outbuf.type = sibuffer; ...
Encrypt Decrypt_MAC_Using Token
text * encryptinit(pk11symkey *ek, unsigned char *iv, unsigned int ivlen, ck_mechanism_type type) { return cryptinit(ek, iv, ivlen, type, cka_encrypt); } /* * decryptinit */ pk11context * decryptinit(pk11symkey *dk, unsigned char *iv, unsigned int ivlen, ck_mechanism_type type) { return cryptinit(dk, iv, ivlen, type, cka_decrypt); } /* * read cryptographic para
meters from the header file.
NSS Sample Code Sample1
rv = getprivatekey(&prvkey); if (rv == 0 && prvkey) goto done; rv = 0; // these could be para
meters to the init function rsaparams.keysizeinbits = 1024; rsaparams.pe = 65537; slot = pk11_getinternalkeyslot(); if (!slot) { rv = 1; goto done; } prvkey = pk11_generatekeypair(slot, ckm_rsa_pkcs_key_pair_gen, &rsaparams, &pubkey, pr_true, pr_true, 0); if (!prvkey) { rv = 1; goto done; } // set the nickname on the private key so that it // can be found later.
NSS Sample Code Sample_3_Basic Encryption and MACing
text * encryptinit(pk11symkey *ek, unsigned char *iv, unsigned int ivlen, ck_mechanism_type type) { return cryptinit(ek, iv, ivlen, type, cka_encrypt); } /* * decryptinit */ pk11context * decryptinit(pk11symkey *dk, unsigned char *iv, unsigned int ivlen, ck_mechanism_type type) { return cryptinit(dk, iv, ivlen, type, cka_decrypt); } /* * read cryptographic para
meters from the header file */ secstatus readfromheaderfile(const char *filename, headertype type, secitem *item, prbool ishexdata) { secstatus rv; prfiledesc* file; secitem filedata; secitem outbuf; unsigned char *nonbody; unsigned char *body; char header[40]; char trailer[40]; outbuf.type = sibuffer; ...
NSS Sample Code sample2
* when not using cbc mode, ivitem.data and ivitem.len can be 0, or you * can simply pass null for the iv para
meter in pk11_paramfromiv func */ ivitem.type = sibuffer; ivitem.data = giv; ivitem.len = sizeof(giv); secparam = pk11_paramfromiv(ciphermech, &ivitem); if (secparam == null) { fprintf(stderr, "failure to set up pkcs11 param (err %d)\n", pr_geterror()); goto out; } /* sample data we'll encrypt and decrypt */ strcpy(data, "encrypt me!"); fprintf(stderr, "clear...
NSS Sample Code sample3
context = 0; /* * part 2 - hashing with included secret key */ cout << "part 2 -- hashing with included secret key" << endl; /* initialize data */ memset(data, 0xbc, sizeof data); /* create a key */ key = pk11_keygen(slot, ckm_generic_secret_key_gen, 0, 128, 0); if (!key) { cout << "create key failed" << endl; goto done; } cout << (void *)key << endl; /* create para
meters for crypto context */ /* note: params must be provided, but may be empty */ secitem noparams; noparams.type = sibuffer; noparams.data = 0; noparams.len = 0; /* create context using the same slot as the key */ // context = pk11_createdigestcontext(sec_oid_md5); context = pk11_createcontextbysymkey(ckm_md5, cka_digest, key, &noparams); if (!context) { cout << "createdigestcontext...
EncDecMAC using token object - sample 3
inlen); } /* * encryptinit */ pk11context * encryptinit(pk11symkey *ek, unsigned char *iv, unsigned int ivlen, ck_mechanism_type type) { return cryptinit(ek, iv, ivlen, type, cka_encrypt); } /* * decryptinit */ pk11context * decryptinit(pk11symkey *dk, unsigned char *iv, unsigned int ivlen, ck_mechanism_type type) { return cryptinit(dk, iv, ivlen, type, cka_decrypt); } /* * read cryptographic para
meters from the header file */ secstatus readfromheaderfile(const char *filename, headertype type, secitem *item, prbool ishexdata) { secstatus rv; prfiledesc* file; secitem filedata; secitem outbuf; unsigned char *nonbody; unsigned char *body; char header[40]; char trailer[40]; outbuf.type = sibuffer; file = pr_open(filename, pr_rdonly, 0); if (!file) { pr_fprintf(pr_stderr, "failed to open %s\n", fil...
nss tech note2
display the sequence of pkcs #11 calls, and the para
meters given to them.
PKCS11 FAQ
does nss support the use of pkcs #11 callbacks specified in the pnotify and papplication para
meters for c_opensession?
PKCS11 Implement
the nss always passes null, as required by the pkcs #11 specification, in the single c_initialize para
meter preserved.
FC_CancelFunction
name fc_cancelfunction - cancel a function running in parallel syntax ck_rv fc_cancelfunction( ck_session_handle hsession ); para
meters hsession [in] session handle.
FC_CloseAllSessions
syntax ck_rv fc_closeallsessions( ck_slot_id slotid ); para
meters slotid [in] the id of the token's slot.
FC_CloseSession
syntax ck_rv fc_closesession( ck_session_handle hsession ); para
meters hsession [in] the session handle to be closed.
FC_CopyObject
syntax ck_rv fc_copyobject( ck_session_handle hsession, ck_object_handle hobject, ck_attribute_ptr ptemplate, ck_ulong uscount, ck_object_handle_ptr phnewobject ); para
meters hsession [in] session handle.
FC_GetMechanismList
syntax ck_rv fc_getmechanismlist( ck_slot_id slotid, ck_mechanism_type_ptr pmechanismlist, ck_ulong_ptr puscount ); para
meters fc_getmechanismlist takes three para
meters: slotid [input] pinfo [output] the address of a variable that will receive a pointer to the list of function pointers.
FC_GetObjectSize
syntax ck_rv fc_getobjectsize( ck_session_handle hsession, ck_object_handle hobject, ck_ulong_ptr pussize ); para
meters hsession [in] session handle.
FC_GetOperationState
syntax ck_rv fc_getoperationstate( ck_session_handle hsession, ck_byte_ptr poperationstate, ck_ulong_ptr puloperationstatelen ); para
meters hsession [in] handle of the open session.
FC_GetSessionInfo
syntax ck_rv fc_getsessioninfo( ck_session_handle hsession, ck_session_info_ptr pinfo ); para
meters hsession [in] the open session handle.
FC_GetSlotInfo
syntax ck_rv fc_getslotinfo( ck_slot_id slotid, ck_slot_info_ptr pinfo ); para
meters fc_getslotinfo takes two para
meters: slotid [in] pinfo [out] the address of a ck_slot_info structure.
FC_GetSlotList
syntax ck_rv fc_getslotlist( ck_bbool tokenpresent, ck_slot_id_ptr pslotlist, ck_ulong_ptr pulcount ); para
meters tokenpresent [in] if true only slots with a token present are included in the list, otherwise all slots are included.
FC_GetTokenInfo
syntax ck_rv fc_gettokeninfo(ck_slot_id slotid, ck_token_info_ptr pinfo); para
meters fc_gettokeninfo has two para
meters: slotid the id of the token's slot pinfo points to a ck_token_info structure description fc_gettokeninfo returns information about the token in the specified slot.
FC_InitPIN
syntax ck_rv fc_initpin( ck_session_handle hsession, ck_char_ptr ppin, ck_ulong ulpinlen ); para
meters fc_initpin() takes three para
meters: hsession[input] session handle.
FC_InitToken
syntax ck_rv fc_inittoken( ck_slot_id slotid, ck_char_ptr ppin, ck_ulong ulpinlen, ck_char_ptr plabel ); para
meters fc_inittoken() has the following para
meters: slotid the id of the token's slot ppin the password of the security officer (so) ulpinlen the length in bytes of the so password plabel points to the label of the token, which must be padded with spaces to 32 bytes and not be null-terminated description fc_inittoken() initializes a brand new token or re-initializes a token that was initialized before.
FC_Login
syntax ck_rv fc_login( ck_session_handle hsession, ck_user_type usertype, ck_char_ptr ppin, ck_ulong ulpinlen ); para
meters fc_login() takes four para
meters: hsession [in] a session handle usertype [in] the user type (cku_so or cku_user) ppin [in] a pointer that points to the user's pin ulpinlen [in] the length of the pin description fc_login() logs a user into a token.
FC_Logout
syntax ck_rv fc_logout( ck_session_handle hsession ); para
meters hsession [in] session handle.
FC_OpenSession
syntax ck_rv fc_opensession( ck_slot_id slotid, ck_flags flags, ck_void_ptr papplication, ck_notify notify, ck_session_handle_ptr phsession ); para
meters fc_opensession has the following para
meters: slotid [in] the id of the token's slot.
FC_SeedRandom
syntax ck_rv fc_seedrandom( ck_session_handle hsession, ck_byte_ptr pseed, ck_ulong usseedlen ); para
meters hsession [in] session handle.
FC_SetAttributeValue
syntax ck_rv fc_setattributevalue( ck_session_handle hsession, ck_object_handle hobject, ck_attribute_ptr ptemplate, ck_ulong uscount ); para
meters hsession [in] session handle.
FC_SetOperationState
syntax ck_rv fc_setoperationstate( ck_session_handle hsession, ck_byte_ptr poperationstate, ck_ulong uloperationstatelen, ck_object_handle hencryptionkey, ck_object_handle hauthenticationkey ); para
meters hsession [in] handle of the open session.
FC_SetPIN
syntax ck_rv fc_setpin( ck_session_handle hsession, ck_char_ptr poldpin, ck_ulong uloldlen, ck_char_ptr pnewpin, ck_ulong ulnewlen ); para
meters fc_setpin takes five para
meters: hsession [input] the session's handle poldpin [input] points to the old pin.
FC_Sign
syntax ck_rv fc_sign( ck_session_handle hsession, ck_byte_ptr pdata, ck_ulong usdatalen, ck_byte_ptr psignature, ck_ulong_ptr pussignaturelen ); para
meters hsession [in] session handle.
FC_SignEncryptUpdate
name fc_signencryptupdate - continue a multi-part signing and encryption operation syntax ck_rv fc_signencryptupdate( ck_session_handle hsession, ck_byte_ptr ppart, ck_ulong ulpartlen, ck_byte_ptr pencryptedpart, ck_ulong_ptr pulencryptedpartlen ); para
meters hsession [in] session handle.
FC_SignFinal
syntax ck_rv fc_signfinal( ck_session_handle hsession, ck_byte_ptr psignature, ck_ulong_ptr pussignaturelen ); para
meters hsession [in] session handle.
FC_SignInit
syntax ck_rv fc_signinit( ck_session_handle hsession, ck_mechanism_ptr pmechanism, ck_object_handle hkey ); para
meters hsession [in] session handle.
FC_SignRecover
syntax ck_rv fc_signrecover( ck_session_handle hsession, ck_byte_ptr pdata, ck_ulong usdatalen, ck_byte_ptr psignature, ck_ulong_ptr pussignaturelen ); para
meters hsession [in] session handle.
FC_SignRecoverInit
syntax ck_rv fc_signrecoverinit( ck_session_handle hsession, ck_mechanism_ptr pmechanism, ck_object_handle hkey ); para
meters hsession [in] session handle.
FC_SignUpdate
syntax ck_rv fc_signupdate( ck_session_handle hsession, ck_byte_ptr ppart, ck_ulong uspartlen ); para
meters hsession [in] session handle.
FC_UnwrapKey
name fc_unwrapkey - unwrap a key syntax ck_rv fc_unwrapkey( ck_session_handle hsession, ck_mechanism_ptr pmechanism, ck_object_handle hunwrappingkey, ck_byte_ptr pwrappedkey, ck_ulong uswrappedkeylen, ck_attribute_ptr ptemplate, ck_ulong usattributecount, ck_object_handle_ptr phkey ); para
meters hsession [in] session handle.
FC_Verify
syntax ck_rv fc_verify( ck_session_handle hsession, ck_byte_ptr pdata, ck_ulong usdatalen, ck_byte_ptr psignature, ck_ulong ussignaturelen ); para
meters hsession [in] session handle.
FC_VerifyFinal
syntax ck_rv fc_verifyfinal( ck_session_handle hsession, ck_byte_ptr psignature, ck_ulong ussignaturelen ); para
meters hsession [in] session handle.
FC_VerifyInit
syntax ck_rv fc_verifyinit( ck_session_handle hsession, ck_mechanism_ptr pmechanism, ck_object_handle hkey ); para
meters hsession [in] session handle.
FC_VerifyRecover
syntax ck_rv fc_verifyrecover( ck_session_handle hsession, ck_byte_ptr psignature, ck_ulong ussignaturelen, ck_byte_ptr pdata, ck_ulong_ptr pusdatalen ); para
meters hsession [in] session handle.
FC_VerifyRecoverInit
syntax ck_rv fc_verifyrecoverinit( ck_session_handle hsession, ck_mechanism_ptr pmechanism, ck_object_handle hkey ); para
meters hsession [in] session handle.
FC_VerifyUpdate
syntax ck_rv fc_verifyupdate( ck_session_handle hsession, ck_byte_ptr ppart, ck_ulong uspartlen ); para
meters hsession [in] session handle.
Thread Sanitizer
once you have adjusted everything, execute this script in the js/src/ subdirectory and pass a directory name as the first para
meter.
Redis Tips
i'll show this in the node console, to illustrate how the optional para
meters are done.
Task graph
this means it's easy to add a new job or tweak the para
meters of a job in a try push, eventually landing that change on an integration branch.
Retrieving part of the bookmarks tree
lt, pass the folder id to setfolders in your query object: query.setfolders([toolbarfolder], 1); run the query the executequery and executequeries functions will return an nsinavhistoryresult object containing the results of your query: var result = historyservice.executequery(query, options); get the results when you are querying for exactly one folder grouped by folder with no fancy query para
meters such as keywords or date ranges (as in this example), the root of the result will be an nsinavhistorycontainerresultnode corresponding to your folder.
Using the Places annotation service
emannotationdouble(aitemid, aname, avalue, aflags, aexpiration); setitemannotationbinary(aitemid, aname, avalue, adatalen, aflags, aexpiration); from javascript there are two simple function to perform all of these operations: setpageannotation(auri, aname, avalue, aflags, aexpiration); setitemannotation(aitemid, aname, avalue, aflags, aexpiration); these annotations all take similar para
meters: uri or itemid: this is the nsiuri of the page to annotate, or for items in the places database, the id of the item.
Places
using the places keywords api how to manage places keywords querying places how to query the bookmarks and history system with specific para
meters.
The Publicity Stream API
count the maximum number of events to return, with preference given to more recent events [make this preference its own para
meter?].
Aggregating the In-Memory Datasource
private: nscomptr<nsisupports> minner; }; construct the datasource delegate when your object is constructed (or, at worst, when somebody qi's for it): rv = nscomponentmanager::createinstance( krdfinmemorydatasourcecid, this, /* the "outer" */ nscomtypeinfo<nsisupports>::getiid(), getter_addrefs(minner)); note passing this as the "outer" para
meter.
Bundling multiple binary components
create small wrappers for calling the methods, as you may need to thunk para
meters depending on how much has changed between gecko versions.
XPCOM hashtable guide
simple types (numbers, booleans, etc) nsdatahashtable structs or classes (nsstring, custom defined structs or classes that are not reference-counted) nsclasshashtable reference-counted concrete classes nsrefptrhashtable interface pointers nsinterfacehashtable each of these classes is a template with two para
meters.
Components.Constructor
syntax var func = [ new ] components.constructor(contractid [, interfacename [, initializer ] ]); para
meters contractid a string containing the contract id of the component interfacename if given, nsisupports.queryinterface() will be called on each newly-created instance with the interface named by this string initializer if given, a string containing the name of a function which will be called on the newly-created instance, using the arguments provided to the created function when called description components.constructor() is a handy shortcut for creating instances of xpcom components.
Components.Exception
syntax var exception = [ new ] components.exception([ message [, result [, stack [, data ] ] ] ]); para
meters message a string which can be displayed in the error console when your exception is thrown or in other developer-facing locations, defaulting to 'exception' result the nsresult value of the exception, which defaults to components.results.ns_error_failure stack an xpcom stack to be set on the exception (defaulting to the current stack chain) data any additional data you might want to...
Components.ID
syntax var interfaceid = [ new ] components.id(iid); para
meters iid a string of the format '{00000000-0000-0000-0000-000000000000}' giving the interface id of the interface description components.id creates interface ids for use in implementing methods like queryinterface, getinterfaces, and other methods that take interface ids as para
meters.
nsIDOMMouseScrollEvent
ypearg, in boolean canbubblearg, in boolean cancelablearg, in nsidomabstractview viewarg, in long detailarg, in long screenxarg, in long screenyarg, in long clientxarg, in long clientyarg, in boolean ctrlkeyarg, in boolean altkeyarg, in boolean shiftkeyarg, in boolean metakeyarg, in unsigned short buttonarg, in nsidomeventtarget relatedtargetarg, in long axis ); para
meters typearg the type of event.
nsIDOMMozTouchEvent
lean canbubblearg, in boolean cancelablearg, in nsidomabstractview viewarg, in long detailarg, in long screenxarg, in long screenyarg, in long clientxarg, in long clientyarg, in boolean ctrlkeyarg, in boolean altkeyarg, in boolean shiftkeyarg, in boolean metakeyarg, in unsigned short buttonarg, in nsidomeventtarget relatedtargetarg, in unsigned long streamidarg ); para
meters streamidarg the value to assign to the streamid attribute; this uniquely identifies the finger generating the touch events.
nsIDOMProgressEvent
void initprogressevent( in domstring typearg, in boolean canbubblearg, in boolean cancelablearg, in boolean lengthcomputablearg, in unsigned long long loadedarg, in unsigned long long totalarg ); para
meters typearg the type of event.
nsIDOMSimpleGestureEvent
boolean cancelablearg, in nsidomabstractview viewarg, in long detailarg, in long screenxarg, in long screenyarg, in long clientxarg, in long clientyarg, in boolean ctrlkeyarg, in boolean altkeyarg, in boolean shiftkeyarg, in boolean metakeyarg, in unsigned short buttonarg, in nsidomeventtarget relatedtargetarg, in unsigned long directionarg, in double deltaarg ); para
meters typearg canbubblearg cancelablearg viewarg detailarg screenxarg screenyarg clientxarg clientyarg ctrlkeyarg altkeyarg shiftkeyarg metakeyarg buttonarg relatedtargetarg directionarg the value to assign to the direction attribute.
nsIDOMStorageEventObsolete
void initstorageevent( in domstring typearg, in boolean canbubblearg, in boolean cancelablearg, in domstring domainarg ); para
meters typearg the type argument.
nsIDOMStorageList
nsidomstorage nameditem( in domstring domain ); para
meters domain the name of the domain for whom to return the storage object.
nsIDOMUserDataHandler
void handle( in unsigned short operation, in domstring key, in nsivariant data, in nsidomnode src, in nsidomnode dst ); para
meters operation one of the node_* operation type constants from the above table.
nsIDOMWindowInternal
method overview firefox 3.5 note the prompt() and find() methods changed in firefox 3.5 to make all their para
meters optional; in previous versions, all para
meters were required.
nsIDOMXPathExpression
nsisupports evaluate( in nsidomnode contextnode, in unsigned short type, in nsisupports result ); para
meters contextnode a dom node to evaluate the xpath expression against.
nsIDataSignatureVerifier
boolean verifydata( in acstring adata, in acstring asignature, in acstring apublickey ); para
meters adata the data to be tested.
nsIDeviceMotionListener
void onmotionchange( in nsidevicemotiondata amotiondata ); para
meters aacceleration the nsidevicemotiondata object describing updated motion information.
nsIDialogCreator
ring afeatures, in nsidialogparamblock aarguments, [optional] in nsidomelement aframeelement); constants constant value description unknown_dialog 0 generic_dialog 1 select_dialog 2 methods opendialog() void opendialog( in unsigned long atype, in acstring aname, in acstring afeatures, in nsidialogparamblock aarguments, in nsidomelement aframeelement optional ); para
meters atype aname afeatures aarguments aframeelement optional ...
nsIDirectoryIterator
last changed in gecko 1.8 (firefox 1.5 / thunderbird 1.5 / seamonkey 1.0) inherits from: nsisupports method overview void init(in nsifilespec parent, in boolean resolvesymlink); boolean exist(); void next(); attributes attribute type description currentspec nsifilespec init() void init( in nsifilespec parent, in boolean resolvesymlink ); para
meters parent resolvesymlink exist() boolean exists(); next() void next(); ...
WebGL2RenderingContext.texSubImage3D() - Web APIs
pixels); void gl.texsubimage3d(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, glintptr offset); para
meters target a glenum specifying the binding point (target) of the active texture.
WebGL2RenderingContext.uniform[1234][uif][v]() - Web APIs
clength); void gl.uniform4iv(location, data, optional srcoffset, optional srclength); void gl.uniform1uiv(location, data, optional srcoffset, optional srclength); void gl.uniform2uiv(location, data, optional srcoffset, optional srclength); void gl.uniform3uiv(location, data, optional srcoffset, optional srclength); void gl.uniform4uiv(location, data, optional srcoffset, optional srclength); para
meters location a webgluniformlocation object containing the location of the uniform attribute to modify.
WebGL2RenderingContext.uniformMatrix[234]x[234]fv() - Web APIs
nal srclength); void gl.uniformmatrix4x3fv(location, transpose, data, optional srcoffset, optional srclength); void gl.uniformmatrix2x4fv(location, transpose, data, optional srcoffset, optional srclength); void gl.uniformmatrix3x4fv(location, transpose, data, optional srcoffset, optional srclength); void gl.uniformmatrix4fv(location, transpose, data, optional srcoffset, optional srclength); para
meters location a webgluniformlocation object containing the location of the uniform attribute to modify.
WebGL2RenderingContext.vertexAttribI4[u]i[v]() - Web APIs
syntax void gl.vertexattribi4i(index, v0, v1, v2, v3); void gl.vertexattribi4ui(index, v0, v1, v2, v3); void gl.vertexattribi4iv(index, value); void gl.vertexattribi4uiv(index, value); para
meters index a gluint specifying the position of the vertex attribute to be modified.
WebGLProgram - Web APIs
var program = gl.createprogram(); // attach pre-existing shaders gl.attachshader(program, vertexshader); gl.attachshader(program, fragmentshader); gl.linkprogram(program); if ( !gl.getprogrampara
meter( program, gl.link_status) ) { var info = gl.getprograminfolog(program); throw 'could not compile webgl program.
WebGLQuery - Web APIs
when working with webglquery objects, the following methods of the webgl2renderingcontext are useful: webgl2renderingcontext.createquery() webgl2renderingcontext.deletequery() webgl2renderingcontext.isquery() webgl2renderingcontext.beginquery() webgl2renderingcontext.endquery() webgl2renderingcontext.getquery() webgl2renderingcontext.getquerypara
meter() examples creating a webglquery object in this example, gl must be a webgl2renderingcontext.
WebGLRenderingContext.bufferSubData() - Web APIs
syntax // webgl1: void gl.buffersubdata(target, offset, arraybuffer srcdata); void gl.buffersubdata(target, offset, arraybufferview srcdata); // webgl2: void gl.buffersubdata(target, dstbyteoffset, arraybufferview srcdata, srcoffset, length); para
meters target a glenum specifying the binding point (target).
WebGLRenderingContext.texImage2D() - Web APIs
height, border, format, type, htmlvideoelement source); void gl.teximage2d(target, level, internalformat, width, height, border, format, type, imagebitmap source); void gl.teximage2d(target, level, internalformat, width, height, border, format, type, imagedata source); void gl.teximage2d(target, level, internalformat, width, height, border, format, type, arraybufferview srcdata, srcoffset); para
meters target a glenum specifying the binding point (target) of the active texture.
WebGLRenderingContext.texSubImage2D() - Web APIs
yoffset, width, height, format, type, htmlvideoelement source); void gl.texsubimage2d(target, level, xoffset, yoffset, width, height, format, type, imagebitmap source); void gl.texsubimage2d(target, level, xoffset, yoffset, width, height, format, type, imagedata source); void gl.texsubimage2d(target, level, xoffset, yoffset, width, height, format, type, arraybufferview srcdata, srcoffset); para
meters target a glenum specifying the binding point (target) of the active texture.
WebGLRenderingContext.uniform[1234][fi][v]() - Web APIs
id gl.uniform2i(location, v0, v1); void gl.uniform2iv(location, value); void gl.uniform3f(location, v0, v1, v2); void gl.uniform3fv(location, value); void gl.uniform3i(location, v0, v1, v2); void gl.uniform3iv(location, value); void gl.uniform4f(location, v0, v1, v2, v3); void gl.uniform4fv(location, value); void gl.uniform4i(location, v0, v1, v2, v3); void gl.uniform4iv(location, value); para
meters location a webgluniformlocation object containing the location of the uniform attribute to modify.
WebGLRenderingContext.uniformMatrix[234]fv() - Web APIs
syntax webglrenderingcontext.uniformmatrix2fv(location, transpose, value); webglrenderingcontext.uniformmatrix3fv(location, transpose, value); webglrenderingcontext.uniformmatrix4fv(location, transpose, value); para
meters location a webgluniformlocation object containing the location of the uniform attribute to modify.
WebGLRenderingContext.vertexAttrib[1234]f[v]() - Web APIs
syntax void gl.vertexattrib1f(index, v0); void gl.vertexattrib2f(index, v0, v1); void gl.vertexattrib3f(index, v0, v1, v2); void gl.vertexattrib4f(index, v0, v1, v2, v3); void gl.vertexattrib1fv(index, value); void gl.vertexattrib2fv(index, value); void gl.vertexattrib3fv(index, value); void gl.vertexattrib4fv(index, value); para
meters index a gluint specifying the position of the vertex attribute to be modified.
WebGLShader - Web APIs
function createshader (gl, sourcecode, type) { // compiles either a shader of type gl.vertex_shader or gl.fragment_shader var shader = gl.createshader( type ); gl.shadersource( shader, sourcecode ); gl.compileshader( shader ); if ( !gl.getshaderpara
meter(shader, gl.compile_status) ) { var info = gl.getshaderinfolog( shader ); throw 'could not compile webgl program.
WebGLSync - Web APIs
when working with webglsync objects, the following methods of the webgl2renderingcontext are useful: webgl2renderingcontext.fencesync() webgl2renderingcontext.deletesync() webgl2renderingcontext.issync() webgl2renderingcontext.clientwaitsync() webgl2renderingcontext.waitsync() webgl2renderingcontext.getsyncpara
meter() examples creating a webglsync object in this example, gl must be a webgl2renderingcontext.
Hello GLSL - Web APIs
gl.shadersource(fragmentshader,source); gl.compileshader(fragmentshader); program = gl.createprogram(); gl.attachshader(program, vertexshader); gl.attachshader(program, fragmentshader); gl.linkprogram(program); gl.detachshader(program, vertexshader); gl.detachshader(program, fragmentshader); gl.deleteshader(vertexshader); gl.deleteshader(fragmentshader); if (!gl.getprogrampara
meter(program, gl.link_status)) { var linkerrlog = gl.getprograminfolog(program); cleanup(); document.queryselector("p").innerhtml = "shader program did not link successfully.
Hello vertex attributes - Web APIs
gl.shadersource(fragmentshader,source); gl.compileshader(fragmentshader); program = gl.createprogram(); gl.attachshader(program, vertexshader); gl.attachshader(program, fragmentshader); gl.linkprogram(program); gl.detachshader(program, vertexshader); gl.detachshader(program, fragmentshader); gl.deleteshader(vertexshader); gl.deleteshader(fragmentshader); if (!gl.getprogrampara
meter(program, gl.link_status)) { var linkerrlog = gl.getprograminfolog(program); cleanup(); document.queryselector("p").innerhtml = "shader program did not link successfully.
Textures from code - Web APIs
gl.shadersource(fragmentshader,source); gl.compileshader(fragmentshader); program = gl.createprogram(); gl.attachshader(program, vertexshader); gl.attachshader(program, fragmentshader); gl.linkprogram(program); gl.detachshader(program, vertexshader); gl.detachshader(program, fragmentshader); gl.deleteshader(vertexshader); gl.deleteshader(fragmentshader); if (!gl.getprogrampara
meter(program, gl.link_status)) { var linkerrlog = gl.getprograminfolog(program); cleanup(); document.queryselector("p").innerhtml = "shader program did not link successfully.
Compressed texture formats - Web APIs
if supported, it will return an extension object with constants for the added formats and the formats will also be returned by calls to gl.getpara
meter(gl.compressed_texture_formats).
Animating textures in WebGL - Web APIs
gl.texpara
meteri(gl.texture_2d, gl.texture_wrap_s, gl.clamp_to_edge); gl.texpara
meteri(gl.texture_2d, gl.texture_wrap_t, gl.clamp_to_edge); gl.texpara
meteri(gl.texture_2d, gl.texture_min_filter, gl.linear); return texture; } here's what the updatetexture() function looks like; this is where the real work is done: function updatetexture(gl, texture, video) { const level = 0; const internalformat = g...
Introduction to WebRTC protocols - Web APIs
for example, lines providing media descriptions have the type "m", so those lines are referred to as "m-lines." for more information to learn more about sdp, see the following useful resources: specification: rfc 4566: sdp: session description protocol iana registry of sdp para
meters ...
A simple RTCDataChannel sample - Web APIs
our example's remote peer, on the other hand, ignores the status change events, except for logging the event to the console: function handlereceivechannelstatuschange(event) { if (receivechannel) { console.log("receive channel's status has changed to " + receivechannel.readystate); } } the handlereceivechannelstatuschange() method receives as an input para
meter the event which occurred; this will be an rtcdatachannelevent.
Taking still photos with WebRTC - Web APIs
note: this takes advantage of the fact that the htmlvideoelement interface looks like an htmlimageelement to any api that accepts an htmlimageelement as a para
meter, with the video's current frame presented as the image's contents.
WebSocket() - Web APIs
syntax var awebsocket = new websocket(url [, protocols]); para
meters url the url to which to connect; this should be the url to which the websocket server will respond.
WebSocket.protocol - Web APIs
the websocket.protocol read-only property returns the name of the sub-protocol the server selected; this will be one of the strings specified in the protocols para
meter when creating the websocket object, or the empty string if no connection is established.
Writing WebSocket client applications - Web APIs
the websocket constructor accepts one required and one optional para
meter: websocket = new websocket(url, protocols); url the url to which to connect; this should be the url to which the websocket server will respond.
Inputs and input sources - Web APIs
motion-sensing controllers, which use accelero
meters, magneto
meters, and other sensors for motion tracking and targeting and may additionally include any number of buttons, joysticks, thumbpads, touchpads, force sensors, and so on to provide additional input sources for both targeting and selection.
Movement, orientation, and motion: A WebXR example - Web APIs
the time elapsed since the last frame was rendered (in seconds) is computed by subtracting the previous frame's timestamp, lastframetime, from the current time as specified by the time para
meter and then multiplying by 0.001 to convert milliseconds to seconds.
WebXR Device API - Web APIs
the equipment may also include an accelero
meter, baro
meter, or other sensors which are used to sense when the user moves through space, rotates their head, or the like.
Basic concepts behind Web Audio API - Web APIs
audio buffers: frames, samples and channels an audiobuffer takes as its para
meters a number of channels (1 for mono, 2 for stereo, etc), a length, meaning the number of sample frames inside the buffer, and a sample rate, which is the number of sample frames played per second.
Method definitions - JavaScript
syntax const obj = { get property() {}, set property(value) {}, property( para
meters… ) {}, *generator( para
meters… ) {}, async property( para
meters… ) {}, async* generator( para
meters… ) {}, // with computed keys get [property]() {}, set [property](value) {}, [property]( para
meters… ) {}, *[generator]( para
meters… ) {}, async [property]( para
meters… ) {}, async* [generator]( para
meters… ) {}, }; description the shorthand syntax is simila...
Array.prototype.reduce() - JavaScript
syntax arr.reduce(callback( accumulator, currentvalue, [, index[, array]] )[, initialvalue]) para
meters callback a function to execute on each element in the array (except for the first, if no initialvalue is supplied).
Array.prototype.reduceRight() - JavaScript
syntax arr.reduceright(callback(accumulator, currentvalue[, index[, array]])[, initialvalue]) para
meters callback function to execute on each value in the array, taking four arguments: accumulator the value previously returned in the last invocation of the callback, or initialvalue, if supplied.
Array.prototype.flat() - JavaScript
syntax var newarray = arr.flat([depth]); para
meters depth optional the depth level specifying how deep a nested array structure should be flattened.
Array.prototype.flatMap() - JavaScript
syntax var new_array = arr.flatmap(function callback(currentvalue[, index[, array]]) { // return element for new_array }[, thisarg]) para
meters callback function that produces an element of the new array, taking three arguments: currentvalue the current element being processed in the array.
Array.isArray() - JavaScript
array.isarray([1, 2, 3]); // true array.isarray({foo: 123}); // false array.isarray('foobar'); // false array.isarray(undefined); // false syntax array.isarray(value) para
meters value the value to be checked.
Array.of() - JavaScript
array.of(7); // [7] array.of(1, 2, 3); // [1, 2, 3] array(7); // array of 7 empty slots array(1, 2, 3); // [1, 2, 3] syntax array.of(element0[, element1[, ...[, elementn]]]) para
meters elementn elements used to create the array.
Array.prototype.pop() - JavaScript
var myfish = ['angel', 'clown', 'mandarin', 'sturgeon']; var popped = myfish.pop(); console.log(myfish); // ['angel', 'clown', 'mandarin' ] console.log(popped); // 'sturgeon' using apply( ) or call ( ) on array-like objects the following code creates the myfish array-like object containing four elements and a length para
meter, then removes its last element and decrements the length para
meter.