Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions
nsIJSNativeInitializer Class Reference

A JavaScript specific interface used to initialize new native objects, created as a result of calling a JavaScript constructor. More...

#include <nsIJSNativeInitializer.h>

Inheritance diagram for nsIJSNativeInitializer:
Inheritance graph
[legend]
Collaboration diagram for nsIJSNativeInitializer:
Collaboration graph
[legend]

List of all members.

Public Member Functions

NS_IMETHOD Initialize (JSContext *cx, JSObject *obj, PRUint32 argc, jsval *argv)=0
 Intialize a newly created native instance using the parameters passed into the JavaScript constructor.

Detailed Description

A JavaScript specific interface used to initialize new native objects, created as a result of calling a JavaScript constructor.

The arguments are passed in their raw form as jsval's.

Definition at line 55 of file nsIJSNativeInitializer.h.


Member Function Documentation

NS_IMETHOD nsIJSNativeInitializer::Initialize ( JSContext cx,
JSObject obj,
PRUint32  argc,
jsval argv 
) [pure virtual]

Intialize a newly created native instance using the parameters passed into the JavaScript constructor.

Implemented in nsHTMLImageElement, nsHTMLOptionElement, and nsSOAPBlock.


The documentation for this class was generated from the following file: