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 27 * https://developer.chrome.com/extensions/devtools.panels
(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.
(get-elements)
Elements panel. https://developer.chrome.com/extensions/devtools.panels#property-elements.
(get-sources)
Sources panel. https://developer.chrome.com/extensions/devtools.panels#property-sources.
(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.
(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.
(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.
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close