Liking cljdoc? Tell your friends :D

chromex.ext.browser-action

clj

Use browser actions to put icons in the main Google Chrome toolbar, to the right of the address bar. In addition to its icon, a browser action can have a tooltip, a badge, and a popup.

Use browser actions to put icons in the main Google Chrome toolbar, to the right of the address bar. In addition to its
icon, a browser action can have a tooltip, a badge, and a popup.

  * available since Chrome 34
  * https://developer.chrome.com/extensions/browserAction
raw docstring

api-tableclj

source

disableclj/smacro

(disable)
(disable tab-id)

Disables the browser action for a tab.

|tab-id| - The ID of the tab for which to modify the browser action.

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 [].

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/extensions/browserAction#method-disable.

Disables the browser action for a tab.

  |tab-id| - The ID of the tab for which to modify the browser action.

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 [].

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/extensions/browserAction#method-disable.
sourceraw docstring

disable*cljs

(disable* config tab-id)
source

enableclj/smacro

(enable)
(enable tab-id)

Enables the browser action for a tab. Defaults to enabled.

|tab-id| - The ID of the tab for which to modify the browser action.

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 [].

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/extensions/browserAction#method-enable.

Enables the browser action for a tab. Defaults to enabled.

  |tab-id| - The ID of the tab for which to modify the browser action.

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 [].

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/extensions/browserAction#method-enable.
sourceraw docstring

enable*cljs

(enable* config tab-id)
source

gen-callclj

source

gen-wrapclj/smacro

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

get-badge-background-colorclj/smacro

(get-badge-background-color details)

Gets the background color of the browser action.

|details| - https://developer.chrome.com/extensions/browserAction#property-getBadgeBackgroundColor-details.

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

|result| - https://developer.chrome.com/extensions/browserAction#property-callback-result.

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/extensions/browserAction#method-getBadgeBackgroundColor.

Gets the background color of the browser action.

  |details| - https://developer.chrome.com/extensions/browserAction#property-getBadgeBackgroundColor-details.

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

  |result| - https://developer.chrome.com/extensions/browserAction#property-callback-result.

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/extensions/browserAction#method-getBadgeBackgroundColor.
sourceraw docstring

get-badge-background-color*cljs

(get-badge-background-color* config details)
source

get-badge-textclj/smacro

(get-badge-text details)

Gets the badge text of the browser action. If no tab is specified, the non-tab-specific badge text is returned.

|details| - https://developer.chrome.com/extensions/browserAction#property-getBadgeText-details.

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

|result| - https://developer.chrome.com/extensions/browserAction#property-callback-result.

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/extensions/browserAction#method-getBadgeText.

Gets the badge text of the browser action. If no tab is specified, the non-tab-specific badge text is returned.

  |details| - https://developer.chrome.com/extensions/browserAction#property-getBadgeText-details.

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

  |result| - https://developer.chrome.com/extensions/browserAction#property-callback-result.

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/extensions/browserAction#method-getBadgeText.
sourceraw docstring

get-badge-text*cljs

(get-badge-text* config details)
source

get-popupclj/smacro

(get-popup details)

Gets the HTML document that is set as the popup for this browser action.

|details| - https://developer.chrome.com/extensions/browserAction#property-getPopup-details.

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

|result| - https://developer.chrome.com/extensions/browserAction#property-callback-result.

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/extensions/browserAction#method-getPopup.

Gets the HTML document that is set as the popup for this browser action.

  |details| - https://developer.chrome.com/extensions/browserAction#property-getPopup-details.

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

  |result| - https://developer.chrome.com/extensions/browserAction#property-callback-result.

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/extensions/browserAction#method-getPopup.
sourceraw docstring

get-popup*cljs

(get-popup* config details)
source

get-titleclj/smacro

(get-title details)

Gets the title of the browser action.

|details| - https://developer.chrome.com/extensions/browserAction#property-getTitle-details.

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

|result| - https://developer.chrome.com/extensions/browserAction#property-callback-result.

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/extensions/browserAction#method-getTitle.

