API for integration testing. To be used on test images with a test component extension.
API for integration testing. To be used on test images with a test component extension. * available since Chrome 36
(activate-accelerator accelerator)
Activates shortcut.
|accelerator| - the accelerator to activate.
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| - ?
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.
Activates shortcut. |accelerator| - the accelerator to activate. 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| - ? 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.
(activate-adjacent-desks-to-target-index index)
Activates the desk at the given |index| by chaining multiple activate-desk animations.
|index| - the zero-based index of the desk desired to be activated.
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| - ?
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.
Activates the desk at the given |index| by chaining multiple activate-desk animations. |index| - the zero-based index of the desk desired to be activated. 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| - ? 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.
(activate-adjacent-desks-to-target-index* config index)
(activate-desk-at-index index)
Activates the desk at the given |index| triggering the activate-desk animation.
|index| - the zero-based index of the desk desired to be activated.
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| - ?
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.
Activates the desk at the given |index| triggering the activate-desk animation. |index| - the zero-based index of the desk desired to be activated. 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| - ? 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.
(arc-app-tracing-start)
Start ARC performance tracing for the active ARC app window.
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.
Start ARC performance tracing for the active ARC app window. 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.
(arc-app-tracing-stop-and-analyze)
Stop ARC performance tracing if it was started and analyze results.
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.
Stop ARC performance tracing if it was started and analyze results. 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.
(bootstrap-machine-learning-service)
Makes a basic request to ML Service, triggering 1. ML Service daemon startup, and 2. the initial D-Bus -> Mojo IPC bootstrap.
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.
Makes a basic request to ML Service, triggering 1. ML Service daemon startup, and 2. the initial D-Bus -> Mojo IPC bootstrap. 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.
(close-app app-id)
Closes an application the given appId in case it was running.
|app-id| - ?
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.
Closes an application the given appId in case it was running. |app-id| - ? 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.
(close-app-window id)
Closes an app window given by 'id'.
|id| - the id of the window
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.
Closes an app window given by 'id'. |id| - the id of the window 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.
(create-new-desk)
Creates a new desk if the maximum number of desks has not been reached.
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| - ?
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.
Creates a new desk if the maximum number of desks has not been reached. 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| - ? 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.
(disable-automation)
Disables the automation feature. Note that the event handlers and caches of automation nodes still remain in the test extension and so the next automation.getDesktop will miss initialization. The caller should ensure invalidation of those information (i.e. reloading the entire background 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.
Disables the automation feature. Note that the event handlers and caches of automation nodes still remain in the test extension and so the next automation.getDesktop will miss initialization. The caller should ensure invalidation of those information (i.e. reloading the entire background 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.
(disable-switch-access-dialog)
When neccesary, disables showing the dialog when Switch Access is disabled.
When neccesary, disables showing the dialog when Switch Access is disabled.
(enable-assistant-and-wait-for-ready)
Bring up the Assistant service, and wait for the ready signal.
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.
Bring up the Assistant service, and wait for the ready signal. 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.
(export-crostini path)
Export the crostini container.
|path| - The path in Downloads to save the export.
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.
Export the crostini container. |path| - The path in Downloads to save the export. 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-all-enterprise-policies)
Get state of the policies. Will contain device policies and policies from the active profile. The policy values are formatted as they would be for exporting in chrome://policy.
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 [all-policies] where:
|all-policies| - ?
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 state of the policies. Will contain device policies and policies from the active profile. The policy values are formatted as they would be for exporting in chrome://policy. 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 [all-policies] where: |all-policies| - ? 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-all-installed-apps)
Get the list of all installed applications
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 [apps] where:
|apps| - ?
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 the list of all installed applications 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 [apps] where: |apps| - ? 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-app-window-list)
Get information on all application windows. Callback will be called with the list of |AppWindowInfo| dictionary.
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 [window-list] where:
|window-list| - ?
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 information on all application windows. Callback will be called with the list of |AppWindowInfo| dictionary. 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 [window-list] where: |window-list| - ? 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-arc-app app-id)
Gets information about the requested ARC app.
|app-id| - ?
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 [package] where:
|package| - ?
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.
Gets information about the requested ARC app. |app-id| - ? 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 [package] where: |package| - ? 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-arc-package package-name)
Gets information about requested ARC package.
|package-name| - ?
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 [package] where:
|package| - ?
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.
Gets information about requested ARC package. |package-name| - ? 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 [package] where: |package| - ? 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-arc-start-time)
Get ARC start time.
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 [start-time] where:
|start-time| - ?
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 ARC start time. 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 [start-time] where: |start-time| - ? 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-arc-state)
Get state of the ARC session.
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 state of the ARC session. 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-clipboard-text-data)
Get text from ui::Clipboard.
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] where:
|data| - ?
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 text from ui::Clipboard. 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] where: |data| - ? 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 info about installed extensions.
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.
Get info about installed extensions. 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.
(get-play-store-state)
Get state of the Play Store.
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 state of the Play Store. 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-primary-display-scale-factor)
Get the primary display scale factor. |callback| is invoked with the scale 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 [scale-factor] where:
|scale-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.
Get the primary display scale factor. |callback| is invoked with the scale 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 [scale-factor] where: |scale-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.
(get-printer-list)
Get list of available printers
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 [printers] where:
|printers| - ?
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 list of available printers 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 [printers] where: |printers| - ? 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-registered-system-web-apps)
Returns the number of system web apps that should be installed.
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 [system-apps] where:
|system-apps| - ?
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 number of system web apps that should be installed. 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 [system-apps] where: |system-apps| - ? 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-scrollable-shelf-info-for-state state)
Fetches ui information of scrollable shelf view for the given shelf state. This function does not change scrollable shelf. [deprecated='Use getShelfUIInfoForState()']
|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 [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.
Fetches ui information of scrollable shelf view for the given shelf state. This function does not change scrollable shelf. [deprecated='Use getShelfUIInfoForState()'] |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 [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.
(get-shelf-alignment display-id)
Get the shelf alignment.
|display-id| - display that contains the shelf. |callback| is invoked with the shelf alignment type.
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 [alignment] where:
|alignment| - ?
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 the shelf alignment. |display-id| - display that contains the shelf. |callback| is invoked with the shelf alignment type. 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 [alignment] where: |alignment| - ? 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-shelf-auto-hide-behavior display-id)
Get the shelf auto hide behavior.
|display-id| - display that contains the shelf. |callback| is invoked with the shelf auto hide behavior. Possible behavior values are: 'always', 'never' or 'hidden'.
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 [behavior] where:
|behavior| - ?
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 the shelf auto hide behavior. |display-id| - display that contains the shelf. |callback| is invoked with the shelf auto hide behavior. Possible behavior values are: 'always', 'never' or 'hidden'. 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 [behavior] where: |behavior| - ? 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-shelf-items)
Get the list of all shelf 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 [items] where:
|items| - ?
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 the list of all shelf 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 [items] where: |items| - ? 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-shelf-ui-info-for-state state)
Fetches UI information of shelf (including scrollable shelf and hotseat) for the given shelf state. This function does not change any shelf component.
|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 [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.
Fetches UI information of shelf (including scrollable shelf and hotseat) for the given shelf state. This function does not change any shelf component. |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 [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.
(get-visible-notifications)
Get visible notifications on the system.
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 [notifications] where:
|notifications| - ?
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 visible notifications on the system. 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 [notifications] where: |notifications| - ? 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.
(import-crostini path)
Import the crostini container.
|path| - The path in Downloads to read the import.
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.
Import the crostini container. |path| - The path in Downloads to read the import. 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.
(initialize-events)
Must be called to allow autotestPrivateAPI events to be fired.
Must be called to allow autotestPrivateAPI events to be fired.
(install-pwa-for-current-url timeout-ms)
Installs the Progressive Web App (PWA) that is in the current URL.
|timeout-ms| - Timeout in milliseconds for the operation to complete.
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 [app-id] where:
|app-id| - ?
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 Progressive Web App (PWA) that is in the current URL. |timeout-ms| - Timeout in milliseconds for the operation to complete. 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 [app-id] where: |app-id| - ? 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-app-shown app-id)
Returns true if requested app is shown in Chrome.
|app-id| - ?
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 [app-shown] where:
|app-shown| - ?
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 requested app is shown in Chrome. |app-id| - ? 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 [app-shown] where: |app-shown| - ? 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-arc-package-list-initial-refreshed)
Whether the local list of installed ARC packages has been refreshed for the first time after user login.
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 [refreshed] where:
|refreshed| - ?
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.
Whether the local list of installed ARC packages has been refreshed for the first time after user login. 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 [refreshed] where: |refreshed| - ? 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-arc-provisioned)
Returns true if ARC is provisioned. [deprecated='Use getArcState()']
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 [arc-provisioned] where:
|arc-provisioned| - ?
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 ARC is provisioned. [deprecated='Use getArcState()'] 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 [arc-provisioned] where: |arc-provisioned| - ? 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-tablet-mode-enabled)
Get the tablet mode enabled status. |callback| is invoked with the tablet mode enablement status.
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| - ?
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 the tablet mode enabled status. |callback| is invoked with the tablet mode enablement status. 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| - ? 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.
(launch-app app-id)
Launches an application from the launcher with the given appId.
|app-id| - ?
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.
Launches an application from the launcher with the given appId. |app-id| - ? 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.
(launch-arc-app app-id intent)
Launches ARC app with optional intent. Returns true if ARC is active, app exists and launch request is passed to Android.
|app-id| - ? |intent| - ?
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 [app-launched] where:
|app-launched| - ?
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.
Launches ARC app with optional intent. Returns true if ARC is active, app exists and launch request is passed to Android. |app-id| - ? |intent| - ? 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 [app-launched] where: |app-launched| - ? 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.
(launch-system-web-app app-name url)
Launches an system web app from the launcher with the given app name and url.
|app-name| - ? |url| - ?
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.
Launches an system web app from the launcher with the given app name and url. |app-name| - ? |url| - ? 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.
(login-status)
Get login status.
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 [status] where:
|status| - ?
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 login status. 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 [status] where: |status| - ? 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.
(mouse-click button)
Create mouse events to cause a mouse click.
|button| - the mouse button for the click event.
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.
Create mouse events to cause a mouse click. |button| - the mouse button for the click event. 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.
(mouse-move location duration-in-ms)
Create mouse events to move a mouse cursor to the location. This can cause a dragging if a button is pressed. It starts from the last mouse location. It does not support the move or drag across display boundaries.
|location| - the target location (in display's coordinate). |duration-in-ms| - the duration (in milliseconds) for the mouse movement. The mouse will move linearly. 0 means moving 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.
Create mouse events to move a mouse cursor to the location. This can cause a dragging if a button is pressed. It starts from the last mouse location. It does not support the move or drag across display boundaries. |location| - the target location (in display's coordinate). |duration-in-ms| - the duration (in milliseconds) for the mouse movement. The mouse will move linearly. 0 means moving 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.
(mouse-press button)
Create a mouse event to cause mouse pressing. The mouse button stays in the pressed state.
|button| - the mouse button to be pressed.
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.
Create a mouse event to cause mouse pressing. The mouse button stays in the pressed state. |button| - the mouse button to be pressed. 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.
(mouse-release button)
Create a mouse event to release a mouse button. This does nothing and returns immediately if the specified button is not pressed.
|button| - the mouse button to be released.
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.
Create a mouse event to release a mouse button. This does nothing and returns immediately if the specified button is not pressed. |button| - the mouse button to be released. 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.
(pin-shelf-icon app-id)
Create a pin on shelf for the app specified by |appId|.
|app-id| - ?
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.
Create a pin on shelf for the app specified by |appId|. |app-id| - ? 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.
(refresh-enterprise-policies)
Refreshes the Enterprise Policies.
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.
Refreshes the Enterprise Policies. 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.
(register-component name path)
Register a component with CrOSComponentManager.
|name| - The name of the component. |path| - Path to the component.
Register a component with CrOSComponentManager. |name| - The name of the component. |path| - Path to the component.
(remove-active-desk)
Removes the currently active desk and triggers the remove-desk animation.
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| - ?
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 the currently active desk and triggers the remove-desk animation. 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| - ? 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-all-notifications)
Remove all notifications.
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.
Remove all notifications. 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.
(remove-printer printer-id)
Remove printer.
|printer-id| - ?
Remove printer. |printer-id| - ?
(run-crostini-installer)
Run the crostini installer GUI to install the default crostini vm / container and create sshfs mount. The installer launches the crostini terminal app on completion. The installer expects that crostini is not already installed.
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.
Run the crostini installer GUI to install the default crostini vm / container and create sshfs mount. The installer launches the crostini terminal app on completion. The installer expects that crostini is not already installed. 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.
(run-crostini-uninstaller)
Run the crostini uninstaller GUI to remove the default crostini vm / container. The callback is invoked upon completion.
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.
Run the crostini uninstaller GUI to remove the default crostini vm / container. The callback is invoked upon completion. 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.
(send-assistant-text-query query timeout-ms)
Sends a text query via Google Assistant.
|query| - ? |timeout-ms| - ?
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 [status] where:
|status| - ?
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.
Sends a text query via Google Assistant. |query| - ? |timeout-ms| - ? 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 [status] where: |status| - ? 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-app-window-state id change)
Send WM event to change the app window's window state.
|id| - the id of the window |change| - WM event type to send to the app window.
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 [current-type] where:
|current-type| - ?
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.
Send WM event to change the app window's window state. |id| - the id of the window |change| - WM event type to send to the app window. 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 [current-type] where: |current-type| - ? 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-arc-app-window-focus package-name)
Set ARC app window focused.
|package-name| - the package name of the ARC app window.
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.
Set ARC app window focused. |package-name| - the package name of the ARC app window. 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.
(set-arc-touch-mode enabled)
Sends ARC touch mode enabled or disabled.
|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.
Sends ARC touch mode enabled or disabled. |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.
(set-assistant-enabled enabled timeout-ms)
Enables/disables the Google Assistant.
|enabled| - ? |timeout-ms| - ?
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.
Enables/disables the Google Assistant. |enabled| - ? |timeout-ms| - ? 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.
(set-clipboard-text-data data)
Set text in ui::Clipbaord.
|data| - ?
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.
Set text in ui::Clipbaord. |data| - ? 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.
(set-crostini-app-scaled app-id scaled)
Enable/disable a Crostini app's 'scaled' property.
|app-id| - The Crostini application ID. |scaled| - The app is 'scaled' when shown, which means it uses low display density.
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/disable a Crostini app's 'scaled' property. |app-id| - The Crostini application ID. |scaled| - The app is 'scaled' when shown, which means it uses low display density. 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.
(set-crostini-enabled enabled)
Enable/disable Crostini in preferences.
|enabled| - Enable Crostini.
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/disable Crostini in preferences. |enabled| - Enable Crostini. 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.
(set-metrics-enabled enabled)
Enable/disable metrics reporting in preferences.
|enabled| - Enable metrics reporting.
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/disable metrics reporting in preferences. |enabled| - Enable metrics reporting. 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.
(set-mouse-reverse-scroll enabled)
Turn on/off reverse scrolling for mice.
|enabled| - if set, enable reverse scrolling.
Turn on/off reverse scrolling for mice. |enabled| - if set, enable reverse scrolling.
(set-mouse-sensitivity value)
Set the mouse pointer sensitivity setting.
|value| - the pointer sensitivity setting index.
Set the mouse pointer sensitivity setting. |value| - the pointer sensitivity setting index.
(set-natural-scroll enabled)
Turn on/off Australian scrolling for devices other than wheel mouse.
|enabled| - if set, enable Australian scrolling.
Turn on/off Australian scrolling for devices other than wheel mouse. |enabled| - if set, enable Australian scrolling.
(set-overview-mode-state start)
Enter or exit the overview mode.
|start| - whether entering to or exiting from the overview 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 [finished] where:
|finished| - ?
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.
Enter or exit the overview mode. |start| - whether entering to or exiting from the overview 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 [finished] where: |finished| - ? 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-play-store-enabled enabled)
Enable/disable the Play Store.
|enabled| - if set, enable the Play Store.
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/disable the Play Store. |enabled| - if set, enable the Play Store. 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.
(set-plugin-vm-policy image-url image-hash license-key)
Sets mock Plugin VM policy.
|image-url| - URL to the image to install. |image-hash| - Hash for the provided image. |license-key| - License key for Plugin VM.
Sets mock Plugin VM policy. |image-url| - URL to the image to install. |image-hash| - Hash for the provided image. |license-key| - License key for Plugin VM.
(set-primary-button-right right)
Swap the primary mouse button for left click.
|right| - if set, swap the primary mouse button.
Swap the primary mouse button for left click. |right| - if set, swap the primary mouse button.
(set-shelf-alignment display-id alignment)
Set the shelf alignment.
|display-id| - display that contains the shelf. |alignment| - the type of alignment to set.
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.
Set the shelf alignment. |display-id| - display that contains the shelf. |alignment| - the type of alignment to set. 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.
(set-shelf-auto-hide-behavior display-id behavior)
Set the shelf auto hide behavior.
|display-id| - display that contains the shelf. |behavior| - an enum of 'always', 'never' or 'hidden'.
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.
Set the shelf auto hide behavior. |display-id| - display that contains the shelf. |behavior| - an enum of 'always', 'never' or 'hidden'. 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.
(set-tablet-mode-enabled enabled)
Enable/disable tablet mode. After calling this function, it won't be possible to physically switch to/from tablet mode since that functionality will be disabled.
|enabled| - if set, enable tablet 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 [enabled] where:
|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.
Enable/disable tablet mode. After calling this function, it won't be possible to physically switch to/from tablet mode since that functionality will be disabled. |enabled| - if set, enable tablet 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 [enabled] where: |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.
(set-tap-dragging enabled)
Turn on/off tap dragging for the touchpad.
|enabled| - if set, enable tap dragging.
Turn on/off tap dragging for the touchpad. |enabled| - if set, enable tap dragging.
(set-tap-to-click enabled)
Turn on/off tap-to-click for the touchpad.
|enabled| - if set, enable tap-to-click.
Turn on/off tap-to-click for the touchpad. |enabled| - if set, enable tap-to-click.
(set-three-finger-click enabled)
Turn on/off three finger click for the touchpad.
|enabled| - if set, enable three finger click.
Turn on/off three finger click for the touchpad. |enabled| - if set, enable three finger click.
(set-touchpad-sensitivity value)
Set the touchpad pointer sensitivity setting.
|value| - the pointer sensitivity setting index.
Set the touchpad pointer sensitivity setting. |value| - the pointer sensitivity setting index.
(set-whitelisted-pref pref-name value)
Set value for the specified user pref in the pref tree.
|pref-name| - ? |value| - ?
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.
Set value for the specified user pref in the pref tree. |pref-name| - ? |value| - ? 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.
(set-window-bounds id bounds display-id)
Sends a WM event to change a window's bounds and/or the display it is on.
|id| - the id of the window. |bounds| - bounds the window should be set to. |display-id| - id of display to move the window to.
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.
Sends a WM event to change a window's bounds and/or the display it is on. |id| - the id of the window. |bounds| - bounds the window should be set to. |display-id| - id of display to move the window to. 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.
(show-plugin-vm-installer)
Shows the Plugin VM installer. Does not start installation.
Shows the Plugin VM installer. Does not start installation.
(show-virtual-keyboard-if-enabled)
Show virtual keyboard of the current input method if it's available.
Show virtual keyboard of the current input method if it's available.
(shutdown force)
Shutdown the browser.
|force| - if set, ignore ongoing downloads and onunbeforeunload handlers.
Shutdown the browser. |force| - if set, ignore ongoing downloads and onunbeforeunload handlers.
(simulate-asan-memory-bug)
Simulates a memory access bug for asan testing.
Simulates a memory access bug for asan testing.
(start-smoothness-tracking)
(start-smoothness-tracking display-id)
Starts smoothness tracking for a display. If the display id is not specified, the primary display is used. Otherwise, the display specified by the display id is used.
|display-id| - ?
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.
Starts smoothness tracking for a display. If the display id is not specified, the primary display is used. Otherwise, the display specified by the display id is used. |display-id| - ? 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.
(start-throughput-tracker-data-collection)
Starts to ui::ThroughputTracker data collection for tracked animations.
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.
Starts to ui::ThroughputTracker data collection for tracked animations. 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.
(start-throughput-tracker-data-collection* config)
(start-tracing config)
Starts Chrome tracing.
|config| - the tracing 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 [].
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.
Starts Chrome tracing. |config| - the tracing 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 []. 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.
(stop-smoothness-tracking)
(stop-smoothness-tracking display-id)
Stops smoothness tracking for a display and report the smoothness. If the display id is not specified, the primary display is used. Otherwise, the display specified by the display id is used.
|display-id| - ?
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 [smoothness] where:
|smoothness| - ?
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.
Stops smoothness tracking for a display and report the smoothness. If the display id is not specified, the primary display is used. Otherwise, the display specified by the display id is used. |display-id| - ? 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 [smoothness] where: |smoothness| - ? 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.
(stop-throughput-tracker-data-collection)
Stops ui::ThroughputTracker data collection and reports the collected data since the start.
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] where:
|data| - ?
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.
Stops ui::ThroughputTracker data collection and reports the collected data since the start. 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] where: |data| - ? 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.
(stop-tracing)
Stops Chrome tracing.
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] where:
|data| - ?
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.
Stops Chrome tracing. 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] where: |data| - ? 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.
(swap-windows-in-split-view)
Swap the windows in the split view.
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.
Swap the windows in the split view. 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.
(take-screenshot)
Takes a screenshot and returns the data in base64 encoded PNG format.
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 [base64-png] where:
|base64-png| - ?
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.
Takes a screenshot and returns the data in base64 encoded PNG format. 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 [base64-png] where: |base64-png| - ? 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.
(take-screenshot-for-display display-id)
Tasks a screenshot for a display.
|display-id| - the display id of the display.
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 [base64-png] where:
|base64-png| - ?
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.
Tasks a screenshot for a display. |display-id| - the display id of the display. 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 [base64-png] where: |base64-png| - ? 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.autotest-private namespace.
Taps all valid non-deprecated events in chromex.ext.autotest-private namespace.
(tap-on-clipboard-data-changed-events channel & args)
Fired when the data in ui::Clipboard is changed.
Events will be put on the |channel| with signature [::on-clipboard-data-changed []].
Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
Fired when the data in ui::Clipboard is changed. Events will be put on the |channel| with signature [::on-clipboard-data-changed []]. Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
(update-printer printer)
Update printer. Printer with empty ID is considered new.
|printer| - ?
Update printer. Printer with empty ID is considered new. |printer| - ?
(wait-for-ambient-photo-animation photo-refresh-interval
num-completions
timeout)
Waits for the completion of photo transition animation in ambient mode.
|photo-refresh-interval| - photo refresh interval in seconds. |num-completions| - number of completions of the animation. |timeout| - the timeout in seconds.
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.
Waits for the completion of photo transition animation in ambient mode. |photo-refresh-interval| - photo refresh interval in seconds. |num-completions| - number of completions of the animation. |timeout| - the timeout in seconds. 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.
(wait-for-ambient-photo-animation* config
photo-refresh-interval
num-completions
timeout)
(wait-for-assistant-query-status timeout-s)
Invokes |callback| once the current text/voice interaction is completed. Responds with the the query status if any valid response was caught before the timeout. This API should be called before sending the query. To use it for testing a voice query via OKG in Autotest, for example, you can do:// Enable hotword setting for Assistant. assistant_util.enable_hotword();// Call this API with your callback function. chrome.autotestPrivate.waitForAssistantQueryStatus(timeout_s, function(status) {...});then start Assistant via OKG and send voice query before timeout.TODO(meilinw@): disable warmer welcome to avoid an unintended early return of this API when launching Assistant via hotkey. TODO(meilinw@): update the comment above to use Tast instead after adding API to enable hotword in Tast.
|timeout-s| - ?
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 [status] where:
|status| - ?
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.
Invokes |callback| once the current text/voice interaction is completed. Responds with the the query status if any valid response was caught before the timeout. This API should be called before sending the query. To use it for testing a voice query via OKG in Autotest, for example, you can do:// Enable hotword setting for Assistant. assistant_util.enable_hotword();// Call this API with your callback function. chrome.autotestPrivate.waitForAssistantQueryStatus(timeout_s, function(status) {...});then start Assistant via OKG and send voice query before timeout.TODO(meilinw@): disable warmer welcome to avoid an unintended early return of this API when launching Assistant via hotkey. TODO(meilinw@): update the comment above to use Tast instead after adding API to enable hotword in Tast. |timeout-s| - ? 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 [status] where: |status| - ? 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.
(wait-for-display-rotation display-id rotation)
Invokes the callback when the display rotation animation is finished, or invokes it immediately if it is not animating. The callback argument is true if the display's rotation is same as |rotation|, or false otherwise.
|display-id| - display that contains the shelf. |rotation| - the target rotation.
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| - ?
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.
Invokes the callback when the display rotation animation is finished, or invokes it immediately if it is not animating. The callback argument is true if the display's rotation is same as |rotation|, or false otherwise. |display-id| - display that contains the shelf. |rotation| - the target rotation. 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| - ? 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.
(wait-for-launcher-state launcher-state)
Wwait until the launcher is transitionto the |launcherState|, if it's not in that state.
|launcher-state| - the target launcher 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 [].
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.
Wwait until the launcher is transitionto the |launcherState|, if it's not in that state. |launcher-state| - the target launcher 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 []. 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.
(wait-for-overview-state overview-state)
Wait until overview has transitioned to |overviewState|, if it is not in that state.
|overview-state| - the target overview 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 [].
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.
Wait until overview has transitioned to |overviewState|, if it is not in that state. |overview-state| - the target overview 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 []. 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.
(wait-for-system-web-apps-install)
Waits for system web apps to complete the installation.
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.
Waits for system web apps to complete the installation. 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