Liking cljdoc? Tell your friends :D

chromex.app.settings-private

clj

Use the chrome.settingsPrivate API to get or set preferences from the settings UI. Access is restricted to a whitelisted set of user facing preferences.

  • available since Chrome master
Use the chrome.settingsPrivate API to get or set preferences
from the settings UI. Access is restricted to a whitelisted set of user
facing preferences.

  * available since Chrome master
raw docstring

api-tableclj

source

gen-callclj

source

gen-wrapclj/smacro

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

get-all-prefsclj/smacro

(get-all-prefs)

Gets an array of all the prefs.

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

|prefs| - ?

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.

Gets an array of all the prefs.

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

  |prefs| - ?

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

get-all-prefs*cljs

(get-all-prefs* config)
source

get-default-zoomclj/smacro

(get-default-zoom)

Gets the default page zoom factor. Possible values are currently between 0.25 and 5. For a full list, see zoom::kPresetZoomFactors.

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

|zoom| - ?

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.

Gets the default page zoom factor. Possible values are currently between 0.25 and 5. For a full list, see
zoom::kPresetZoomFactors.

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

  |zoom| - ?

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

get-default-zoom*cljs

(get-default-zoom* config)
source

get-prefclj/smacro

(get-pref name)

Gets the value of a specific pref.

|name| - ?

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

|pref| - ?

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.

Gets the value of a specific pref.

  |name| - ?

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

  |pref| - ?

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

get-pref*cljs

(get-pref* config name)
source

on-prefs-changed*cljs

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

set-default-zoomclj/smacro

(set-default-zoom zoom)

Sets the page zoom factor. Must be less than 0.001 different than a value in zoom::kPresetZoomFactors.

|zoom| - ?

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

|success| - ?

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.

Sets the page zoom factor. Must be less than 0.001 different than a value in zoom::kPresetZoomFactors.

  |zoom| - ?

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

  |success| - ?

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

set-default-zoom*cljs

(set-default-zoom* config zoom)
source

set-prefclj/smacro

(set-pref name value)
(set-pref name value page-id)

Sets a pref value.

|name| - The name of the pref. |value| - The new value of the pref. |page-id| - An optional user metrics identifier.

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

|success| - ?

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.

Sets a pref value.

  |name| - The name of the pref.
  |value| - The new value of the pref.
  |page-id| - An optional user metrics identifier.

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

  |success| - ?

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

set-pref*cljs

(set-pref* config name value page-id)
source

tap-all-eventsclj/smacro

(tap-all-events chan)

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

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

tap-on-prefs-changed-eventsclj/smacro

(tap-on-prefs-changed-events channel & args)

Fired when a set of prefs has changed.|prefs| The prefs that changed.

Events will be put on the |channel| with signature [::on-prefs-changed [prefs]] where:

|prefs| - ?

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

Fired when a set of prefs has changed.|prefs| The prefs that changed.

Events will be put on the |channel| with signature [::on-prefs-changed [prefs]] where:

  |prefs| - ?

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

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

× close