Liking cljdoc? Tell your friends :D

chromex.app.webview-tag

clj

Use the webview tag to actively load live content from the web over the network and embed it in your Chrome App. Your app can control the appearance of the webview and interact with the web content, initiate navigations in an embedded web page, react to error events that happen within it, and more (see Usage).

Use the webview tag to actively load live content from the web over the network and embed it in your Chrome App. Your app
can control the appearance of the webview and interact with the web content, initiate navigations in an embedded web page,
react to error events that happen within it, and more (see Usage).

  * available since Chrome 36
  * https://developer.chrome.com/apps/tags/webview
raw docstring

add-content-scriptsclj/smacro

(add-content-scripts content-script-list)

Adds content script injection rules to the webview. When the webview navigates to a page matching one or more rules, the associated scripts will be injected. You can programmatically add rules or update existing rules.The following example adds two rules to the webview: 'myRule' and 'anotherRule'.webview.addContentScripts([ { name: 'myRule', matches: ['http://www.foo.com/*'], css: { files: ['mystyles.css'] }, js: { files: ['jquery.js', 'myscript.js'] }, run_at: 'document_start' }, { name: 'anotherRule', matches: ['http://www.bar.com/*'], js: { code: 'document.body.style.backgroundColor = 'red';' }, run_at: 'document_end' }]); ...

// Navigates webview. webview.src = 'http://www.foo.com';You can defer addContentScripts call until you needs to inject scripts.The following example shows how to overwrite an existing rule.webview.addContentScripts([{ name: 'rule', matches: ['http://www.foo.com/*'], js: { files: ['scriptA.js'] }, run_at: 'document_start'}]);

// Do something. webview.src = 'http://www.foo.com/*'; ... // Overwrite 'rule' defined before. webview.addContentScripts([{ name: 'rule', matches: ['http://www.bar.com/*'], js: { files: ['scriptB.js'] }, run_at: 'document_end'}]);If webview has been naviagted to the origin (e.g., foo.com) and calls webview.addContentScripts to add 'myRule', you need to wait for next navigation to make the scripts injected. If you want immediate injection, executeScript will do the right thing.Rules are preserved even if the guest process crashes or is killed or even if the webview is reparented.Refer to the content scripts documentation for more details.

 |content-script-list| - Details of the content scripts to add.

https://developer.chrome.com/apps/tags/webview#method-addContentScripts.

Adds content script injection rules to the webview. When the webview navigates to a page matching one or more rules, the
   associated scripts will be injected. You can programmatically add rules or update existing rules.The following example adds
   two rules to the webview: 'myRule' and 'anotherRule'.webview.addContentScripts([
  {
    name: 'myRule',
    matches:
   ['http://www.foo.com/*'],
    css: { files: ['mystyles.css'] },
    js: { files: ['jquery.js', 'myscript.js'] },
   run_at: 'document_start'
  },
  {
    name: 'anotherRule',
    matches: ['http://www.bar.com/*'],
    js: { code:
   'document.body.style.backgroundColor = 'red';' },
    run_at: 'document_end'
  }]);
 ...

// Navigates webview.
webview.src
   = 'http://www.foo.com';You can defer addContentScripts call until you needs to inject scripts.The following example shows
   how to overwrite an existing rule.webview.addContentScripts([{
    name: 'rule',
    matches: ['http://www.foo.com/*'],
   js: { files: ['scriptA.js'] },
    run_at: 'document_start'}]);

// Do something.
webview.src = 'http://www.foo.com/*';
   ...
// Overwrite 'rule' defined before.
webview.addContentScripts([{
    name: 'rule',
    matches:
   ['http://www.bar.com/*'],
    js: { files: ['scriptB.js'] },
    run_at: 'document_end'}]);If webview has been naviagted to
   the origin (e.g., foo.com) and calls webview.addContentScripts to add 'myRule', you need to wait for next navigation to
   make the scripts injected. If you want immediate injection, executeScript will do the right thing.Rules are preserved even
   if the guest process crashes or is killed or even if the webview is reparented.Refer to the content scripts documentation
   for more details.

     |content-script-list| - Details of the content scripts to add.

   https://developer.chrome.com/apps/tags/webview#method-addContentScripts.
sourceraw docstring

add-content-scripts*cljs

(add-content-scripts* config content-script-list)
source

api-tableclj

source

backclj/smacro

(back)

Navigates backward one history entry if possible. Equivalent to go(-1).

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| - Indicates whether the navigation was successful.

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/apps/tags/webview#method-back.

Navigates backward one history entry if possible. Equivalent to go(-1).

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| - Indicates whether the navigation was successful.

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/apps/tags/webview#method-back.
sourceraw docstring

