Interface nsIWindowCreatorType

Hierarchy

Methods

  • Increases the reference count for this interface. The associated instance will not be deleted unless the reference count is returned to zero.

    Returns

    The resulting reference count.

    Returns number

  • Parameters

    • aIID: object
    • Optional aInstancePtr: object

    Returns any

  • A run time mechanism for interface discovery.

    Returns

    NS_OK if the interface is supported by the associated instance, NS_NOINTERFACE if it is not.

    aInstancePtr must not be null.

    Parameters

    • aIID: object

      [in] A requested interface IID

    • aInstancePtr: object

      [out] A pointer to an interface pointer to receive the result.

    Returns void

  • Decreases the reference count for this interface. Generally, if the reference count returns to zero, the associated instance is deleted.

    Returns

    The resulting reference count.

    Returns number

  • Create a new window. Gecko will/may call this method, if made available to it, to create new windows.

    Returns

    the new window. Will be null if canceled or an error occurred.

    Parameters

    • parent: nsIWebBrowserChrome

      Parent window, if any. Null if not. The newly created window should be made a child/dependent window of the parent, if any (and if the concept applies to the underlying OS).

    • chromeFlags: uint32_t

      Chrome features from nsIWebBrowserChrome

    • aOpenWindowInfo: nsIOpenWindowInfo

      Information used to open initial content in the new chrome window. Can be nullptr.

    • cancel: boolean

      Return |true| to reject window creation. If true the implementation has determined the window should not be created at all. The caller should not default to any possible backup scheme for creating the window.

    Returns nsIWebBrowserChrome

Generated using TypeDoc