Search completed in 1.13 seconds.
nsIXPConnect
otxpcom] void getCaller(out JSContextPtr aJSContext, out JSObjectPtr aObject); JSVal getCOWForObject(in JSContextPtr aJSContext, in JSObjectPtr aParent, in JSObjectPtr aWrappedObj); Native code only! ...
... Obsolete since Gecko 2.0 JSVal getXOWForObject(in ...
...e since Gecko 2.0 void GetXPCWrappedNativeJSClassInfo(out JSEqualityOp equality); nsIXPConnectJSObjectHolder holdObject(in JSContextPtr aJSContext, in JSObjectPtr aObject); void initClasses(in JSContextPtr aJSContext, in JSObjectPtr aGlobalJSObj); nsIXPConnectJSObjectHolder initClassesWithNewWrappedGlobal(in JSContextPtr aJSContext, in nsISupports aCOMObj, in
nsIIDRef aIID, in nsIPrincipal aPrincipal, in nsISupports aExtraPtr, in PRUint32 aFlags); nsIVariant JSToVariant(in JSContextPtr ctx, in jsval value); nsIVariant jSValToVariant(in JSContextPtr cx, in JSValPtr aJSVal); void moveWrappers(in JSContextPtr aJSContext, in JSObjectPtr aOldScope, in JSObjectPtr aNewScope); [noscript,notxpcom] void noteJSContext(in JSContextP...
...And 11 more matches
nsIComponentManager
provides methods to access factory objects and instantiate instances of classes. ...
...Last changed in Gecko 8.0 (Firefox 8.0 / Thunderbird 8.0 / SeaMonkey 2.5) Method overview void addBootstrappedManifestLocation(in nsILocalFile aLocation); void createInstance(in nsCIDRef aClass, in nsISupports aDelegate, in
nsIIDRef aIID, [iid_is(aIID),retval] out nsQIResult result); void createInstanceByContractID(in string aContractID, in nsISupports aDelegate, in
nsIIDRef aIID, [iid_is(aIID),retval] out nsQIResult result); void getClassObject(in nsCIDRef aClass, in
nsIIDRef aIID, [iid_is(aIID),retval] out nsQIResult result); void getClassObjectByContractID(in string aContractID, in
nsIIDRef aIID, [iid_is(aIID),retval] out nsQIResult result); void removeBootstrappedManifestLocation(in nsILocalFile aLocation); Methods addBootstrap...
...Location( in interface nsILocalFile aLocation ); Parameters aLocation The directory or XPI from which to load the chrome.manifest. createInstance() Creates an instance of the class specified by ClassID. Unlike getService, this returns a new instance each time it is called. (See also nsIFactory.createInstance.) void createInstance( in nsCIDRef aClass, in nsISupports aDelegate, in
nsIIDRef aIID, [iid_is(aIID),retval] out nsQIResult result ); Parameters aClass The ClassID of the object instance that is being requested. aDelegate The outer object used for aggregation. aIID The interface type to be returned. result The resulting interface pointer. Exceptions thrown NS_ERROR_FACTORY_NOT_REGISTERED Indicates that the specified class is not registered. createInstanc...
...And 3 more matches
nsIServiceManager
xpcom/components/nsIServiceManager.idlScriptable This interface provides a means to obtain global services in an application. The service manager depends on the repository to find and instantiate factories to obtain services. ...
... means to obtain global services in an application. The service manager depends on the repository to find and instantiate factories to obtain services. Inherits from: nsISupports Last changed in Gecko 1.0 Method overview void getService(in nsCIDRef aClass, in
nsIIDRef aIID, [iid_is(aIID),retval] out nsQIResult result); void getServiceByContractID(in string aContractID, in
nsIIDRef aIID, [iid_is(aIID),retval] out nsQIResult result); boolean isServiceInstantiated(in nsCIDRef aClass, in
nsIIDRef aIID); boolean isServiceInstantiatedByContractID(in string aContractID, in
nsIIDRef aIID); Methods getService() This method returns a reference to a particular XPCOM service given the ClassID of the service. Unlike createInstance, this will always return the...
... aIID The interface type to be returned. result The resulting interface pointer. Exceptions thrown NS_ERROR_FACTORY_NOT_REGISTERED Indicates that the specified class is not registered. ...
...And 3 more matches
Component; nsIPrefBranch
getCharPref(in string aPrefName,Requires Gecko 54 [optional] in string aDefaultValue); Requires Gecko 58 utf8tring getStringPref(in string aPrefName, [optional] in utf8string aDefaultValue); void getChildList(in string aStartingAt, [optional] out unsigned long aCount, [array, size_is(aCount), retval] out string aChildArray); void getComplexValue(in string aPrefName, in
nsIIDRef aType, [iid_is(aType), retval] out nsQIResult aValue); long getIntPref(in string aPrefName,Requires Gecko 54 [optional] in long aDefaultValue); long getPrefType(in string aPrefName); void lockPref(in string aPrefName); boolean prefHasUserValue(in string aPrefName); boolean prefIsLocked(in string aPrefName); void removeObserver(in string aDomai...
... Constants Constant Value Description PREF_INVA...
...ecko 2.0 Receives the number of elements in the array. aChildArray Receives the array of child preferences. getComplexValue() Called to get the state of an individual complex preference. A complex preference is a preference which represents an XPCOM object that can not be easily represented using a standard boolean, integer or string value. void getComplexValue( in string aPrefName, in
nsIIDRef aType, [iid_is(aType), retval] out nsQIResult aValue ); Parameters aPrefName The complex preference to get the value of. aType The XPCOM interface that this complex preference represents. Interfaces currently supported are: NsILocalFile NsISupportsString (UniChar) (removed as of Gecko 58 in favor of getStringPref) NsIPrefLocalizedString (Localized UniChar) NsIFileSpec (depreca...
...rameters aPrefName The string preference to set. aValue The UTF-8 string value to set the preference to. setComplexValue() Called to set the state of an individual complex preference. A complex preference is a preference which represents an XPCOM object that can not be easily represented using a standard boolean, integer or string value. void setComplexValue( in string aPrefName, in
nsIIDRef aType, in nsISupports aValue ); Parameters aPrefName The complex preference to set the value of. aType The XPCOM interface that this complex preference represents. Interfaces currently supported are: NsILocalFile NsISupportsString (UniChar) (removed as of Gecko 58 in favor of setStringPref) NsIPrefLocalizedString (Localized UniChar) NsIFileSpec (deprecated - to be removed even...
nsIWebBrowser
isteners. The interface may also be used at runtime to obtain the content DOM window and from that the rest of the DOM. Inherits from: nsISupports Last changed in Gecko 2.0 (Firefox 4 / Thunderbird 3.3 / SeaMonkey 2.1) Warning: This interface was frozen for a very long time, but was unfrozen for Gecko 2.0. Method overview void addWebBrowserListener(in nsIWeakReference aListener, in
nsIIDRef aIID); void removeWebBrowserListener(in nsIWeakReference aListener, in
nsIIDRef aIID); Attributes Attribute Type Description containerWindow nsIWebBrowserChrome The chrome object associated with the browser instance. The embedder must create one chrome object for each browser object that is instantiated. The embedder must associate the two by sett...
...listener of the type specified by the iid to receive callbacks. The browser stores a weak reference to the listener to avoid any circular dependencies. Typically this method will be called to register an object to receive nsIWebProgressListener or nsISHistoryListener notifications in which case the the IID is that of the interface. void addWebBrowserListener( in nsIWeakReference aListener, in
nsIIDRef aIID ); Parameters aListener The listener to be added. aIID The IID of the interface that will be called on the listener as appropriate. Return value NS_OK Listener was successfully added. NS_ERROR_INVALID_ARG One of the arguments was invalid or the object did not implement the interface specified by the IID. removeWebBrowserListener() Removes a previously reg...
...of the interface that will be called on the listener as appropriate. Return value NS_OK Listener was successfully added. NS_ERROR_INVALID_ARG One of the arguments was invalid or the object did not implement the interface specified by the IID. removeWebBrowserListener() Removes a previously registered listener. void removeWebBrowserListener( in nsIWeakReference aListener, in
nsIIDRef aIID ); Parameters aListener The listener to be removed. aIID The IID of the interface on the listener that will no longer be called. Return value NS_OK Listener was successfully added. NS_ERROR_INVALID_ARG One of the arguments was invalid or the object did not implement the interface specified by the IID. See also nsIBaseWindow nsIContextMenuListener nsID...
nsIArray
. If the interface in question had intended the array to be modified, it would have returned an nsIMutableArray! null is a valid entry in the array, and as such any nsISupports parameters may be null, except where noted. Method overview nsISimpleEnumerator enumerate(); unsigned long indexOf(in unsigned long startIndex, in nsISupports element); void queryElementAt(in unsigned long index, in
nsIIDRef uuid, [iid_is(uuid), retval] out nsQIResult result); Attributes Attribute Type Description length unsigned long The number of elements in the array. Read only. Methods enumerate() Enumerate the array. nsISimpleEnumerator enumerate(); Parameters None. Return value A new enumerator positioned at the start of the array. Exceptions thrown NS_ERROR_FAILURE If the array is empty (to make i...
... A number >= startIndex which is the position of the element in the array. Exceptions thrown NS_ERROR_FAILURE If the element was not in the array. queryElementAt() Retrieve a specific element of the array, and QueryInterface it to the specified interface. null is a valid result for this method, but exceptions are thrown in other circumstances. void queryElementAt( in unsigned long index, in
nsIIDRef uuid, [iid_is(uuid), retval] out nsQIResult result ); Parameters index Position of element. uuid The IID of the requested interface. result The object, QueryInterface'd to the requested interface. Exceptions thrown NS_ERROR_ILLEGAL_VALUE When index > length-1. See also nsIMutableArray ...
nsICollection
perations on those items like: getting, setting, appending, removing, and so on. Inherits from: nsISerializable Last changed in Gecko 1.7 Method overview void AppendElement(in nsISupports item); void Clear(); PRUint32 Count(); nsIEnumerator Enumerate(); nsISupports GetElementAt(in PRUint32 index); void QueryElementAt(in PRUint32 index, in
nsIIDRef uuid, [iid_is(uuid),retval] out nsQIResult result); void RemoveElement(in nsISupports item); void SetElementAt(in PRUint32 index, in nsISupports item); Methods AppendElement() Appends a new item to the collection. void AppendElement( in nsISupports item ) Parameters item nsISupports item to be appended to the list. Clear() Removes all items from the collection...
...tElementAt() Returns the element at the specified index into the collection. nsISupports GetElementAt( in PRUint32 index ); Parameters index The index position of the item to be returned. Return value nsISupports item at the index position. QueryElementAt() Performs a QueryInterface on the item at the specified index into the collection. void QueryElementAt( in PRUint32 index, in
nsIIDRef uuid, [iid_is(uuid),retval] out nsQIResult result ); Parameters index Position of the item to be queried. uuid
nsIIDRef of the item. result Comparison result of the previous two parameters. RemoveElement() Removes an item from the collection. void RemoveElement( in nsISupports item ); Parameters item nsISupports item to be removed from the list. SetElemen...
nsIDispatchSupport
void COMVariant2JSVal( in COMVARIANTPtr comvar, out jsval val ); Parameters comvar The COM Variant to be converted. val The jsval to receive the converted value. getHostingFlags() Return the ActiveX security and hosting flags. See nsIActiveXSecurityPolicy for ...
...ssSafeToHost( in JSContextPtr cx, in nsCIDRef cid, in boolean capsCheck, out boolean classExists ); Parameters cx cid capsCheck classExists Returns containing PR_FALSE if the class is not registered. Return value isObjectSafeForScripting() Test if the instantiated object is safe for scripting on the specified interface. boolean isObjectSafeForScripting( in voidPtr theObject, in
nsIIDRef id ); Parameters theObject The object to test (an IUnknown cast into a void *). id Return value JSVal2COMVariant() Converts a jsval to a COM Variant. void JSVal2COMVariant( in jsval var, out COMVARIANT comvar ); Parameters var The jsval to be converted. comvar The COM Variant to receive the converted value. ...
nsIFactory
xpcom/components/nsIFactory.idlScriptable This interface is a class factory that allows for the creation of nsISupports derived classes without specifying a concrete class type. ...
...This can be nsnull if no aggregation is requested. iid The IID of the interface being requested in the component which is being currently created. result Pointer to the newly created instance, if successful. ...
nsIModule
pcom/components/nsIModule.idlScriptable This interface must be implemented by each XPCOM component. It is the main entry point by which the system accesses an XPCOM component. ...
...alled to determine whether or not the DLL may be unloaded from memory. Note: As of Gecko 1.7, native component modules are never unloaded. getClassObject() Obtains a Class Object from a nsIModule for a given CID and IID pair. This class object can either be query to a nsIFactory or a may be query to a nsIClassInfo. void getClassObject( in nsIComponentManager aCompMgr, in nsCIDRef aClass, in
nsIIDRef aIID, [retval, iid_is(aIID)] out nsQIResult aResult ); Parameters aCompMgr The global component manager. aClass The ClassID of object instance requested. aIID The IID of interface requested. aResult The resulting interface pointer. Exceptions thrown NS_ERROR_FACTORY_NOT_REGISTERED Indicates that the requested class is not available. NS_ERROR_NO_IN...
nsIProperties
erface provides methods to access a map of named XPCOM object values. Inherits from: nsISupports Last changed in Gecko 1.2 Implemented by: @mozilla.org/file/directory_service;1. ...
...iid The desired interface. result The resulting object instance. Exceptions thrown NS_ERROR_FAILURE If the property does not exist. NS_ERROR_NO_INTERFACE If the property exists, but does not support the requested interface. getKeys() Returns an array of property names. ...
nsIPropertyBag2
nsIVariant get( in AString prop ); Parameters prop Property to return the value of. ...
...e. getPropertyAsInt64() PRInt64 getPropertyAsInt64( in AString prop ); Parameters prop Property to return the value of. Return value The property value as a PRInt64. Note: Accessing a property of a different type may attempt conversion to this type. getPropertyAsInterface() This method returns null if the value exists, but is null. void getPropertyAsInterface( in AString prop, in
nsIIDRef iid, [iid_is(iid), retval] out nsQIResult result ); Parameters prop Property to return the value of. iid The interface type to be returned. result The resulting interface pointer. getPropertyAsUint32() PRUint32 getPropertyAsUint32( in AString prop ); Parameters prop Property to return the value of. Return value The property value as a PRUint32. Note: Acce...
nsISupports
xpcom/base/nsISupports.idlScriptable All XPCOM interfaces inherit this interface. Last changed in Gecko 1.0 Method overview nsrefcnt AddRef();Violates the XPCOM interface guidelines void QueryInterface(in
nsIIDRef uuid, [iid_is(uuid),retval] out nsQIResult result); nsrefcnt Release();Violates the XPCOM interface guidelines Methods Violates the XPCOM interface guidelines AddRef() Notifies the object that an interface pointer has been duplicated. nsrefcnt AddRef(); Parameters None. Return value An integer value that is generally ignored. QueryInterface() The QueryInterface method provides runtime type discovery. Note: The interface pointer, aResult, returned by QueryInterface must be released by a call to Release() w...
...srefcnt AddRef(); Parameters None. Return value An integer value that is generally ignored. QueryInterface() The QueryInterface method provides runtime type discovery. Note: The interface pointer, aResult, returned by QueryInterface must be released by a call to Release() when it is no longer needed. QueryInterface is a symmetric, transitive, and reflexive operator. void QueryInterface( in
nsIIDRef uuid, [iid_is(uuid),retval] out nsQIResult result ); Parameters uuid The uuid of the requested interface result The resulting interface pointer. Exceptions thrown NS_ERROR_NO_INTERFACE The requested interface is not available. Violates the XPCOM interface guidelines Release() Notifies the object that an interface pointer has been destroyed an...
nsIWeakReference
ents a proxy for an XPCOM object. It allows a consumer to hold an indirect, non-owning reference to an XPCOM object. Inherits from: nsISupports Last changed in Gecko 0.9.9 An instance of nsIWeakReference is a proxy object that cooperates with its referent to give clients a non-owning, non-dangling reference. Clients own the nsIWeakReference instance. Method overview void QueryReferent( in
nsIIDRef uuid, [iid_is(uuid), retval] out nsQIResult result ); Methods QueryReferent() This method queries an interface on the referent if it exists, and like nsISupports.QueryInterface(), produces an owning reference to the desired interface.")}} It is designed to look and act exactly like (a proxied) nsISupports.QueryInterface(). Do not hold on to the produced interface permanently; that would defeat...
...ries an interface on the referent if it exists, and like nsISupports.QueryInterface(), produces an owning reference to the desired interface.")}} It is designed to look and act exactly like (a proxied) nsISupports.QueryInterface(). Do not hold on to the produced interface permanently; that would defeat the purpose of using a non-owning nsIWeakReference in the first place. void QueryReferent( in
nsIIDRef uuid, [iid_is(uuid), retval] out nsQIResult result ); Parameters uuid The UUID of the requested interface. result The resulting interface pointer. Exceptions thrown NS_ERROR_NULL_POINTER The referent no longer exists. NS_ERROR_NO_INTERFACE The requested interface is not available. Remarks This interface was frozen for Gecko 0.9.9. See bug 48726 for details. From Gecko 2.0 interfaces are no...
nsIXmlRpcClient
mary to this article. ...
...dName, [array, size_is(count)] in nsISupports arguments, in PRUint32 count ); createType() Convenience: return the correct nsISupportsPrimitive for a given XML-RPC type, or nsISupportsArray or nsIDictionary. 'base64' isn't supported. No QueryInterface call is needed, the object has been QueryInterfaced to the correct interface. void createType ( in unsigned long type, out
nsIIDRef uuid, [iid_is(uuid),retval] out nsQIResult result ) ; Parameters type One of the listed constants. uuid The uuid of the returned object. No QI call needed. result The appropriate XPCOM object. ...
Preferences - Archive of obsolete content
ortsString objects in preferences (as strings -- note that from the preferences system's point of view, complex values have a nsIPrefBranch.PREF_STRING type.) There are two nsIPrefBranch methods implementing the concept -- setComplexValue() and getComplexValue(). You can look up their implementations in nsPrefBranch.cpp. 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 parameter, 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). nsISupportsString ...
A bird's-eye view of the Mozilla framework
ral or an nsIRDFResource. The link is a literal, so the client wants nsIRDFLiteral. Since all XPCOM interfaces inherit the base interface nsISupports, the client can ask whether nsIRDFNode supports nsIRDFLiteral by calling nsIRDFNode.QueryInterface(), a method in the nsISupports interface. [scriptable, uuid(00000000-0000-0000-c000-000000000046)] interface nsISupports { void QueryInterface(in
nsIIDRef uuid, iid_is(uuid),retval] out nsQIResult result); [noscript, notxpcom] nsrefcnt AddRef(); [noscript, notxpcom] nsrefcnt Release(); }; The uuid parameter to QueryInterface() is the IID uniqely identifying the interface. If nsIRDFNode doesn't support nsIRDFLiteral, it returns null and it's up to the client to choose an alternate course of action. The XPCOM component keeps track...
Starting WebLock
ects. [scriptable, uuid(78650582-4e93-4b60-8e85-26ebd3eb14ca)] interface nsIProperties : nsISupports { /** * Gets a property with a given name. * * @return NS_ERROR_FAILURE if a property with that * name doesn't exist. * @return NS_ERROR_NO_INTERFACE if the * found property fails to QI to the * given iid. */ void get(in string prop, in
nsIIDRef iid, [iid_is(iid),retval] out nsQIResult result); /** * Sets a property with a given name to a given value. */ void set(in string prop, in nsISupports value); /** * Returns true if the property with the given name exists. */ boolean has(in string prop); /** * Undefines a property. * @return NS_ERROR_FAILURE if a property with that ...
nsIAuthPromptProvider
netwerk/base/public/nsIAuthPromptProvider.idlScriptable This interface requests a prompt interface for the given prompt reason. Inherits from: nsISupports Last changed in Gecko 1.9 (Firefox 3) Method overview void getAuthPrompt(in PRUint32 aPromptReason, in
nsIIDRef iid, [iid_is(iid),retval] out nsQIResult result); Constants Constant Value Description PROMPT_NORMAL 0 Normal (non-proxy) prompt request. PROMPT_PROXY 1 Proxy authentication request. Methods getAuthPrompt() This method requests a prompt interface for the given prompt reason. void getAuthPrompt( in PRUint32 aPromptReason, in
nsIIDRef iid, [iid_is(iid),retval] out nsQIResult result ); Parameters aPromptReason The reason for the authentication prompt, one of the PROMPT_* constants. iid The desired in...
nsIInterfaceRequestor
he semantics of nsISupports.QueryInterface() dictate that given an interface A that you nsISupports.QueryInterface() on to get to interface B, you must be able to nsISupports.QueryInterface() on B to get back to A. nsIInterfaceRequestor, however, allows you to obtain an interface C from A that may (or most likely) will not have the ability to get back to A. Method overview void getInterface(in
nsIIDRef uuid, [iid_is(uuid),retval] out nsQIResult result); Methods getInterface() Retrieves the specified interface pointer. void getInterface( in
nsIIDRef uuid, [iid_is(uuid),retval] out nsQIResult result ); Parameters uuid The IID of the interface being requested. result The interface pointer to be filled in if the interface is accessible. Exceptions thrown NS_ERROR_NO_INTERFACE The request...
nsIJSID
ISupports Last changed in Gecko 1.9 (Firefox 3) The following methods return objects that implement this interface: Components.interfaces.name Components.classes[contract] Components.interfacesById[uuid] Components.classesById[cid] The first two cases create a named JSID while the last two cases create an unnamed JSID. An unnamed JSID also results when you implement a function that is passed an
nsIIDRef parameter, such as QueryInterface(). Note that for these cases of JSID the specified class or interface must exist and be scriptable. Method overview boolean equals(in nsIJSID other); const nsID* getID(); Violates the XPCOM interface guidelines void initialize(in string idString); string toString(); Attributes Attribute Type Description id nsIDPtr Read only. Native code only! Ob...
XPIDL
bits) number nsrefcnt (XPIDL unsigned long typedef, 32 bits) number size_t (XPIDL unsigned long typedef, 32 bits) number voidPtr void* void* not allowed charPtr char* char** not allowed unicharPtr char16_t* char16_t** not allowed nsIDRef const nsID& nsID* ?
nsIIDRef const nsIID& nsIID* ? nsCIDRef const nsCID& nsCID* ? nsIDPtr const nsID* nsID** ? nsIIDPtr const nsIID* nsIID** ? nsCIDPtr const nsCID* nsCID** ? nsIID const nsIID nsIID* ? nsID const nsID nsID* ? nsCID const nsCID nsCID* ? ...