chrome.accessibilityFeatures

Description: Use the chrome.accessibilityFeatures API to manage Chrome's accessibility features. This API relies on the ChromeSetting prototype of the type API for getting and setting individual accessibility features. In order to get feature states the extension must request accessibilityFeatures.read permission. For modifying feature state, the extension needs accessibilityFeatures.modify permission. Note that accessibilityFeatures.modify does not imply accessibilityFeatures.read permission.
Availability: Since Chrome 37.
Permissions: "accessibilityFeatures.read"

Important: This API works only on Chrome OS.

Summary

Properties
spokenFeedback
largeCursor
stickyKeys
highContrast
screenMagnifier
autoclick
virtualKeyboard
caretHighlight
cursorHighlight
focusHighlight
selectToSpeak
switchAccess
animationPolicy

Properties

object chrome.accessibilityFeatures.spokenFeedback

ChromeOS only.

Spoken feedback (text-to-speech). The value indicates whether the feature is enabled or not. get() requires accessibilityFeatures.read permission. set() and clear() require accessibilityFeatures.modify permission.

get

spokenFeedback.get(object details, function callback)

Gets the value of a setting.

Functions
Parameters
object details

Which setting to consider.

boolean (optional) incognito

Whether to return the value that applies to the incognito session (default false).

function callback

The callback parameter should be a function that looks like this:

function(object details) {...};
object details

Details of the currently effective value.

any value

The value of the setting.

enum of "not_controllable", "controlled_by_other_extensions", "controllable_by_this_extension", or "controlled_by_this_extension" levelOfControl

The level of control of the setting.

boolean (optional) incognitoSpecific

Whether the effective value is specific to the incognito session.
This property will only be present if the incognito property in the details parameter of get() was true.

set

spokenFeedback.set(object details, function callback)

Sets the value of a setting.

Parameters
object details

Which setting to change.

any value

The value of the setting.
Note that every setting has a specific value type, which is described together with the setting. An extension should not set a value of a different type.

enum of "regular", "regular_only", "incognito_persistent", or "incognito_session_only" (optional) scope

Where to set the setting (default: regular).

function (optional) callback

Called at the completion of the set operation.

If you specify the callback parameter, it should be a function that looks like this:

function() {...};

clear

spokenFeedback.clear(object details, function callback)

Clears the setting, restoring any default value.

Parameters
object details

Which setting to clear.

enum of "regular", "regular_only", "incognito_persistent", or "incognito_session_only" (optional) scope

Where to clear the setting (default: regular).

function (optional) callback

Called at the completion of the clear operation.

If you specify the callback parameter, it should be a function that looks like this:

function() {...};
object chrome.accessibilityFeatures.largeCursor

ChromeOS only.

Enlarged cursor. The value indicates whether the feature is enabled or not. get() requires accessibilityFeatures.read permission. set() and clear() require accessibilityFeatures.modify permission.

get

largeCursor.get(object details, function callback)

Gets the value of a setting.

Functions
Parameters
object details

Which setting to consider.

boolean (optional) incognito

Whether to return the value that applies to the incognito session (default false).

function callback

The callback parameter should be a function that looks like this:

function(object details) {...};
object details

Details of the currently effective value.

any value

The value of the setting.

enum of "not_controllable", "controlled_by_other_extensions", "controllable_by_this_extension", or "controlled_by_this_extension" levelOfControl

The level of control of the setting.

boolean (optional) incognitoSpecific

Whether the effective value is specific to the incognito session.
This property will only be present if the incognito property in the details parameter of get() was true.

set

largeCursor.set(object details, function callback)

Sets the value of a setting.

Parameters
object details

Which setting to change.

any value

The value of the setting.
Note that every setting has a specific value type, which is described together with the setting. An extension should not set a value of a different type.

enum of "regular", "regular_only", "incognito_persistent", or "incognito_session_only" (optional) scope

Where to set the setting (default: regular).

function (optional) callback

Called at the completion of the set operation.

If you specify the callback parameter, it should be a function that looks like this:

function() {...};

clear

largeCursor.clear(object details, function callback)

Clears the setting, restoring any default value.

Parameters
object details

Which setting to clear.

enum of "regular", "regular_only", "incognito_persistent", or "incognito_session_only" (optional) scope

Where to clear the setting (default: regular).

function (optional) callback

Called at the completion of the clear operation.

If you specify the callback parameter, it should be a function that looks like this:

function() {...};
object chrome.accessibilityFeatures.stickyKeys

ChromeOS only.

Sticky modifier keys (like shift or alt). The value indicates whether the feature is enabled or not. get() requires accessibilityFeatures.read permission. set() and clear() require accessibilityFeatures.modify permission.

get

stickyKeys.get(object details, function callback)

Gets the value of a setting.

Functions
Parameters
object details

Which setting to consider.

boolean (optional) incognito

Whether to return the value that applies to the incognito session (default false).

function callback

The callback parameter should be a function that looks like this:

function(object details) {...};
object details

Details of the currently effective value.

any value

The value of the setting.

enum of "not_controllable", "controlled_by_other_extensions", "controllable_by_this_extension", or "controlled_by_this_extension" levelOfControl

The level of control of the setting.

boolean (optional) incognitoSpecific

Whether the effective value is specific to the incognito session.
This property will only be present if the incognito property in the details parameter of get() was true.