OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 [ | 5 [ |
6 { | 6 { |
7 "namespace": "accessibilityFeatures", | 7 "namespace": "accessibilityFeatures", |
8 "platforms": ["chromeos"], | |
9 "description": "Use the <code>chrome.accessibilityFeatures</code> API to man
age Chrome's accessibility features. This API relies on the <a href='types#Chrom
eSetting'>ChromeSetting prototype of the type API</a> for getting and setting in
dividual accessibility features. In order to get feature states the extension mu
st request <code>accessibilityFeatures.read</code> permission. For modifying fea
ture state, the extension needs <code>accessibilityFeatures.modify</code> permis
sion. Note that <code>accessibilityFeatures.modify</code> does not imply <code>a
ccessibilityFeatures.read</code> permission.", | 8 "description": "Use the <code>chrome.accessibilityFeatures</code> API to man
age Chrome's accessibility features. This API relies on the <a href='types#Chrom
eSetting'>ChromeSetting prototype of the type API</a> for getting and setting in
dividual accessibility features. In order to get feature states the extension mu
st request <code>accessibilityFeatures.read</code> permission. For modifying fea
ture state, the extension needs <code>accessibilityFeatures.modify</code> permis
sion. Note that <code>accessibilityFeatures.modify</code> does not imply <code>a
ccessibilityFeatures.read</code> permission.", |
10 "properties": { | 9 "properties": { |
11 "spokenFeedback": { | 10 "spokenFeedback": { |
12 "$ref": "types.ChromeSetting", | 11 "$ref": "types.ChromeSetting", |
13 "description": "Spoken feedback (text-to-speech). The value indicates wh
ether the feature is enabled or not. <code>get()</code> requires <code>accessibi
lityFeatures.read</code> permission. <code>set()</code> and <code>clear()</code>
require <code>accessibilityFeatures.modify</code> permission.", | 12 "description": "<p><strong>ChromeOS only.</strong></p><p>Spoken feedback
(text-to-speech). The value indicates whether the feature is enabled or not. <c
ode>get()</code> requires <code>accessibilityFeatures.read</code> permission. <c
ode>set()</code> and <code>clear()</code> require <code>accessibilityFeatures.mo
dify</code> permission.</p>", |
14 "value": ["spokenFeedback", {"type": "boolean"}] | 13 "value": ["spokenFeedback", {"type": "boolean"}] |
15 }, | 14 }, |
16 "largeCursor": { | 15 "largeCursor": { |
17 "$ref": "types.ChromeSetting", | 16 "$ref": "types.ChromeSetting", |
18 "description": "Enlarged cursor. The value indicates whether the feature
is enabled or not. <code>get()</code> requires <code>accessibilityFeatures.read
</code> permission. <code>set()</code> and <code>clear()</code> require <code>ac
cessibilityFeatures.modify</code> permission.", | 17 "description": "<p><strong>ChromeOS only.</strong></p><p>Enlarged cursor
. The value indicates whether the feature is enabled or not. <code>get()</code>
requires <code>accessibilityFeatures.read</code> permission. <code>set()</code>
and <code>clear()</code> require <code>accessibilityFeatures.modify</code> permi
ssion.</p>", |
19 "value": ["largeCursor", {"type": "boolean"}] | 18 "value": ["largeCursor", {"type": "boolean"}] |
20 }, | 19 }, |
21 "stickyKeys": { | 20 "stickyKeys": { |
22 "$ref": "types.ChromeSetting", | 21 "$ref": "types.ChromeSetting", |
23 "description": "Sticky modifier keys (like shift or alt). The value indi
cates whether the feature is enabled or not. <code>get()</code> requires <code>a
ccessibilityFeatures.read</code> permission. <code>set()</code> and <code>clear(
)</code> require <code>accessibilityFeatures.modify</code> permission.", | 22 "description": "<p><strong>ChromeOS only.</strong></p><p>Sticky modifier
keys (like shift or alt). The value indicates whether the feature is enabled or
not. <code>get()</code> requires <code>accessibilityFeatures.read</code> permis
sion. <code>set()</code> and <code>clear()</code> require <code>accessibilityFea
tures.modify</code> permission.</p>", |
24 "value": ["stickyKeys", {"type": "boolean"}] | 23 "value": ["stickyKeys", {"type": "boolean"}] |
25 }, | 24 }, |
26 "highContrast": { | 25 "highContrast": { |
27 "$ref": "types.ChromeSetting", | 26 "$ref": "types.ChromeSetting", |
28 "description": "High contrast rendering mode. The value indicates whethe
r the feature is enabled or not. <code>get()</code> requires <code>accessibility
Features.read</code> permission. <code>set()</code> and <code>clear()</code> req
uire <code>accessibilityFeatures.modify</code> permission.", | 27 "description": "<p><strong>ChromeOS only.</strong></p><p>High contrast r
endering mode. The value indicates whether the feature is enabled or not. <code>
get()</code> requires <code>accessibilityFeatures.read</code> permission. <code>
set()</code> and <code>clear()</code> require <code>accessibilityFeatures.modify
</code> permission.</p>", |
29 "value": ["highContrast", {"type": "boolean"}] | 28 "value": ["highContrast", {"type": "boolean"}] |
30 }, | 29 }, |
31 "screenMagnifier": { | 30 "screenMagnifier": { |
32 "$ref": "types.ChromeSetting", | 31 "$ref": "types.ChromeSetting", |
33 "description": "Full screen magnification. The value indicates whether t
he feature is enabled or not. <code>get()</code> requires <code>accessibilityFea
tures.read</code> permission. <code>set()</code> and <code>clear()</code> requir
e <code>accessibilityFeatures.modify</code> permission.", | 32 "description": "<p><strong>ChromeOS only.</strong></p><p>Full screen mag
nification. The value indicates whether the feature is enabled or not. <code>get
()</code> requires <code>accessibilityFeatures.read</code> permission. <code>set
()</code> and <code>clear()</code> require <code>accessibilityFeatures.modify</c
ode> permission.</p>", |
34 "value": ["screenMagnifier", {"type": "boolean"}] | 33 "value": ["screenMagnifier", {"type": "boolean"}] |
35 }, | 34 }, |
36 "autoclick": { | 35 "autoclick": { |
37 "$ref": "types.ChromeSetting", | 36 "$ref": "types.ChromeSetting", |
38 "description":"Auto mouse click after mouse stops moving. The value indi
cates whether the feature is enabled or not. <code>get()</code> requires <code>a
ccessibilityFeatures.read</code> permission. <code>set()</code> and <code>clear(
)</code> require <code>accessibilityFeatures.modify</code> permission.", | 37 "description":"<p><strong>ChromeOS only.</strong></p><p>Auto mouse click
after mouse stops moving. The value indicates whether the feature is enabled or
not. <code>get()</code> requires <code>accessibilityFeatures.read</code> permis
sion. <code>set()</code> and <code>clear()</code> require <code>accessibilityFea
tures.modify</code> permission.</p>", |
39 "value": ["autoclick", {"type": "boolean"}] | 38 "value": ["autoclick", {"type": "boolean"}] |
40 }, | 39 }, |
41 "virtualKeyboard": { | 40 "virtualKeyboard": { |
42 "$ref": "types.ChromeSetting", | 41 "$ref": "types.ChromeSetting", |
43 "description": "Virtual on-screen keyboard. The value indicates whether
the feature is enabled or not. <code>get()</code> requires <code>accessibilityFe
atures.read</code> permission. <code>set()</code> and <code>clear()</code> requi
re <code>accessibilityFeatures.modify</code> permission.", | 42 "description": "<p><strong>ChromeOS only.</strong></p><p>Virtual on-scre
en keyboard. The value indicates whether the feature is enabled or not. <code>ge
t()</code> requires <code>accessibilityFeatures.read</code> permission. <code>se
t()</code> and <code>clear()</code> require <code>accessibilityFeatures.modify</
code> permission.</p>", |
44 "value": ["virtualKeyboard", {"type": "boolean"}] | 43 "value": ["virtualKeyboard", {"type": "boolean"}] |
| 44 }, |
| 45 "animationPolicy": { |
| 46 "$ref": "types.ChromeSetting", |
| 47 "description": "<code>get()</code> requires <code>accessibilityFeatures.
read</code> permission. <code>set()</code> and <code>clear()</code> require <cod
e>accessibilityFeatures.modify</code> permission.", |
| 48 "value": [ |
| 49 "animationPolicy", { |
| 50 "type": "string", |
| 51 "enum": [{ |
| 52 "description": "Images are allowed to animate.", |
| 53 "name": "allowed" |
| 54 }, { |
| 55 "description": "Images are animated once.", |
| 56 "name": "once" |
| 57 }, { |
| 58 "description": "Images are not animated.", |
| 59 "name": "none" |
| 60 }] |
| 61 } |
| 62 ] |
45 } | 63 } |
46 } | 64 } |
47 } | 65 } |
48 ] | 66 ] |
OLD | NEW |