Liking cljdoc? Tell your friends :D

chromex.app.commands

clj

Use the commands API to add keyboard shortcuts that trigger actions in your extension, for example, an action to open the browser action or send a command to the extension.

Use the commands API to add keyboard shortcuts that trigger actions in your extension, for example, an action to open the
browser action or send a command to the extension.

  * available since Chrome 36
  * https://developer.chrome.com/apps/commands
raw docstring

api-tableclj

source

gen-callclj

source

gen-wrapclj/smacro

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

get-allclj/smacro

(get-all)

Returns all the registered extension commands for this extension and their shortcut (if active).

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 [commands] where:

|commands| - https://developer.chrome.com/apps/commands#property-callback-commands.

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/commands#method-getAll.

Returns all the registered extension commands for this extension and their shortcut (if active).

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 [commands] where:

  |commands| - https://developer.chrome.com/apps/commands#property-callback-commands.

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/commands#method-getAll.
sourceraw docstring

get-all*cljs

(get-all* config)
source

on-command*cljs

(on-command* config channel & args)
source

tap-all-eventsclj/smacro

(tap-all-events chan)

Taps all valid non-deprecated events in chromex.app.commands namespace.

Taps all valid non-deprecated events in chromex.app.commands namespace.
sourceraw docstring

tap-on-command-eventsclj/smacro

(tap-on-command-events channel & args)

Fired when a registered command is activated using a keyboard shortcut.

Events will be put on the |channel| with signature [::on-command [command tab]] where:

|command| - https://developer.chrome.com/apps/commands#property-onCommand-command. |tab| - https://developer.chrome.com/apps/commands#property-onCommand-tab.

Note: |args| will be passed as additional parameters into Chrome event's .addListener call.

https://developer.chrome.com/apps/commands#event-onCommand.

Fired when a registered command is activated using a keyboard shortcut.

Events will be put on the |channel| with signature [::on-command [command tab]] where:

  |command| - https://developer.chrome.com/apps/commands#property-onCommand-command.
  |tab| - https://developer.chrome.com/apps/commands#property-onCommand-tab.

Note: |args| will be passed as additional parameters into Chrome event's .addListener call.

https://developer.chrome.com/apps/commands#event-onCommand.
sourceraw docstring

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

× close