OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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": "experimental.accessibility", | 7 "namespace": "experimental.accessibility", |
| 8 "compiler_options": { |
| 9 "implemented_in": "chrome/browser/accessibility/accessibility_extension_ap
i.h" |
| 10 }, |
8 "nodoc": true, | 11 "nodoc": true, |
9 "types": [ | 12 "types": [ |
10 { | 13 { |
11 "id": "AccessibilityObject", | |
12 "type": "object", | |
13 "description": "Parent class for accessibility information about an obje
ct.", | |
14 "properties": { | |
15 "type": { | |
16 "type": "string", | |
17 "description": "The type of this object, which determines the conten
ts of 'details'.", | |
18 "enum": ["button", "checkbox", "combobox", "link", "menu", "menuitem
", "radiobutton", "slider", "tab", "textbox", "window"] | |
19 }, | |
20 "name": { | |
21 "type": "string", | |
22 "description": "The localized name of the object, like OK or Passwor
d. Do not rely on an exact string match because the text will be in the user's l
anguage and may change in the future." | |
23 }, | |
24 "context": { | |
25 "type": "string", | |
26 "description": "The localized name of the context for the object, li
ke the name of the surrounding toolbar or group of controls.", | |
27 "optional": true | |
28 }, | |
29 "details": { | |
30 "description": "Other details like the state, depending on the type
of object.", | |
31 "optional": true, | |
32 "choices": [ | |
33 { "$ref": "CheckboxDetails" }, | |
34 { "$ref": "ComboBoxDetails" }, | |
35 { "$ref": "MenuDetails" }, | |
36 { "$ref": "MenuItemDetails" }, | |
37 { "$ref": "RadioButtonDetails" }, | |
38 { "$ref": "SliderDetails" }, | |
39 { "$ref": "TabDetails" }, | |
40 { "$ref": "TextBoxDetails" } | |
41 ] | |
42 } | |
43 } | |
44 }, | |
45 { | |
46 "id": "CheckboxDetails", | 14 "id": "CheckboxDetails", |
47 "type": "object", | 15 "type": "object", |
48 "description": "Information about the state of a checkbox.", | 16 "description": "Information about the state of a checkbox.", |
49 "properties": { | 17 "properties": { |
50 "isChecked": {"type": "boolean", "description": "True if this checkbox
is checked."} | 18 "isChecked": {"type": "boolean", "description": "True if this checkbox
is checked."} |
51 } | 19 } |
52 }, | 20 }, |
53 { | 21 { |
54 "id": "ComboBoxDetails", | 22 "id": "ComboBoxDetails", |
55 "type": "object", | 23 "type": "object", |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 { | 96 { |
129 "id": "AlertInfo", | 97 "id": "AlertInfo", |
130 "type": "object", | 98 "type": "object", |
131 "description": "Information about an alert", | 99 "description": "Information about an alert", |
132 "properties": { | 100 "properties": { |
133 "message": { | 101 "message": { |
134 "type": "string", | 102 "type": "string", |
135 "description": "The message the alert is showing." | 103 "description": "The message the alert is showing." |
136 } | 104 } |
137 } | 105 } |
| 106 }, |
| 107 { |
| 108 "id": "AccessibilityObject", |
| 109 "type": "object", |
| 110 "description": "Parent class for accessibility information about an obje
ct.", |
| 111 "properties": { |
| 112 "type": { |
| 113 "type": "string", |
| 114 "description": "The type of this object, which determines the conten
ts of 'details'.", |
| 115 "enum": ["button", "checkbox", "combobox", "link", "menu", "menuitem
", "radiobutton", "slider", "tab", "textbox", "window"] |
| 116 }, |
| 117 "name": { |
| 118 "type": "string", |
| 119 "description": "The localized name of the object, like OK or Passwor
d. Do not rely on an exact string match because the text will be in the user's l
anguage and may change in the future." |
| 120 }, |
| 121 "context": { |
| 122 "type": "string", |
| 123 "description": "The localized name of the context for the object, li
ke the name of the surrounding toolbar or group of controls.", |
| 124 "optional": true |
| 125 }, |
| 126 "details": { |
| 127 "description": "Other details like the state, depending on the type
of object.", |
| 128 "optional": true, |
| 129 "choices": [ |
| 130 { "$ref": "CheckboxDetails" }, |
| 131 { "$ref": "ComboBoxDetails" }, |
| 132 { "$ref": "MenuDetails" }, |
| 133 { "$ref": "MenuItemDetails" }, |
| 134 { "$ref": "RadioButtonDetails" }, |
| 135 { "$ref": "SliderDetails" }, |
| 136 { "$ref": "TabDetails" }, |
| 137 { "$ref": "TextBoxDetails" } |
| 138 ] |
| 139 } |
| 140 } |
138 } | 141 } |
139 ], | 142 ], |
140 "functions": [ | 143 "functions": [ |
141 { | 144 { |
142 "name": "setAccessibilityEnabled", | 145 "name": "setAccessibilityEnabled", |
143 "type": "function", | 146 "type": "function", |
144 "description": "Enables or disables the accessibility extension api. Thi
s must be set to true before event listeners or getFocusedControl will work.", | 147 "description": "Enables or disables the accessibility extension api. Thi
s must be set to true before event listeners or getFocusedControl will work.", |
145 "parameters": [ | 148 "parameters": [ |
146 { | 149 { |
147 "type": "boolean", | 150 "type": "boolean", |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
275 { | 278 { |
276 "$ref": "AccessibilityObject", | 279 "$ref": "AccessibilityObject", |
277 "name": "menu", | 280 "name": "menu", |
278 "description": "Information about the menu that was closed." | 281 "description": "Information about the menu that was closed." |
279 } | 282 } |
280 ] | 283 ] |
281 } | 284 } |
282 ] | 285 ] |
283 } | 286 } |
284 ] | 287 ] |
OLD | NEW |