Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(80)

Side by Side Diff: chrome/common/extensions/api/experimental_accessibility.json

Issue 79543010: Added basic accessibility to TreeView. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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": { 8 "compiler_options": {
9 "implemented_in": "chrome/browser/accessibility/accessibility_extension_ap i.h" 9 "implemented_in": "chrome/browser/accessibility/accessibility_extension_ap i.h"
10 }, 10 },
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 "type": "object", 87 "type": "object",
88 "description": "Information about the state of a text box.", 88 "description": "Information about the state of a text box.",
89 "properties": { 89 "properties": {
90 "value": {"type": "string", "description": "The value of the text box - the entered text."}, 90 "value": {"type": "string", "description": "The value of the text box - the entered text."},
91 "isPassword": {"type": "boolean", "description": "True if this control contains password text whose contents should be obscured."}, 91 "isPassword": {"type": "boolean", "description": "True if this control contains password text whose contents should be obscured."},
92 "selectionStart": {"type": "integer", "description": "The index of the character where the selection starts, if this control contains editable text."} , 92 "selectionStart": {"type": "integer", "description": "The index of the character where the selection starts, if this control contains editable text."} ,
93 "selectionEnd": {"type": "integer", "description": "The index of the c haracter where the selection ends, if this control contains editable text."} 93 "selectionEnd": {"type": "integer", "description": "The index of the c haracter where the selection ends, if this control contains editable text."}
94 } 94 }
95 }, 95 },
96 { 96 {
97 "id": "TreeDetails",
98 "type": "object",
99 "description": "Information about the state of a tree control.",
100 "properties": {
101 }
102 },
103 {
104 "id": "TreeItemDetails",
105 "type": "object",
106 "description": "Information about a selected tree control item.",
107 "properties": {
108 "itemDepth": {"type": "integer", "description": "The 0-based depth of this tree item."},
109 "itemCount": {"type": "integer", "description": "The number of items i n the current depth."},
110 "itemIndex": {"type": "integer", "description": "The 0-based index of this tree item at the current tree depth."},
111 "childrenCount": {"type": "integer", "description": "The number of chi ldren of the current tree item."},
112 "isItemExpanded": {"type": "boolean", "description": "True if this if this tree item is expanded."}
113 }
114 },
115 {
97 "id": "AlertInfo", 116 "id": "AlertInfo",
98 "type": "object", 117 "type": "object",
99 "description": "Information about an alert", 118 "description": "Information about an alert",
100 "properties": { 119 "properties": {
101 "message": { 120 "message": {
102 "type": "string", 121 "type": "string",
103 "description": "The message the alert is showing." 122 "description": "The message the alert is showing."
104 } 123 }
105 } 124 }
106 }, 125 },
107 { 126 {
108 "id": "AccessibilityObject", 127 "id": "AccessibilityObject",
109 "type": "object", 128 "type": "object",
110 "description": "Parent class for accessibility information about an obje ct.", 129 "description": "Parent class for accessibility information about an obje ct.",
111 "properties": { 130 "properties": {
112 "type": { 131 "type": {
113 "type": "string", 132 "type": "string",
114 "description": "The type of this object, which determines the conten ts of 'details'.", 133 "description": "The type of this object, which determines the conten ts of 'details'.",
115 "enum": ["alert", "button", "checkbox", "combobox", "link", "menu", "menuitem", "radiobutton", "slider", "tab", "textbox", "window"] 134 "enum": ["alert", "button", "checkbox", "combobox", "link", "menu", "menuitem", "radiobutton", "slider", "tab", "textbox", "tree", "treeitem", "wind ow"]
116 }, 135 },
117 "name": { 136 "name": {
118 "type": "string", 137 "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." 138 "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 }, 139 },
121 "context": { 140 "context": {
122 "type": "string", 141 "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.", 142 "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 143 "optional": true
125 }, 144 },
126 "details": { 145 "details": {
127 "description": "Other details like the state, depending on the type of object.", 146 "description": "Other details like the state, depending on the type of object.",
128 "optional": true, 147 "optional": true,
129 "choices": [ 148 "choices": [
130 { "$ref": "CheckboxDetails" }, 149 { "$ref": "CheckboxDetails" },
131 { "$ref": "ComboBoxDetails" }, 150 { "$ref": "ComboBoxDetails" },
132 { "$ref": "MenuDetails" }, 151 { "$ref": "MenuDetails" },
133 { "$ref": "MenuItemDetails" }, 152 { "$ref": "MenuItemDetails" },
134 { "$ref": "RadioButtonDetails" }, 153 { "$ref": "RadioButtonDetails" },
135 { "$ref": "SliderDetails" }, 154 { "$ref": "SliderDetails" },
136 { "$ref": "TabDetails" }, 155 { "$ref": "TabDetails" },
137 { "$ref": "TextBoxDetails" } 156 { "$ref": "TextBoxDetails" },
157 { "$ref": "TreeDetails" },
158 { "$ref": "TreeItemDetails" }
138 ] 159 ]
139 } 160 }
140 } 161 }
141 } 162 }
142 ], 163 ],
143 "functions": [ 164 "functions": [
144 { 165 {
145 "name": "setAccessibilityEnabled", 166 "name": "setAccessibilityEnabled",
146 "type": "function", 167 "type": "function",
147 "description": "Enables or disables the accessibility extension api. Thi s must be set to true before event listeners or getFocusedControl will work.", 168 "description": "Enables or disables the accessibility extension api. Thi s must be set to true before event listeners or getFocusedControl will work.",
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 { 328 {
308 "type": "boolean", 329 "type": "boolean",
309 "name": "makeAnnouncements", 330 "name": "makeAnnouncements",
310 "description": "Whether to make introductory announcements." 331 "description": "Whether to make introductory announcements."
311 } 332 }
312 ] 333 ]
313 } 334 }
314 ] 335 ]
315 } 336 }
316 ] 337 ]
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/accessibility/accessibility_event_router_views.cc ('k') | ui/views/controls/tree/tree_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698