Liking cljdoc? Tell your friends :D

chromex.ext.web-navigation

clj

Use the chrome.webNavigation API to receive notifications about the status of navigation requests in-flight.

Use the chrome.webNavigation API to receive notifications about the status of navigation requests in-flight.

* available since Chrome 24
* https://developer.chrome.com/extensions/webNavigation
raw docstring

api-tableclj

source

gen-callclj

source

gen-wrapclj/smacro

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

get-all-framesclj/smacro

(get-all-frames details)

Retrieves information about all frames of a given tab.

|details| - Information about the tab to retrieve all frames 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 [details] where:

|details| - A list of frames in the given tab, null if the specified tab ID is invalid.

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/webNavigation#method-getAllFrames.

Retrieves information about all frames of a given tab.

  |details| - Information about the tab to retrieve all frames 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 [details] where:

  |details| - A list of frames in the given tab, null if the specified tab ID is invalid.

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/webNavigation#method-getAllFrames.
sourceraw docstring

get-all-frames*cljs

(get-all-frames* config details)
source

get-frameclj/smacro

(get-frame details)

Retrieves information about the given frame. A frame refers to an <iframe> or a <frame> of a web page and is identified by a tab ID and a frame ID.

|details| - Information about the frame to retrieve information about.

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

|details| - Information about the requested frame, null if the specified frame ID and/or tab ID are invalid.

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/webNavigation#method-getFrame.

Retrieves information about the given frame. A frame refers to an &lt;iframe&gt; or a &lt;frame&gt; of a web page and is
identified by a tab ID and a frame ID.

  |details| - Information about the frame to retrieve information about.

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

  |details| - Information about the requested frame, null if the specified frame ID and/or tab ID are invalid.

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/webNavigation#method-getFrame.
sourceraw docstring

get-frame*cljs

(get-frame* config details)
source

on-before-navigate*cljs

(on-before-navigate* config channel & args)
source

on-committed*cljs

(on-committed* config channel & args)
source

on-completed*cljs

(on-completed* config channel & args)
source

on-created-navigation-target*cljs

(on-created-navigation-target* config channel & args)
source

on-dom-content-loaded*cljs

(on-dom-content-loaded* config channel & args)
source

on-error-occurred*cljs

(on-error-occurred* config channel & args)
source

on-history-state-updated*cljs

(on-history-state-updated* config channel & args)
source

on-reference-fragment-updated*cljs

(on-reference-fragment-updated* config channel & args)
source

on-tab-replaced*cljs

(on-tab-replaced* config channel & args)
source

tap-all-eventsclj/smacro

(tap-all-events chan)

Taps all valid non-deprecated events in chromex.ext.web-navigation namespace.

Taps all valid non-deprecated events in chromex.ext.web-navigation namespace.
sourceraw docstring

tap-on-before-navigate-eventsclj/smacro

(tap-on-before-navigate-events channel & args)

Fired when a navigation is about to occur.

Events will be put on the |channel| with signature [::on-before-navigate [details]] where:

|details| - https://developer.chrome.com/extensions/webNavigation#property-onBeforeNavigate-details.

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

https://developer.chrome.com/extensions/webNavigation#event-onBeforeNavigate.

Fired when a navigation is about to occur.

Events will be put on the |channel| with signature [::on-before-navigate [details]] where:

  |details| - https://developer.chrome.com/extensions/webNavigation#property-onBeforeNavigate-details.

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

https://developer.chrome.com/extensions/webNavigation#event-onBeforeNavigate.
sourceraw docstring

tap-on-committed-eventsclj/smacro

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

Fired when a navigation is committed. The document (and the resources it refers to, such as images and subframes) might still be downloading, but at least part of the document has been received from the server and the browser has decided to switch to the new document.

Events will be put on the |channel| with signature [::on-committed [details]] where:

|details| - https://developer.chrome.com/extensions/webNavigation#property-onCommitted-details.

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

https://developer.chrome.com/extensions/webNavigation#event-onCommitted.

Fired when a navigation is committed. The document (and the resources it refers to, such as images and subframes) might
still be downloading, but at least part of the document has been received from the server and the browser has decided to
switch to the new document.

Events will be put on the |channel| with signature [::on-committed [details]] where:

  |details| - https://developer.chrome.com/extensions/webNavigation#property-onCommitted-details.

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

https://developer.chrome.com/extensions/webNavigation#event-onCommitted.
sourceraw docstring

tap-on-completed-eventsclj/smacro

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

Fired when a document, including the resources it refers to, is completely loaded and initialized.

Events will be put on the |channel| with signature [::on-completed [details]] where:

|details| - https://developer.chrome.com/extensions/webNavigation#property-onCompleted-details.

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

https://developer.chrome.com/extensions/webNavigation#event-onCompleted.

Fired when a document, including the resources it refers to, is completely loaded and initialized.

Events will be put on the |channel| with signature [::on-completed [details]] where:

  |details| - https://developer.chrome.com/extensions/webNavigation#property-onCompleted-details.

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

https://developer.chrome.com/extensions/webNavigation#event-onCompleted.
sourceraw docstring