back*cljs

(back* config)
source

can-go-backclj/smacro

(can-go-back)

Indicates whether or not it is possible to navigate backward through history. The state of this function is cached, and updated before each loadcommit, so the best place to call it is on loadcommit.

https://developer.chrome.com/apps/tags/webview#method-canGoBack.

Indicates whether or not it is possible to navigate backward through history. The state of this function is cached, and
updated before each loadcommit, so the best place to call it is on loadcommit.

https://developer.chrome.com/apps/tags/webview#method-canGoBack.
sourceraw docstring

can-go-back*cljs

(can-go-back* config)
source

can-go-forwardclj/smacro

(can-go-forward)

Indicates whether or not it is possible to navigate forward through history. The state of this function is cached, and updated before each loadcommit, so the best place to call it is on loadcommit.

https://developer.chrome.com/apps/tags/webview#method-canGoForward.

Indicates whether or not it is possible to navigate forward through history. The state of this function is cached, and
updated before each loadcommit, so the best place to call it is on loadcommit.

https://developer.chrome.com/apps/tags/webview#method-canGoForward.
sourceraw docstring

can-go-forward*cljs

(can-go-forward* config)
source

capture-visible-regionclj/smacro

(capture-visible-region)
(capture-visible-region options)

Captures the visible region of the webview.

|options| - Details about the format and quality of an image.

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

|data-url| - A data URL which encodes an image of the visible area of the captured tab. May be assigned to the 'src' property of an HTML Image element for display.

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/apps/tags/webview#method-captureVisibleRegion.

Captures the visible region of the webview.

  |options| - Details about the format and quality of an image.

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

  |data-url| - A data URL which encodes an image of the visible area of the captured tab. May be assigned to the 'src'
               property of an HTML Image element for display.

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/apps/tags/webview#method-captureVisibleRegion.
sourceraw docstring

capture-visible-region*cljs

(capture-visible-region* config options)
source

clear-dataclj/smacro

(clear-data options types)

Clears browsing data for the webview partition.

|options| - Options determining which data to clear. |types| - The types of data to be cleared.

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/apps/tags/webview#method-clearData.

Clears browsing data for the webview partition.

  |options| - Options determining which data to clear.
  |types| - The types of data to be cleared.

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/apps/tags/webview#method-clearData.
sourceraw docstring

clear-data*cljs

(clear-data* config options types)
source

content-window*cljs

(content-window* config)
source

context-menus*cljs

(context-menus* config)
source

execute-scriptclj/smacro

(execute-script details)

Injects JavaScript code into the guest page.The following sample code uses script injection to set the guest page's background color to red:webview.executeScript({ code: 'document.body.style.backgroundColor = 'red'' });

|details| - Details of the script to run.

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| - The result of the script in every injected frame.

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/apps/tags/webview#method-executeScript.

Injects JavaScript code into the guest page.The following sample code uses script injection to set the guest page's
background color to red:webview.executeScript({ code: 'document.body.style.backgroundColor = 'red'' });

  |details| - Details of the script to run.

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| - The result of the script in every injected frame.

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/apps/tags/webview#method-executeScript.
sourceraw docstring

execute-script*cljs

(execute-script* config details)
source

findclj/smacro

(find search-text)
(find search-text options)

Initiates a find-in-page request.

|search-text| - The string to find in the page. |options| - Options for the find request.

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

|results| - Contains all of the results of the find request. results can be omitted if it is not utilized in the callback function body; for example, if the callback is only used to discern when the find request has completed.

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/apps/tags/webview#method-find.

Initiates a find-in-page request.

  |search-text| - The string to find in the page.
  |options| - Options for the find request.

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

  |results| - Contains all of the results of the find request. results can be omitted if it is not utilized in the callback
              function body; for example, if the callback is only used to discern when the find request has completed.

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/apps/tags/webview#method-find.
sourceraw docstring

find*cljs

(find* config search-text options)
source

forwardclj/smacro

(forward)

Navigates forward one history entry if possible. Equivalent to go(1).

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| - Indicates whether the navigation was successful.

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/apps/tags/webview#method-forward.

Navigates forward one history entry if possible. Equivalent to go(1).

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| - Indicates whether the navigation was successful.

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/apps/tags/webview#method-forward.
sourceraw docstring

forward*cljs

(forward* config)
source

gen-callclj

source

gen-wrapclj/smacro

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

get-audio-stateclj/smacro

(get-audio-state)

Queries audio state.

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

|audible| - https://developer.chrome.com/apps/tags/webview#property-callback-audible.

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/apps/tags/webview#method-getAudioState.

