Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / chrome / common / extensions / api / accessibility_private.json
blob773a7f9af89d4ce7b9f9f004a858e73c149d8490
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
3 // found in the LICENSE file.
6   {
7     "namespace": "accessibilityPrivate",
8     "compiler_options": {
9       "implemented_in": "chrome/browser/accessibility/accessibility_extension_api.h"
10     },
11     "description": "none",
12     "types": [
13       {
14         "id": "AlertInfo",
15         "type": "object",
16         "description": "Information about an alert",
17         "properties": {
18           "message": {
19             "type": "string",
20             "description": "The message the alert is showing."
21           }
22         }
23       },
24       {
25         "id": "ScreenRect",
26         "type": "object",
27         "description": "Bounding rectangle in global screen coordinates.",
28         "properties": {
29           "left": {"type": "integer", "description": "Left coordinate in global screen coordinates."},
30           "top": {"type": "integer", "description": "Top coordinate in global screen coordinates."},
31           "width": {"type": "integer", "description": "Width in pixels."},
32           "height": {"type": "integer", "description": "Height in pixels."}
33         }
34       }
35     ],
36     "functions": [
37       {
38         "name": "setNativeAccessibilityEnabled",
39         "type": "function",
40         "description": "Enables or disables native accessibility support. Once disabled, it is up to the calling extension to provide accessibility for web contents.",
41         "parameters": [
42           {
43             "type": "boolean",
44             "name": "enabled",
45             "description": "True if native accessibility support should be enabled."
46           }
47         ]
48       },
49       {
50         "name": "setFocusRing",
51         "type": "function",
52         "description": "Set the bounds of the accessibility focus ring.",
53         "parameters": [
54           {
55             "name": "rects",
56             "type": "array",
57             "items": { "$ref": "ScreenRect" },
58             "description": "Array of rectangles to draw the accessibility focus ring around."
59           }
60         ]
61       }
62     ],
63     "events": [
64       {
65         "name": "onIntroduceChromeVox",
66         "type": "function",
67         "description": "Fired whenever ChromeVox should output introduction."
68       }
69     ]
70   }