tap-on-created-navigation-target-eventsclj/smacro

(tap-on-created-navigation-target-events channel & args)

Fired when a new window, or a new tab in an existing window, is created to host a navigation.

Events will be put on the |channel| with signature [::on-created-navigation-target [details]] where:

|details| - https://developer.chrome.com/extensions/webNavigation#property-onCreatedNavigationTarget-details.

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

https://developer.chrome.com/extensions/webNavigation#event-onCreatedNavigationTarget.

Fired when a new window, or a new tab in an existing window, is created to host a navigation.

Events will be put on the |channel| with signature [::on-created-navigation-target [details]] where:

  |details| - https://developer.chrome.com/extensions/webNavigation#property-onCreatedNavigationTarget-details.

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

https://developer.chrome.com/extensions/webNavigation#event-onCreatedNavigationTarget.
sourceraw docstring

tap-on-dom-content-loaded-eventsclj/smacro

(tap-on-dom-content-loaded-events channel & args)

Fired when the page's DOM is fully constructed, but the referenced resources may not finish loading.

Events will be put on the |channel| with signature [::on-dom-content-loaded [details]] where:

|details| - https://developer.chrome.com/extensions/webNavigation#property-onDOMContentLoaded-details.

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

https://developer.chrome.com/extensions/webNavigation#event-onDOMContentLoaded.

Fired when the page's DOM is fully constructed, but the referenced resources may not finish loading.

Events will be put on the |channel| with signature [::on-dom-content-loaded [details]] where:

  |details| - https://developer.chrome.com/extensions/webNavigation#property-onDOMContentLoaded-details.

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

https://developer.chrome.com/extensions/webNavigation#event-onDOMContentLoaded.
sourceraw docstring

tap-on-error-occurred-eventsclj/smacro

(tap-on-error-occurred-events channel & args)

Fired when an error occurs and the navigation is aborted. This can happen if either a network error occurred, or the user aborted the navigation.

Events will be put on the |channel| with signature [::on-error-occurred [details]] where:

|details| - https://developer.chrome.com/extensions/webNavigation#property-onErrorOccurred-details.

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

https://developer.chrome.com/extensions/webNavigation#event-onErrorOccurred.

Fired when an error occurs and the navigation is aborted. This can happen if either a network error occurred, or the user
aborted the navigation.

Events will be put on the |channel| with signature [::on-error-occurred [details]] where:

  |details| - https://developer.chrome.com/extensions/webNavigation#property-onErrorOccurred-details.

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

https://developer.chrome.com/extensions/webNavigation#event-onErrorOccurred.
sourceraw docstring

tap-on-history-state-updated-eventsclj/smacro

(tap-on-history-state-updated-events channel & args)

Fired when the frame's history was updated to a new URL. All future events for that frame will use the updated URL.

Events will be put on the |channel| with signature [::on-history-state-updated [details]] where:

|details| - https://developer.chrome.com/extensions/webNavigation#property-onHistoryStateUpdated-details.

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

https://developer.chrome.com/extensions/webNavigation#event-onHistoryStateUpdated.

Fired when the frame's history was updated to a new URL. All future events for that frame will use the updated URL.

Events will be put on the |channel| with signature [::on-history-state-updated [details]] where:

  |details| - https://developer.chrome.com/extensions/webNavigation#property-onHistoryStateUpdated-details.

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

https://developer.chrome.com/extensions/webNavigation#event-onHistoryStateUpdated.
sourceraw docstring

tap-on-reference-fragment-updated-eventsclj/smacro

(tap-on-reference-fragment-updated-events channel & args)

Fired when the reference fragment of a frame was updated. All future events for that frame will use the updated URL.

Events will be put on the |channel| with signature [::on-reference-fragment-updated [details]] where:

|details| - https://developer.chrome.com/extensions/webNavigation#property-onReferenceFragmentUpdated-details.

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

https://developer.chrome.com/extensions/webNavigation#event-onReferenceFragmentUpdated.

Fired when the reference fragment of a frame was updated. All future events for that frame will use the updated URL.

Events will be put on the |channel| with signature [::on-reference-fragment-updated [details]] where:

  |details| - https://developer.chrome.com/extensions/webNavigation#property-onReferenceFragmentUpdated-details.

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

https://developer.chrome.com/extensions/webNavigation#event-onReferenceFragmentUpdated.
sourceraw docstring

tap-on-tab-replaced-eventsclj/smacro

(tap-on-tab-replaced-events channel & args)

Fired when the contents of the tab is replaced by a different (usually previously pre-rendered) tab.

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

|details| - https://developer.chrome.com/extensions/webNavigation#property-onTabReplaced-details.

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

https://developer.chrome.com/extensions/webNavigation#event-onTabReplaced.

Fired when the contents of the tab is replaced by a different (usually previously pre-rendered) tab.

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

  |details| - https://developer.chrome.com/extensions/webNavigation#property-onTabReplaced-details.

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

https://developer.chrome.com/extensions/webNavigation#event-onTabReplaced.
sourceraw docstring

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

× close