Queries audio state.

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

  |audible| - https://developer.chrome.com/apps/tags/webview#property-callback-audible.

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/apps/tags/webview#method-getAudioState.
sourceraw docstring

get-audio-state*cljs

(get-audio-state* config)
source

get-content-windowclj/smacro

(get-content-window)

Object reference which can be used to post messages into the guest page.

https://developer.chrome.com/apps/tags/webview#property-contentWindow.

Object reference which can be used to post messages into the guest page.

https://developer.chrome.com/apps/tags/webview#property-contentWindow.
sourceraw docstring

get-context-menusclj/smacro

(get-context-menus)

Similar to chrome's ContextMenus API, but applies to webview instead of browser. Use the webview.contextMenus API to add items to webview's context menu. You can choose what types of objects your context menu additions apply to, such as images, hyperlinks, and pages.

https://developer.chrome.com/apps/tags/webview#property-contextMenus.

Similar to chrome's ContextMenus API, but applies to webview instead of browser. Use the webview.contextMenus API to add
items to webview's context menu. You can choose what types of objects your context menu additions apply to, such as images,
hyperlinks, and pages.

https://developer.chrome.com/apps/tags/webview#property-contextMenus.
sourceraw docstring

get-process-idclj/smacro

(get-process-id)

Returns Chrome's internal process ID for the guest web page's current process, allowing embedders to know how many guests would be affected by terminating the process. Two guests will share a process only if they belong to the same app and have the same storage partition ID. The call is synchronous and returns the embedder's cached notion of the current process ID. The process ID isn't the same as the operating system's process ID.

https://developer.chrome.com/apps/tags/webview#method-getProcessId.

Returns Chrome's internal process ID for the guest web page's current process, allowing embedders to know how many guests
would be affected by terminating the process. Two guests will share a process only if they belong to the same app and have
the same storage partition ID. The call is synchronous and returns the embedder's cached notion of the current process ID.
The process ID isn't the same as the operating system's process ID.

https://developer.chrome.com/apps/tags/webview#method-getProcessId.
sourceraw docstring

get-process-id*cljs

(get-process-id* config)
source

get-requestclj/smacro

(get-request)

Interface which provides access to webRequest events on the guest page.

https://developer.chrome.com/apps/tags/webview#property-request.

Interface which provides access to webRequest events on the guest page.

https://developer.chrome.com/apps/tags/webview#property-request.
sourceraw docstring

get-user-agentclj/smacro

(get-user-agent)

Returns the user agent string used by the webview for guest page requests.

https://developer.chrome.com/apps/tags/webview#method-getUserAgent.

Returns the user agent string used by the webview for guest page requests.

https://developer.chrome.com/apps/tags/webview#method-getUserAgent.
sourceraw docstring

get-user-agent*cljs

(get-user-agent* config)
source

get-zoomclj/smacro

(get-zoom)

Gets the current zoom factor.

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-factor] where:

|zoom-factor| - The current zoom factor.

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/apps/tags/webview#method-getZoom.

Gets the current zoom factor.

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-factor] where:

  |zoom-factor| - The current zoom factor.

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/apps/tags/webview#method-getZoom.
sourceraw docstring

get-zoom*cljs

(get-zoom* config)
source

get-zoom-modeclj/smacro

(get-zoom-mode)

Gets the current zoom mode.

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-mode] where:

|zoom-mode| - The webview's current zoom mode.

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/apps/tags/webview#method-getZoomMode.

Gets the current zoom mode.

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-mode] where:

  |zoom-mode| - The webview's current zoom mode.

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/apps/tags/webview#method-getZoomMode.
sourceraw docstring

get-zoom-mode*cljs

(get-zoom-mode* config)
source

goclj/smacro

(go relative-index)

Navigates to a history entry using a history index relative to the current navigation. If the requested navigation is impossible, this method has no effect.

|relative-index| - Relative history index to which the webview should be navigated. For example, a value of 2 will navigate forward 2 history entries if possible; a value of -3 will navigate backward 3 entries.

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| - Indicates whether the navigation was successful.

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/apps/tags/webview#method-go.

Navigates to a history entry using a history index relative to the current navigation. If the requested navigation is
impossible, this method has no effect.

  |relative-index| - Relative history index to which the webview should be navigated. For example, a value of 2 will
                     navigate forward 2 history entries if possible; a value of -3 will navigate backward 3 entries.

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| - Indicates whether the navigation was successful.

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/apps/tags/webview#method-go.
sourceraw docstring

go*cljs

(go* config relative-index)
source

insert-cssclj/smacro

(insert-css details)

Injects CSS into the guest page.

