| 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 "nodoc": true, | 8 "nodoc": true, |
| 9 "types": [ | 9 "types": [ |
| 10 { | 10 { |
| 11 "id": "AccessibilityObject", | 11 "id": "AccessibilityObject", |
| 12 "type": "object", | 12 "type": "object", |
| 13 "description": "Parent class for accessibility information about an obje
ct.", | 13 "description": "Parent class for accessibility information about an obje
ct.", |
| 14 "properties": { | 14 "properties": { |
| 15 "type": { | 15 "type": { |
| 16 "type": "string", | 16 "type": "string", |
| 17 "description": "The type of this object, which determines the conten
ts of 'details'.", | 17 "description": "The type of this object, which determines the conten
ts of 'details'.", |
| 18 "enum": ["button", "checkbox", "combobox", "link", "menu", "menuitem
", "radiobutton", "tab", "textbox", "window"] | 18 "enum": ["button", "checkbox", "combobox", "link", "menu", "menuitem
", "radiobutton", "slider", "tab", "textbox", "window"] |
| 19 }, | 19 }, |
| 20 "name": { | 20 "name": { |
| 21 "type": "string", | 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." | 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 }, | 23 }, |
| 24 "context": { | 24 "context": { |
| 25 "type": "string", | 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.", | 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 | 27 "optional": true |
| 28 }, | 28 }, |
| 29 "details": { | 29 "details": { |
| 30 "description": "Other details like the state, depending on the type
of object.", | 30 "description": "Other details like the state, depending on the type
of object.", |
| 31 "optional": true, | 31 "optional": true, |
| 32 "choices": [ | 32 "choices": [ |
| 33 { "$ref": "CheckboxDetails" }, | 33 { "$ref": "CheckboxDetails" }, |
| 34 { "$ref": "ComboBoxDetails" }, | 34 { "$ref": "ComboBoxDetails" }, |
| 35 { "$ref": "MenuDetails" }, | 35 { "$ref": "MenuDetails" }, |
| 36 { "$ref": "MenuItemDetails" }, | 36 { "$ref": "MenuItemDetails" }, |
| 37 { "$ref": "RadioButtonDetails" }, | 37 { "$ref": "RadioButtonDetails" }, |
| 38 { "$ref": "SliderDetails" }, |
| 38 { "$ref": "TabDetails" }, | 39 { "$ref": "TabDetails" }, |
| 39 { "$ref": "TextBoxDetails" } | 40 { "$ref": "TextBoxDetails" } |
| 40 ] | 41 ] |
| 41 } | 42 } |
| 42 } | 43 } |
| 43 }, | 44 }, |
| 44 { | 45 { |
| 45 "id": "CheckboxDetails", | 46 "id": "CheckboxDetails", |
| 46 "type": "object", | 47 "type": "object", |
| 47 "description": "Information about the state of a checkbox.", | 48 "description": "Information about the state of a checkbox.", |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 "id": "RadioButtonDetails", | 91 "id": "RadioButtonDetails", |
| 91 "type": "object", | 92 "type": "object", |
| 92 "description": "Information about the state of a radio button.", | 93 "description": "Information about the state of a radio button.", |
| 93 "properties": { | 94 "properties": { |
| 94 "isChecked": {"type": "boolean", "description": "True if this radio bu
tton is checked."}, | 95 "isChecked": {"type": "boolean", "description": "True if this radio bu
tton is checked."}, |
| 95 "itemCount": {"type": "integer", "description": "The number of radio b
uttons in this group."}, | 96 "itemCount": {"type": "integer", "description": "The number of radio b
uttons in this group."}, |
| 96 "itemIndex": {"type": "integer", "description": "The 0-based index of
this radio button in this group."} | 97 "itemIndex": {"type": "integer", "description": "The 0-based index of
this radio button in this group."} |
| 97 } | 98 } |
| 98 }, | 99 }, |
| 99 { | 100 { |
| 101 "id": "SliderDetails", |
| 102 "type": "object", |
| 103 "description": "Information about the state of a slider.", |
| 104 "properties": { |
| 105 "stringValue": {"type": "string", "description": "The value of the sli
der as a string."} |
| 106 } |
| 107 }, |
| 108 { |
| 100 "id": "TabDetails", | 109 "id": "TabDetails", |
| 101 "type": "object", | 110 "type": "object", |
| 102 "description": "Additional accessibility information about a tab.", | 111 "description": "Additional accessibility information about a tab.", |
| 103 "properties": { | 112 "properties": { |
| 104 "itemCount": {"type": "integer", "description": "The number of tabs in
this group."}, | 113 "itemCount": {"type": "integer", "description": "The number of tabs in
this group."}, |
| 105 "itemIndex": {"type": "integer", "description": "The 0-based index of
this tab in this group."} | 114 "itemIndex": {"type": "integer", "description": "The 0-based index of
this tab in this group."} |
| 106 } | 115 } |
| 107 }, | 116 }, |
| 108 { | 117 { |
| 109 "id": "TextBoxDetails", | 118 "id": "TextBoxDetails", |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 { | 275 { |
| 267 "$ref": "AccessibilityObject", | 276 "$ref": "AccessibilityObject", |
| 268 "name": "menu", | 277 "name": "menu", |
| 269 "description": "Information about the menu that was closed." | 278 "description": "Information about the menu that was closed." |
| 270 } | 279 } |
| 271 ] | 280 ] |
| 272 } | 281 } |
| 273 ] | 282 ] |
| 274 } | 283 } |
| 275 ] | 284 ] |
| OLD | NEW |