Liking cljdoc? Tell your friends :D

chromex.app.app.window

clj

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
raw docstring

api-tableclj

source

can-set-visible-on-all-workspacesclj/smacro

(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.
sourceraw docstring

can-set-visible-on-all-workspaces*cljs

(can-set-visible-on-all-workspaces* config)
source

createclj/smacro

(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.

https://developer.chrome.com/apps/app.window#method-create.

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.
sourceraw docstring

create*cljs

(create* config url options)
source

currentclj/smacro

(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.
sourceraw docstring

current*cljs

(current* config)
source

gen-callclj

source

gen-wrapclj/smacro

(gen-wrap kind item-id config & args)
source

getclj/smacro

(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.

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.
sourceraw docstring

get*cljs

(get* config id)
source

get-allclj/smacro

(get-all)

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.

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.
sourceraw docstring

get-all*cljs

(get-all* config)
source

on-bounds-changed*cljs

(on-bounds-changed* config channel & args)
source

on-closed*cljs

(on-closed* config channel & args)
source

on-fullscreened*cljs

(on-fullscreened* config channel & args)
source

on-maximized*cljs

(on-maximized* config channel & args)
source

on-minimized*cljs

(on-minimized* config channel & args)
source

on-restored*cljs

(on-restored* config channel & args)
source

tap-all-eventsclj/smacro

(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.
sourceraw docstring

tap-on-bounds-changed-eventsclj/smacro

(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.
sourceraw docstring

tap-on-closed-eventsclj/smacro

(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.
sourceraw docstring

tap-on-fullscreened-eventsclj/smacro

(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.
sourceraw docstring

tap-on-maximized-eventsclj/smacro

(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.
sourceraw docstring

tap-on-minimized-eventsclj/smacro

(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.
sourceraw docstring

tap-on-restored-eventsclj/smacro

(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.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close