|details| - Details of the CSS to insert.

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/apps/tags/webview#method-insertCSS.

Injects CSS into the guest page.

  |details| - Details of the CSS to insert.

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/apps/tags/webview#method-insertCSS.
sourceraw docstring

insert-css*cljs

(insert-css* config details)
source

is-audio-mutedclj/smacro

(is-audio-muted)

Queries whether audio is muted.

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

|muted| - https://developer.chrome.com/apps/tags/webview#property-callback-muted.

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/apps/tags/webview#method-isAudioMuted.

Queries whether audio is muted.

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

  |muted| - https://developer.chrome.com/apps/tags/webview#property-callback-muted.

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/apps/tags/webview#method-isAudioMuted.
sourceraw docstring

is-audio-muted*cljs

(is-audio-muted* config)
source

is-spatial-navigation-enabledclj/smacro

(is-spatial-navigation-enabled)

Queries whether spatial navigation is enabled for the webview.

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

|enabled| - https://developer.chrome.com/apps/tags/webview#property-callback-enabled.

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/apps/tags/webview#method-isSpatialNavigationEnabled.

Queries whether spatial navigation is enabled for the webview.

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

  |enabled| - https://developer.chrome.com/apps/tags/webview#property-callback-enabled.

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/apps/tags/webview#method-isSpatialNavigationEnabled.
sourceraw docstring

is-spatial-navigation-enabled*cljs

(is-spatial-navigation-enabled* config)
source

is-user-agent-overriddenclj/smacro

(is-user-agent-overridden)

Indicates whether or not the webview's user agent string has been overridden by 'webviewTag.setUserAgentOverride'.

https://developer.chrome.com/apps/tags/webview#method-isUserAgentOverridden.

Indicates whether or not the webview's user agent string has been overridden by 'webviewTag.setUserAgentOverride'.

https://developer.chrome.com/apps/tags/webview#method-isUserAgentOverridden.
sourceraw docstring

is-user-agent-overridden*cljs

(is-user-agent-overridden* config)
source

load-data-with-base-urlclj/smacro

(load-data-with-base-url data-url base-url)
(load-data-with-base-url data-url base-url virtual-url)

Loads a data URL with a specified base URL used for relative links. Optionally, a virtual URL can be provided to be shown to the user instead of the data URL.

|data-url| - The data URL to load. |base-url| - The base URL that will be used for relative links. |virtual-url| - The URL that will be displayed to the user (in the address bar).

https://developer.chrome.com/apps/tags/webview#method-loadDataWithBaseUrl.

Loads a data URL with a specified base URL used for relative links. Optionally, a virtual URL can be provided to be shown
to the user instead of the data URL.

  |data-url| - The data URL to load.
  |base-url| - The base URL that will be used for relative links.
  |virtual-url| - The URL that will be displayed to the user (in the address bar).

https://developer.chrome.com/apps/tags/webview#method-loadDataWithBaseUrl.
sourceraw docstring

load-data-with-base-url*cljs

(load-data-with-base-url* config data-url base-url virtual-url)
source

printclj/smacro

(print)

Prints the contents of the webview. This is equivalent to calling scripted print function from the webview itself.

https://developer.chrome.com/apps/tags/webview#method-print.

Prints the contents of the webview. This is equivalent to calling scripted print function from the webview itself.

https://developer.chrome.com/apps/tags/webview#method-print.
sourceraw docstring

print*cljs

(print* config)
source

reloadclj/smacro

(reload)
Reloads the current top-level page.

https://developer.chrome.com/apps/tags/webview#method-reload.
sourceraw docstring

reload*cljs

(reload* config)
source

remove-content-scriptsclj/smacro

(remove-content-scripts)
(remove-content-scripts script-name-list)

Removes content scripts from a webview.The following example removes 'myRule' which was added before.webview.removeContentScripts(['myRule']);You can remove all the rules by calling:webview.removeContentScripts();

|script-name-list| - A list of names of content scripts that will be removed. If the list is empty, all the content scripts added to the webview will be removed.

https://developer.chrome.com/apps/tags/webview#method-removeContentScripts.

Removes content scripts from a webview.The following example removes 'myRule' which was added
before.webview.removeContentScripts(['myRule']);You can remove all the rules by calling:webview.removeContentScripts();

  |script-name-list| - A list of names of content scripts that will be removed. If the list is empty, all the content
                       scripts added to the webview will be removed.

https://developer.chrome.com/apps/tags/webview#method-removeContentScripts.
sourceraw docstring

remove-content-scripts*cljs

(remove-content-scripts* config script-name-list)
source

request*cljs

(request* config)
source

set-audio-mutedclj/smacro