Gets the title of the browser action.

  |details| - https://developer.chrome.com/extensions/browserAction#property-getTitle-details.

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

  |result| - https://developer.chrome.com/extensions/browserAction#property-callback-result.

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/extensions/browserAction#method-getTitle.
sourceraw docstring

get-title*cljs

(get-title* config details)
source

on-clicked*cljs

(on-clicked* config channel & args)
source

set-badge-background-colorclj/smacro

(set-badge-background-color details)

Sets the background color for the badge.

|details| - https://developer.chrome.com/extensions/browserAction#property-setBadgeBackgroundColor-details.

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 [].

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/extensions/browserAction#method-setBadgeBackgroundColor.

Sets the background color for the badge.

  |details| - https://developer.chrome.com/extensions/browserAction#property-setBadgeBackgroundColor-details.

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 [].

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/extensions/browserAction#method-setBadgeBackgroundColor.
sourceraw docstring

set-badge-background-color*cljs

(set-badge-background-color* config details)
source

set-badge-textclj/smacro

(set-badge-text details)

Sets the badge text for the browser action. The badge is displayed on top of the icon.

|details| - https://developer.chrome.com/extensions/browserAction#property-setBadgeText-details.

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 [].

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/extensions/browserAction#method-setBadgeText.

Sets the badge text for the browser action. The badge is displayed on top of the icon.

  |details| - https://developer.chrome.com/extensions/browserAction#property-setBadgeText-details.

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 [].

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/extensions/browserAction#method-setBadgeText.
sourceraw docstring

set-badge-text*cljs

(set-badge-text* config details)
source

set-iconclj/smacro

(set-icon details)

Sets the icon for the browser action. The icon can be specified as the path to an image file, as the pixel data from a canvas element, or as a dictionary of one of those. Either the path or the imageData property must be specified.

|details| - https://developer.chrome.com/extensions/browserAction#property-setIcon-details.

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 [].

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/extensions/browserAction#method-setIcon.

Sets the icon for the browser action. The icon can be specified as the path to an image file, as the pixel data from a
canvas element, or as a dictionary of one of those. Either the path or the imageData property must be specified.

  |details| - https://developer.chrome.com/extensions/browserAction#property-setIcon-details.

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 [].

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/extensions/browserAction#method-setIcon.
sourceraw docstring

set-icon*cljs

(set-icon* config details)
source

set-popupclj/smacro

(set-popup details)

Sets the HTML document to be opened as a popup when the user clicks the browser action icon.

|details| - https://developer.chrome.com/extensions/browserAction#property-setPopup-details.

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 [].

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/extensions/browserAction#method-setPopup.

Sets the HTML document to be opened as a popup when the user clicks the browser action icon.

  |details| - https://developer.chrome.com/extensions/browserAction#property-setPopup-details.

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 [].

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/extensions/browserAction#method-setPopup.
sourceraw docstring

set-popup*cljs

(set-popup* config details)
source

set-titleclj/smacro

(set-title details)

Sets the title of the browser action. This title appears in the tooltip.

|details| - https://developer.chrome.com/extensions/browserAction#property-setTitle-details.

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 [].

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/extensions/browserAction#method-setTitle.

Sets the title of the browser action. This title appears in the tooltip.

  |details| - https://developer.chrome.com/extensions/browserAction#property-setTitle-details.

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 [].

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/extensions/browserAction#method-setTitle.
sourceraw docstring

set-title*cljs

(set-title* config details)
source

tap-all-eventsclj/smacro

(tap-all-events chan)

Taps all valid non-deprecated events in chromex.ext.browser-action namespace.

Taps all valid non-deprecated events in chromex.ext.browser-action namespace.
sourceraw docstring

tap-on-clicked-eventsclj/smacro

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

Fired when a browser action icon is clicked. Does not fire if the browser action has a popup.

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

|tab| - https://developer.chrome.com/extensions/browserAction#property-onClicked-tab.

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

https://developer.chrome.com/extensions/browserAction#event-onClicked.

Fired when a browser action icon is clicked. Does not fire if the browser action has a popup.

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

  |tab| - https://developer.chrome.com/extensions/browserAction#property-onClicked-tab.

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

https://developer.chrome.com/extensions/browserAction#event-onClicked.
sourceraw docstring

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

× close