Interface nsIAppShellServiceType

Hierarchy

Properties

applicationProvidedHiddenWindow: boolean

Return true if the application hidden window was provided by the application. If it wasn't, the default hidden window was used. This will usually be false on all non-mac platforms.

hasHiddenWindow: boolean

Whether the hidden window has been lazily created.

hiddenDOMWindow: mozIDOMWindowProxy

Return the (singleton) application hidden window, automatically created and maintained by this AppShellService.

Param

the hidden window. Do not unhide hidden window. Do not taunt hidden window.

hiddenWindow: nsIAppWindow

Return the (singleton) application hidden window, automatically created and maintained by this AppShellService.

Param

the hidden window. Do not unhide hidden window. Do not taunt hidden window.

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

  • Returns void

  • Parameters

    • aParent: nsIAppWindow
    • aUrl: nsIURI
    • aChromeMask: uint32_t
    • aInitialWidth: number
    • aInitialHeight: number

    Returns nsIAppWindow

  • This is the constructor for creating an invisible DocShell. It is used to simulate DOM windows without an actual physical representation.

    Parameters

    • aIsChrome: bool

      Set true if you want to use it for chrome content.

    • aChromeMask: uint32_t

      Used to specify chrome flags that should be set on the window. See nsIWebBrowserChrome for flag definitions.

    Returns nsIWindowlessBrowser

  • Returns void

  • Add a window to the application's registry of windows. These windows are generally shown in the Windows taskbar, and the application knows it can't quit until it's out of registered windows.

    Note

    When this method is successful, it fires the global notification "xul-window-registered"

    Parameters

    • aWindow: nsIAppWindow

      the window to register

    Returns void

  • B2G multi-screen support. When open another top-level window on b2g, a screen ID is needed for identifying which screen this window is opened to.

    Parameters

    • aScreenId: uint32_t

      Differentiate screens of windows. It is platform- specific due to the hardware limitation for now.

    Returns void

  • Start/stop tracking lags in the event loop. If the event loop gets unresponsive, a "event-loop-lag" notification is sent. Note that calling startEventLoopLagTracking when tracking is already enabled has no effect.

    Returns

    true if tracking succeeded.

    Returns bool

  • Returns void

  • Remove a window from the application's window registry. Note that this method won't automatically attempt to quit the app when the last window is unregistered. For that, see Quit().

    Parameters

    • aWindow: nsIAppWindow

      you see the pattern

    Returns void

Generated using TypeDoc