(set-audio-muted mute)

Sets audio mute state of the webview.

|mute| - Mute audio value

https://developer.chrome.com/apps/tags/webview#method-setAudioMuted.

Sets audio mute state of the webview.

  |mute| - Mute audio value

https://developer.chrome.com/apps/tags/webview#method-setAudioMuted.
sourceraw docstring

set-audio-muted*cljs

(set-audio-muted* config mute)
source

set-spatial-navigation-enabledclj/smacro

(set-spatial-navigation-enabled enabled)

Sets spatial navigation state of the webview.

|enabled| - Spatial navigation state value.

https://developer.chrome.com/apps/tags/webview#method-setSpatialNavigationEnabled.

Sets spatial navigation state of the webview.

  |enabled| - Spatial navigation state value.

https://developer.chrome.com/apps/tags/webview#method-setSpatialNavigationEnabled.
sourceraw docstring

set-spatial-navigation-enabled*cljs

(set-spatial-navigation-enabled* config enabled)
source

set-user-agent-overrideclj/smacro

(set-user-agent-override user-agent)

Override the user agent string used by the webview for guest page requests.

|user-agent| - The user agent string to use.

https://developer.chrome.com/apps/tags/webview#method-setUserAgentOverride.

Override the user agent string used by the webview for guest page requests.

  |user-agent| - The user agent string to use.

https://developer.chrome.com/apps/tags/webview#method-setUserAgentOverride.
sourceraw docstring

set-user-agent-override*cljs

(set-user-agent-override* config user-agent)
source

set-zoomclj/smacro

(set-zoom zoom-factor)

Changes the zoom factor of the page. The scope and persistence of this change are determined by the webview's current zoom mode (see 'webviewTag.ZoomMode').

|zoom-factor| - The new zoom factor.

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/apps/tags/webview#method-setZoom.

Changes the zoom factor of the page. The scope and persistence of this change are determined by the webview's current zoom
mode (see 'webviewTag.ZoomMode').

  |zoom-factor| - The new zoom factor.

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/apps/tags/webview#method-setZoom.
sourceraw docstring

set-zoom*cljs

(set-zoom* config zoom-factor)
source

set-zoom-modeclj/smacro

(set-zoom-mode zoom-mode)

Sets the zoom mode of the webview.

|zoom-mode| - Defines how zooming is handled in the webview.

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/apps/tags/webview#method-setZoomMode.

Sets the zoom mode of the webview.

  |zoom-mode| - Defines how zooming is handled in the webview.

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/apps/tags/webview#method-setZoomMode.
sourceraw docstring

set-zoom-mode*cljs

(set-zoom-mode* config zoom-mode)
source

stopclj/smacro

(stop)

Stops loading the current webview navigation if in progress.

https://developer.chrome.com/apps/tags/webview#method-stop.

Stops loading the current webview navigation if in progress.

https://developer.chrome.com/apps/tags/webview#method-stop.
sourceraw docstring

stop*cljs

(stop* config)
source

stop-findingclj/smacro

(stop-finding)
(stop-finding action)

Ends the current find session (clearing all highlighting) and cancels all find requests in progress.

|action| - Determines what to do with the active match after the find session has ended. clear will clear the highlighting over the active match; keep will keep the active match highlighted; activate will keep the active match highlighted and simulate a user click on that match. The default action is keep.

https://developer.chrome.com/apps/tags/webview#method-stopFinding.

Ends the current find session (clearing all highlighting) and cancels all find requests in progress.

  |action| - Determines what to do with the active match after the find session has ended. clear will clear the
             highlighting over the active match; keep will keep the active match highlighted; activate will keep the
             active match highlighted and simulate a user click on that match. The default action is keep.

https://developer.chrome.com/apps/tags/webview#method-stopFinding.
sourceraw docstring

stop-finding*cljs

(stop-finding* config action)
source

tap-all-eventsclj/smacro

(tap-all-events chan)

Taps all valid non-deprecated events in chromex.app.webview-tag namespace.

Taps all valid non-deprecated events in chromex.app.webview-tag namespace.
sourceraw docstring

terminateclj/smacro

(terminate)

Forcibly kills the guest web page's renderer process. This may affect multiple webview tags in the current app if they share the same process, but it will not affect webview tags in other apps.

https://developer.chrome.com/apps/tags/webview#method-terminate.

Forcibly kills the guest web page's renderer process. This may affect multiple webview tags in the current app if they
share the same process, but it will not affect webview tags in other apps.

https://developer.chrome.com/apps/tags/webview#method-terminate.
sourceraw docstring

terminate*cljs

(terminate* config)
source

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

× close