Liking cljdoc? Tell your friends :D

chromex.ext.devtools.panels

clj

Use the chrome.devtools.panels API to integrate your extension into Developer Tools window UI: create your own panels, access existing panels, and add sidebars.

Use the chrome.devtools.panels API to integrate your extension into Developer Tools window UI: create your own panels,
access existing panels, and add sidebars.

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

api-tableclj

source

createclj/smacro

(create title icon-path page-path)

Creates an extension panel.

|title| - Title that is displayed next to the extension icon in the Developer Tools toolbar. |icon-path| - Path of the panel's icon relative to the extension directory. |page-path| - Path of the panel's HTML page relative to the extension directory.

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

|panel| - An ExtensionPanel object representing the created panel.

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/devtools.panels#method-create.

Creates an extension panel.

  |title| - Title that is displayed next to the extension icon in the Developer Tools toolbar.
  |icon-path| - Path of the panel's icon relative to the extension directory.
  |page-path| - Path of the panel's HTML page relative to the extension directory.

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

  |panel| - An ExtensionPanel object representing the created panel.

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/devtools.panels#method-create.
sourceraw docstring

create*cljs

(create* config title icon-path page-path)
source

elements*cljs

(elements* config)
source

gen-callclj

source

gen-wrapclj/smacro

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

get-elementsclj/smacro

(get-elements)
Elements panel.

https://developer.chrome.com/extensions/devtools.panels#property-elements.
sourceraw docstring

get-sourcesclj/smacro

(get-sources)
Sources panel.

https://developer.chrome.com/extensions/devtools.panels#property-sources.
sourceraw docstring

get-theme-nameclj/smacro

(get-theme-name)

The name of the color theme set in user's DevTools settings. Possible values: default (the default) and dark.

https://developer.chrome.com/extensions/devtools.panels#property-themeName.

The name of the color theme set in user's DevTools settings. Possible values: default (the default) and dark.

https://developer.chrome.com/extensions/devtools.panels#property-themeName.
sourceraw docstring

open-resourceclj/smacro

(open-resource url line-number)

Requests DevTools to open a URL in a Developer Tools panel.

|url| - The URL of the resource to open. |line-number| - Specifies the line number to scroll to when the resource is loaded.

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/devtools.panels#method-openResource.

Requests DevTools to open a URL in a Developer Tools panel.

  |url| - The URL of the resource to open.
  |line-number| - Specifies the line number to scroll to when the resource is loaded.

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/devtools.panels#method-openResource.
sourceraw docstring

open-resource*cljs

(open-resource* config url line-number)
source

set-open-resource-handlerclj/smacro

(set-open-resource-handler)

Specifies the function to be called when the user clicks a resource link in the Developer Tools window. To unset the handler, either call the method with no parameters or pass null as the parameter.

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

|resource| - A 'devtools.inspectedWindow.Resource' object for the resource that was clicked.

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/devtools.panels#method-setOpenResourceHandler.

Specifies the function to be called when the user clicks a resource link in the Developer Tools window. To unset the
handler, either call the method with no parameters or pass null as the parameter.

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

  |resource| - A 'devtools.inspectedWindow.Resource' object for the resource that was clicked.

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/devtools.panels#method-setOpenResourceHandler.
sourceraw docstring

set-open-resource-handler*cljs

(set-open-resource-handler* config)
source

sources*cljs

(sources* config)
source

tap-all-eventsclj/smacro

(tap-all-events chan)

Taps all valid non-deprecated events in chromex.ext.devtools.panels namespace.

Taps all valid non-deprecated events in chromex.ext.devtools.panels namespace.
sourceraw docstring

theme-name*cljs

(theme-name* config)
source

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

× close