developerPrivate API. This is a private API exposing developing and debugging functionalities for apps and extensions.
developerPrivate API. This is a private API exposing developing and debugging functionalities for apps and extensions. * available since Chrome 27
(add-host-permission extension-id host)
Adds a new host permission to the extension. The extension will only have access to the host if it is within the requested permissions.
|extension-id| - The id of the extension to modify. |host| - The host to add.
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.
Adds a new host permission to the extension. The extension will only have access to the host if it is within the requested permissions. |extension-id| - The id of the extension to modify. |host| - The host to add. 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.
(allow-file-access extension-id allow)
|extension-id| - ? |allow| - ?
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.
|extension-id| - ? |allow| - ? 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.
(allow-incognito extension-id allow)
|extension-id| - ? |allow| - ?
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.
|extension-id| - ? |allow| - ? 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.
(auto-update)
Runs auto update for extensions and apps immediately.
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.
Runs auto update for extensions and apps immediately. 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.
(choose-path select-type file-type)
Open Dialog to browse to an entry.
|select-type| - Select a file or a folder. |file-type| - Required file type. For example, pem type is for private key and load type is for an unpacked item.
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 [string] where:
|string| - ?
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.
Open Dialog to browse to an entry. |select-type| - Select a file or a folder. |file-type| - Required file type. For example, pem type is for private key and load type is for an unpacked item. 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 [string] where: |string| - ? 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.
(delete-extension-errors properties)
Delete reported extension errors.
|properties| - The properties specifying the errors to remove.
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.
Delete reported extension errors. |properties| - The properties specifying the errors to remove. 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.
(enable id enabled)
|id| - ? |enabled| - ?
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.
|id| - ? |enabled| - ? 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.
(get-extension-info id)
Returns information of a particular extension.
|id| - The id of the extension.
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| - ?
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.
Returns information of a particular extension. |id| - The id of the extension. 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| - ? 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.
(get-extension-size id)
Returns the size of a particular extension on disk (already formatted).
|id| - The id of the extension.
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 [string] where:
|string| - ?
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.
Returns the size of a particular extension on disk (already formatted). |id| - The id of the extension. 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 [string] where: |string| - ? 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.
(get-extensions-info)
(get-extensions-info options)
Returns information of all the extensions and apps installed.
|options| - Options to restrict the items returned.
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| - ?
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.
Returns information of all the extensions and apps installed. |options| - Options to restrict the items returned. 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| - ? 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.
(get-items-info include-disabled include-terminated)
Returns information of all the extensions and apps installed.
|include-disabled| - include disabled items. |include-terminated| - include terminated items.
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| - ?
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.
Returns information of all the extensions and apps installed. |include-disabled| - include disabled items. |include-terminated| - include terminated items. 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| - ? 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.
(get-profile-configuration)
Returns the current profile's configuration.
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 [info] where:
|info| - ?
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.
Returns the current profile's configuration. 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 [info] where: |info| - ? 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.
(inspect options)
|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 [].
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.
|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 []. 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.
(install-dropped-file)
Installs the file that was dragged and dropped onto the associated page.
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.
Installs the file that was dragged and dropped onto the associated page. 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.
(is-profile-managed)
Returns true if the profile is managed.
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| - ?
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.
Returns true if the profile is managed. 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| - ? 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.
(load-directory directory)
Loads an extension / app.
|directory| - The directory to load the extension from.
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 [string] where:
|string| - ?
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.
Loads an extension / app. |directory| - The directory to load the extension from. 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 [string] where: |string| - ? 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.
(load-unpacked)
(load-unpacked options)
Loads a user-selected unpacked item.
|options| - Additional configuration parameters.
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 [error] where:
|error| - ?
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.
Loads a user-selected unpacked item. |options| - Additional configuration parameters. 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 [error] where: |error| - ? 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.
(notify-drag-install-in-progress)
Notifies the browser that a user began a drag in order to install an extension.
Notifies the browser that a user began a drag in order to install an extension.
(open-dev-tools properties)
Open the developer tools to focus on a particular error.
|properties| - ?
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.
Open the developer tools to focus on a particular error. |properties| - ? 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.
(pack-directory path)
(pack-directory path private-key-path)
(pack-directory path private-key-path flags)
Pack an extension.
|path| - ? |private-key-path| - The path of the private key, if one is given. |flags| - Special flags to apply to the loading process, if any.
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 [response] where:
|response| - ?
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.
Pack an extension. |path| - ? |private-key-path| - The path of the private key, if one is given. |flags| - Special flags to apply to the loading process, if any. 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 [response] where: |response| - ? 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.
(reload extension-id)
(reload extension-id options)
Reloads a given extension.
|extension-id| - The id of the extension to reload. |options| - Additional configuration parameters.
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 [error] where:
|error| - ?
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.
Reloads a given extension. |extension-id| - The id of the extension to reload. |options| - Additional configuration parameters. 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 [error] where: |error| - ? 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.
(remove-host-permission extension-id host)
Removes a host permission from the extension. This should only be called with a host that the extension has access to.
|extension-id| - The id of the extension to modify. |host| - The host to remove.
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.
Removes a host permission from the extension. This should only be called with a host that the extension has access to. |extension-id| - The id of the extension to modify. |host| - The host to remove. 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.
(repair-extension extension-id)
Repairs the extension specified.
|extension-id| - The id of the extension to repair.
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.
Repairs the extension specified. |extension-id| - The id of the extension to repair. 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.
(request-file-source properties)
Reads and returns the contents of a file related to an extension which caused an error.
|properties| - ?
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 [response] where:
|response| - ?
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.
Reads and returns the contents of a file related to an extension which caused an error. |properties| - ? 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 [response] where: |response| - ? 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.
(set-shortcut-handling-suspended is-suspended)
(Un)suspends global shortcut handling.
|is-suspended| - Whether or not shortcut handling should be suspended.
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.
(Un)suspends global shortcut handling. |is-suspended| - Whether or not shortcut handling should be suspended. 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.
(show-options extension-id)
Shows the options page for the extension specified.
|extension-id| - The id of the extension to show the options page for.
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.
Shows the options page for the extension specified. |extension-id| - The id of the extension to show the options page for. 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.
(show-path extension-id)
Shows the path of the extension specified.
|extension-id| - The id of the extension to show the path for.
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.
Shows the path of the extension specified. |extension-id| - The id of the extension to show the path for. 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.
(show-permissions-dialog extension-id)
Opens a permissions dialog.
|extension-id| - The id of the extension to show permissions for.
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.
Opens a permissions dialog. |extension-id| - The id of the extension to show permissions for. 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.
(tap-all-events chan)
Taps all valid non-deprecated events in chromex.ext.developer-private namespace.
Taps all valid non-deprecated events in chromex.ext.developer-private namespace.
(tap-on-item-state-changed-events channel & args)
Fired when a item state is changed.
Events will be put on the |channel| with signature [::on-item-state-changed [response]] where:
|response| - ?
Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
Fired when a item state is changed. Events will be put on the |channel| with signature [::on-item-state-changed [response]] where: |response| - ? Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
(tap-on-profile-state-changed-events channel & args)
Fired when the profile's state has changed.
Events will be put on the |channel| with signature [::on-profile-state-changed [info]] where:
|info| - ?
Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
Fired when the profile's state has changed. Events will be put on the |channel| with signature [::on-profile-state-changed [info]] where: |info| - ? Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
(update-extension-command update)
Updates an extension command.
|update| - The parameters for updating the extension command.
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.
Updates an extension command. |update| - The parameters for updating the extension command. 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.
(update-extension-configuration update)
Modifies an extension's current configuration.
|update| - The parameters for updating the extension's configuration. Any properties omitted from |update| will not be changed.
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.
Modifies an extension's current configuration. |update| - The parameters for updating the extension's configuration. Any properties omitted from |update| will not be changed. 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.
(update-profile-configuration update)
Updates the active profile.
|update| - The parameters for updating the profile's configuration. Any properties omitted from |update| will not be changed.
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.
Updates the active profile. |update| - The parameters for updating the profile's configuration. Any properties omitted from |update| will not be changed. 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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close