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

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

Issue 1953613002: Make touch accessibility gestures work with ChromeVox Next (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 7 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 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": "accessibilityPrivate", 7 "namespace": "accessibilityPrivate",
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 13 matching lines...) Expand all
24 { 24 {
25 "id": "ScreenRect", 25 "id": "ScreenRect",
26 "type": "object", 26 "type": "object",
27 "description": "Bounding rectangle in global screen coordinates.", 27 "description": "Bounding rectangle in global screen coordinates.",
28 "properties": { 28 "properties": {
29 "left": {"type": "integer", "description": "Left coordinate in global screen coordinates."}, 29 "left": {"type": "integer", "description": "Left coordinate in global screen coordinates."},
30 "top": {"type": "integer", "description": "Top coordinate in global sc reen coordinates."}, 30 "top": {"type": "integer", "description": "Top coordinate in global sc reen coordinates."},
31 "width": {"type": "integer", "description": "Width in pixels."}, 31 "width": {"type": "integer", "description": "Width in pixels."},
32 "height": {"type": "integer", "description": "Height in pixels."} 32 "height": {"type": "integer", "description": "Height in pixels."}
33 } 33 }
34 },
35 {
36 "id": "Gesture",
37 "type": "string",
38 "enum": [ "doubleTap", "swipeLeft1", "swipeUp1", "swipeRight1", "swipeDo wn1", "swipeLeft2", "swipeUp2", "swipeRight2", "swipeDown2", "swipeLeft3", "swip eUp3", "swipeRight3", "swipeDown3", "swipeLeft4", "swipeUp4", "swipeRight4", "sw ipeDown4" ],
39 "description": "Accessibility gestures fired by the touch exploration co ntroller."
34 } 40 }
35 ], 41 ],
36 "functions": [ 42 "functions": [
37 { 43 {
38 "name": "setNativeAccessibilityEnabled", 44 "name": "setNativeAccessibilityEnabled",
39 "type": "function", 45 "type": "function",
40 "description": "Enables or disables native accessibility support. Once d isabled, it is up to the calling extension to provide accessibility for web cont ents.", 46 "description": "Enables or disables native accessibility support. Once d isabled, it is up to the calling extension to provide accessibility for web cont ents.",
41 "parameters": [ 47 "parameters": [
42 { 48 {
43 "type": "boolean", 49 "type": "boolean",
(...skipping 20 matching lines...) Expand all
64 "type": "function", 70 "type": "function",
65 "description": "Sets the calling extension as a listener of all keyboard events optionally allowing the calling extension to capture/swallow the key eve nt via DOM apis. Returns false via callback when unable to set the listener.", 71 "description": "Sets the calling extension as a listener of all keyboard events optionally allowing the calling extension to capture/swallow the key eve nt via DOM apis. Returns false via callback when unable to set the listener.",
66 "parameters": [ 72 "parameters": [
67 { 73 {
68 "type": "boolean", 74 "type": "boolean",
69 "name": "enabled", 75 "name": "enabled",
70 "description": "True if the caller wants to listen to key events; fa lse to stop listening to events. Note that there is only ever one extension list ening to key events." 76 "description": "True if the caller wants to listen to key events; fa lse to stop listening to events. Note that there is only ever one extension list ening to key events."
71 }, 77 },
72 { 78 {
73 "type": "boolean", 79 "type": "boolean",
80
74 "name": "capture", 81 "name": "capture",
75 "description": "True if key events should be swallowed natively and not propagated if preventDefault() gets called by the extension's background pag e." 82 "description": "True if key events should be swallowed natively and not propagated if preventDefault() gets called by the extension's background pag e."
76 } 83 }
77 ] 84 ]
78 } 85 }
79 ], 86 ],
80 "events": [ 87 "events": [
81 { 88 {
82 "name": "onIntroduceChromeVox", 89 "name": "onIntroduceChromeVox",
83 "type": "function", 90 "type": "function",
84 "description": "Fired whenever ChromeVox should output introduction." 91 "description": "Fired whenever ChromeVox should output introduction."
92 },
93 {
94 "name": "onAccessibilityGesture",
95 "type": "function",
96 "description": "Fired when an accessibility gesture is detected by the t ouch exploration controller.",
97 "parameters": [
98 {
99 "name": "gesture",
100 "$ref": "Gesture"
101 }
102 ]
85 } 103 }
86 ] 104 ]
87 } 105 }
88 ] 106 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698