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

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

Issue 402099: Add an accessibility API for events raised outside of the web content. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 10 years, 10 months 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
« no previous file with comments | « chrome/common/accessibility_events.cc ('k') | chrome/common/notification_type.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 [ 1 [
2 { 2 {
3 "namespace": "extension", 3 "namespace": "extension",
4 "unprivileged": true, 4 "unprivileged": true,
5 "types": [ 5 "types": [
6 { 6 {
7 "id": "MessageSender", 7 "id": "MessageSender",
8 "type": "object", 8 "type": "object",
9 "description": "An object containing information about the script contex t that sent a message or request.", 9 "description": "An object containing information about the script contex t that sent a message or request.",
10 "properties": { 10 "properties": {
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 "description": "Fired when a request is sent from another extension.", 196 "description": "Fired when a request is sent from another extension.",
197 "parameters": [ 197 "parameters": [
198 {"name": "request", "type": "any", "description": "The request sent by the calling script."}, 198 {"name": "request", "type": "any", "description": "The request sent by the calling script."},
199 {"name": "sender", "$ref": "MessageSender" }, 199 {"name": "sender", "$ref": "MessageSender" },
200 {"name": "sendResponse", "type": "function", "description": "Function to call when you have a response. The argument should be any JSON-ifiable object , or undefined if there is no response." } 200 {"name": "sendResponse", "type": "function", "description": "Function to call when you have a response. The argument should be any JSON-ifiable object , or undefined if there is no response." }
201 ] 201 ]
202 } 202 }
203 ] 203 ]
204 }, 204 },
205 { 205 {
206 "namespace": "experimental.accessibility",
207 "types": [
208 {
209 "id": "AccessibilityObject",
210 "type": "object",
211 "description": "Parent class for accessibility information about an obje ct.",
212 "properties": {
213 "type": {
214 "type": "string",
215 "description": "The type of this object, which determines the conten ts of 'details'.",
216 "enum": ["button", "checkbox", "combobox", "link", "radiobutton", "t ab", "textbox", "window"]
217 },
218 "name": {
219 "type": "string",
220 "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."
221 },
222 "details": {
223 "description": "Other details like the state, depending on the type of object.",
224 "optional": true,
225 "choices": [
226 { "$ref": "CheckboxDetails" },
227 { "$ref": "ComboBoxDetails" },
228 { "$ref": "RadioButtonDetails" },
229 { "$ref": "TabDetails" },
230 { "$ref": "TextBoxDetails" }
231 ]
232 }
233 }
234 },
235 {
236 "id": "CheckboxDetails",
237 "type": "object",
238 "description": "Information about the state of a checkbox.",
239 "properties": {
240 "isChecked": {"type": "boolean", "description": "True if this checkbox is checked."}
241 }
242 },
243 {
244 "id": "ComboBoxDetails",
245 "type": "object",
246 "description": "Information about the state of a combo box.",
247 "properties": {
248 "value": {"type": "string", "description": "The value of the combo box ."},
249 "itemCount": {"type": "integer", "description": "The number of items i n the combo box's list."},
250 "itemIndex": {"type": "integer", "description": "The 0-based index of the current value, or -1 if the user entered a value not from the list."}
251 }
252 },
253 {
254 "id": "RadioButtonDetails",
255 "type": "object",
256 "description": "Information about the state of a radio button.",
257 "properties": {
258 "isChecked": {"type": "boolean", "description": "True if this radio bu tton is checked."},
259 "itemCount": {"type": "integer", "description": "The number of radio b uttons in this group."},
260 "itemIndex": {"type": "integer", "description": "The 0-based index of this radio button in this group."}
261 }
262 },
263 {
264 "id": "TabDetails",
265 "type": "object",
266 "description": "Additional accessibility information about a tab.",
267 "properties": {
268 "itemCount": {"type": "integer", "description": "The number of tabs in this group."},
269 "itemIndex": {"type": "integer", "description": "The 0-based index of this tab in this group."}
270 }
271 },
272 {
273 "id": "TextBoxDetails",
274 "type": "object",
275 "description": "Information about the state of a text box.",
276 "properties": {
277 "value": {"type": "string", "description": "The value of the text box - the entered text."},
278 "isPassword": {"type": "boolean", "description": "True if this control contains password text whose contents should be obscured."},
279 "selectionStart": {"type": "integer", "description": "The index of the character where the selection starts, if this control contains editable text."} ,
280 "selectionEnd": {"type": "integer", "description": "The index of the c haracter where the selection ends, if this control contains editable text."}
281 }
282 }
283 ],
284 "functions": [
285 {
286 "name": "setAccessibilityEnabled",
287 "type": "function",
288 "description": "Enable or disable the accessibility extension api. This must be set to true before event listeners or getFocusedControl will work.",
289 "parameters": [
290 {
291 "type": "boolean",
292 "name": "enabled",
293 "description": "True if accessibility support should be enabled."
294 }
295 ]
296 },
297 {
298 "name": "getFocusedControl",
299 "type": "function",
300 "description": "Get information about the currently focused control.",
301 "parameters": [
302 {
303 "type": "function",
304 "name": "callback",
305 "parameters": [
306 {
307 "name": "control",
308 "description": "Details of the currently focused control, or nul l if nothing is focused.",
309 "choices": [
310 { "$ref": "AccessibilityObject" },
311 { "type": "null" }
312 ]
313 }
314 ]
315 }
316 ]
317 }
318 ],
319 "events": [
320 {
321 "name": "onWindowOpened",
322 "type": "function",
323 "description": "Fired when a window is opened.",
324 "parameters": [
325 {
326 "$ref": "AccessibilityObject",
327 "name": "window",
328 "description": "Information about the window that was opened."
329 }
330 ]
331 },
332 {
333 "name": "onWindowClosed",
334 "type": "function",
335 "description": "Fired when a window is closed.",
336 "parameters": [
337 {
338 "$ref": "AccessibilityObject",
339 "name": "window",
340 "description": "Information about the window that was closed."
341 }
342 ]
343 },
344 {
345 "name": "onControlFocused",
346 "type": "function",
347 "description": "Fired when a control is focused.",
348 "parameters": [
349 {
350 "$ref": "AccessibilityObject",
351 "name": "control",
352 "description": "Details of the control that was focused."
353 }
354 ]
355 },
356 {
357 "name": "onControlAction",
358 "type": "function",
359 "description": "Fired when a control's action is taken, like pressing a button or toggling a checkbox.",
360 "parameters": [
361 {
362 "$ref": "AccessibilityObject",
363 "name": "control",
364 "description": "Details of the control whose action was taken."
365 }
366 ]
367 },
368 {
369 "name": "onTextChanged",
370 "type": "function",
371 "description": "Fired when text changes in an editable text control.",
372 "parameters": [
373 {
374 "$ref": "AccessibilityObject",
375 "name": "control",
376 "description": "Details of the control where the text changed."
377 }
378 ]
379 }
380 ]
381 },
382 {
206 "namespace": "experimental.extension", 383 "namespace": "experimental.extension",
207 "nodoc": true, 384 "nodoc": true,
208 "types": [], 385 "types": [],
209 "functions": [ 386 "functions": [
210 { 387 {
211 "name": "getPopupView", 388 "name": "getPopupView",
212 "type": "function", 389 "type": "function",
213 "description": "Returns a reference to the window object of the popup vi ew. Returns undefined if no popup presently shown.", 390 "description": "Returns a reference to the window object of the popup vi ew. Returns undefined if no popup presently shown.",
214 "parameters": [], 391 "parameters": [],
215 "returns": { 392 "returns": {
(...skipping 1734 matching lines...) Expand 10 before | Expand all | Expand 10 after
1950 "type": "function", 2127 "type": "function",
1951 "description": "Logs a message during internal unit testing.", 2128 "description": "Logs a message during internal unit testing.",
1952 "parameters": [ 2129 "parameters": [
1953 {"type": "string", "name": "message"} 2130 {"type": "string", "name": "message"}
1954 ] 2131 ]
1955 } 2132 }
1956 ], 2133 ],
1957 "events": [] 2134 "events": []
1958 } 2135 }
1959 ] 2136 ]
OLDNEW
« no previous file with comments | « chrome/common/accessibility_events.cc ('k') | chrome/common/notification_type.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698