Use the chrome.app.window API to create windows. Windows have an optional frame with title bar and size controls. They are not associated with any Chrome browser windows. See the Window State Sample for a demonstration of these options.
Use the chrome.app.window API to create windows. Windows have an optional frame with title bar and size controls. They are not associated with any Chrome browser windows. See the Window State Sample for a demonstration of these options. * available since Chrome 36 * https://developer.chrome.com/apps/app.window
(can-set-visible-on-all-workspaces)
Whether the current platform supports windows being visible on all workspaces.
https://developer.chrome.com/apps/app.window#method-canSetVisibleOnAllWorkspaces.
Whether the current platform supports windows being visible on all workspaces. https://developer.chrome.com/apps/app.window#method-canSetVisibleOnAllWorkspaces.
(create url)
(create url options)
The size and position of a window can be specified in a number of different ways. The most simple option is not specifying anything at all, in which case a default size and platform dependent position will be used.To set the position, size and constraints of the window, use the innerBounds or outerBounds properties. Inner bounds do not include window decorations. Outer bounds include the window's title bar and frame. Note that the padding between the inner and outer bounds is determined by the OS. Therefore setting the same property for both inner and outer bounds is considered an error (for example, setting both innerBounds.left and outerBounds.left).To automatically remember the positions of windows you can give them ids. If a window has an id, This id is used to remember the size and position of the window whenever it is moved or resized. This size and position is then used instead of the specified bounds on subsequent opening of a window with the same id. If you need to open a window with an id at a location other than the remembered default, you can create it hidden, move it to the desired location, then show it.
|url| - https://developer.chrome.com/apps/app.window#property-create-url. |options| - https://developer.chrome.com/apps/app.window#property-create-options.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [created-window] where:
|created-window| - https://developer.chrome.com/apps/app.window#property-callback-createdWindow.
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
The size and position of a window can be specified in a number of different ways. The most simple option is not specifying anything at all, in which case a default size and platform dependent position will be used.To set the position, size and constraints of the window, use the innerBounds or outerBounds properties. Inner bounds do not include window decorations. Outer bounds include the window's title bar and frame. Note that the padding between the inner and outer bounds is determined by the OS. Therefore setting the same property for both inner and outer bounds is considered an error (for example, setting both innerBounds.left and outerBounds.left).To automatically remember the positions of windows you can give them ids. If a window has an id, This id is used to remember the size and position of the window whenever it is moved or resized. This size and position is then used instead of the specified bounds on subsequent opening of a window with the same id. If you need to open a window with an id at a location other than the remembered default, you can create it hidden, move it to the desired location, then show it. |url| - https://developer.chrome.com/apps/app.window#property-create-url. |options| - https://developer.chrome.com/apps/app.window#property-create-options. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [created-window] where: |created-window| - https://developer.chrome.com/apps/app.window#property-callback-createdWindow. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error. https://developer.chrome.com/apps/app.window#method-create.
(current)
Returns an 'AppWindow' object for the current script context (ie JavaScript 'window' object). This can also be called on a handle to a script context for another page, for example: otherWindow.chrome.app.window.current().
https://developer.chrome.com/apps/app.window#method-current.
Returns an 'AppWindow' object for the current script context (ie JavaScript 'window' object). This can also be called on a handle to a script context for another page, for example: otherWindow.chrome.app.window.current(). https://developer.chrome.com/apps/app.window#method-current.
(get id)
Gets an 'AppWindow' with the given id. If no window with the given id exists null is returned. This method is new in Chrome 33.
|id| - https://developer.chrome.com/apps/app.window#property-get-id.
Gets an 'AppWindow' with the given id. If no window with the given id exists null is returned. This method is new in Chrome 33. |id| - https://developer.chrome.com/apps/app.window#property-get-id. https://developer.chrome.com/apps/app.window#method-get.
(get-all)
Gets an array of all currently created app windows. This method is new in Chrome 33.
Gets an array of all currently created app windows. This method is new in Chrome 33. https://developer.chrome.com/apps/app.window#method-getAll.
(tap-all-events chan)
Taps all valid non-deprecated events in chromex.app.app.window namespace.
Taps all valid non-deprecated events in chromex.app.app.window namespace.
(tap-on-bounds-changed-events channel & args)
Fired when the window is resized.
Events will be put on the |channel| with signature [::on-bounds-changed []].
Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
https://developer.chrome.com/apps/app.window#event-onBoundsChanged.
Fired when the window is resized. Events will be put on the |channel| with signature [::on-bounds-changed []]. Note: |args| will be passed as additional parameters into Chrome event's .addListener call. https://developer.chrome.com/apps/app.window#event-onBoundsChanged.
(tap-on-closed-events channel & args)
Fired when the window is closed. Note, this should be listened to from a window other than the window being closed, for example from the background page. This is because the window being closed will be in the process of being torn down when the event is fired, which means not all APIs in the window's script context will be functional.
Events will be put on the |channel| with signature [::on-closed []].
Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
https://developer.chrome.com/apps/app.window#event-onClosed.
Fired when the window is closed. Note, this should be listened to from a window other than the window being closed, for example from the background page. This is because the window being closed will be in the process of being torn down when the event is fired, which means not all APIs in the window's script context will be functional. Events will be put on the |channel| with signature [::on-closed []]. Note: |args| will be passed as additional parameters into Chrome event's .addListener call. https://developer.chrome.com/apps/app.window#event-onClosed.
(tap-on-fullscreened-events channel & args)
Fired when the window is fullscreened (either via the AppWindow or HTML5 APIs).
Events will be put on the |channel| with signature [::on-fullscreened []].
Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
https://developer.chrome.com/apps/app.window#event-onFullscreened.
Fired when the window is fullscreened (either via the AppWindow or HTML5 APIs). Events will be put on the |channel| with signature [::on-fullscreened []]. Note: |args| will be passed as additional parameters into Chrome event's .addListener call. https://developer.chrome.com/apps/app.window#event-onFullscreened.
(tap-on-maximized-events channel & args)
Fired when the window is maximized.
Events will be put on the |channel| with signature [::on-maximized []].
Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
https://developer.chrome.com/apps/app.window#event-onMaximized.
Fired when the window is maximized. Events will be put on the |channel| with signature [::on-maximized []]. Note: |args| will be passed as additional parameters into Chrome event's .addListener call. https://developer.chrome.com/apps/app.window#event-onMaximized.
(tap-on-minimized-events channel & args)
Fired when the window is minimized.
Events will be put on the |channel| with signature [::on-minimized []].
Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
https://developer.chrome.com/apps/app.window#event-onMinimized.
Fired when the window is minimized. Events will be put on the |channel| with signature [::on-minimized []]. Note: |args| will be passed as additional parameters into Chrome event's .addListener call. https://developer.chrome.com/apps/app.window#event-onMinimized.
(tap-on-restored-events channel & args)
Fired when the window is restored from being minimized or maximized.
Events will be put on the |channel| with signature [::on-restored []].
Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
https://developer.chrome.com/apps/app.window#event-onRestored.
Fired when the window is restored from being minimized or maximized. Events will be put on the |channel| with signature [::on-restored []]. Note: |args| will be passed as additional parameters into Chrome event's .addListener call. https://developer.chrome.com/apps/app.window#event-onRestored.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close