Returns

From nsISupportsWeakReference

 |GetWeakReference| produces an appropriate instance of |nsIWeakReference|.
 As with all good XPCOM `getters', you own the resulting interface and should
 manage it with an |nsCOMPtr|.

 @see nsIWeakReference
 @see nsWeakPtr
 @see nsCOMPtr
nsIWeakReference GetWeakReference()

From nsIXPConnectWrappedJS_MOZILLA_1_8_BRANCH


          
nsIWeakReference GetWeakReference()

Parameters

From nsIAccessibilityService


          
nsIAccessible createHTMLAreaAccessible(in nsIWeakReference aPresShell, in nsIDOMNode aDOMNode, in nsIAccessible aAccParent)

          
nsIAccessible createHTMLAccessibleByMarkup(in nsISupports aFrame, in nsIWeakReference aWeakShell, in nsIDOMNode aDOMNode, in AString aRole)

          
[noscript] nsIAccessible getAccessible(in nsIDOMNode aNode, in nsIPresShell aPresShell, in nsIWeakReference aWeakShell, inout nsIFrame frameHint, out boolean aIsHidden)

From nsIAccessibleRetrieval

 Return an nsIAccessible for a DOM node in the given weak shell.
 Create a new accessible of the appropriate type if necessary,
 or use one from the accessibility cache if it already exists.
 @param aNode      The DOM node to get an accessible for.
 @param aPresShell The presentation shell which contains layout info for the DOM node.
 @return The nsIAccessible for the given DOM node.
nsIAccessible getAccessibleInWeakShell(in nsIDOMNode aNode, in nsIWeakReference aPresShell)
 Return an nsIAccessNode for an already created DOM node in the given weak shell.
 Does not create a new one -- only returns cached access nodes.
 @param aNode      The DOM node to get an access node for.
 @param aPresShell The presentation shell which contains layout info for the DOM node.
 @return The nsIAccessNode for the given DOM node or null if
         an access node does not already exist for this DOM node.
nsIAccessNode getCachedAccessNode(in nsIDOMNode aNode, in nsIWeakReference aShell)
 Return an nsIAccessible for an already created DOM node in the given weak shell.
 Does not create a new one -- only returns cached accessibles.
 @param aNode      The DOM node to get an accessible for.
 @param aPresShell The presentation shell which contains layout info for the DOM node.
 @return The nsIAccessible for the given DOM node or null if
         an accessible does not already exist for this DOM node.
nsIAccessible getCachedAccessible(in nsIDOMNode aNode, in nsIWeakReference aShell)

From nsIWebBrowser

 Registers a 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 <CODE>nsIWebProgressListener</CODE> or 
 <CODE>nsISHistoryListener</CODE> notifications in which case the
 the IID is that of the interface.

 @param aListener The listener to be added.
 @param aIID      The IID of the interface that will be called
                  on the listener as appropriate.
 @return          <CODE>NS_OK</CODE> for successful registration;
                  <CODE>NS_ERROR_INVALID_ARG</CODE> if aIID is not
                  supposed to be registered using this method;
                  <CODE>NS_ERROR_FAILURE</CODE> either aListener did not
                  expose the interface specified by the IID, or some
                  other internal error occurred.

 @see removeWebBrowserListener
 @see nsIWeakReference
 @see nsIWebProgressListener
 @see nsISHistoryListener

 @return <CODE>NS_OK</CODE>, listener was successfully added;
         <CODE>NS_ERROR_INVALID_ARG</CODE>, one of the arguments was
         invalid or the object did not implement the interface
         specified by the IID.
void addWebBrowserListener(in nsIWeakReference aListener, in nsIIDRef aIID)
 Removes a previously registered listener.

 @param aListener The listener to be removed.
 @param aIID      The IID of the interface on the listener that will
                  no longer be called.

 @return <CODE>NS_OK</CODE>, listener was successfully removed;
         <CODE>NS_ERROR_INVALID_ARG</CODE> arguments was invalid or
         the object did not implement the interface specified by the IID.

 @see addWebBrowserListener
 @see nsIWeakReference
void removeWebBrowserListener(in nsIWeakReference aListener, in nsIIDRef aIID)