Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 93 "name": "darkenScreen", | 93 "name": "darkenScreen", |
| 94 "type": "function", | 94 "type": "function", |
| 95 "description": "Darkens or undarkens the screen.", | 95 "description": "Darkens or undarkens the screen.", |
| 96 "parameters": [ | 96 "parameters": [ |
| 97 { | 97 { |
| 98 "type": "boolean", | 98 "type": "boolean", |
| 99 "name": "enabled", | 99 "name": "enabled", |
| 100 "description": "True to darken screen; false to undarken screen." | 100 "description": "True to darken screen; false to undarken screen." |
| 101 } | 101 } |
| 102 ] | 102 ] |
| 103 }, | |
| 104 { | |
| 105 "name": "setSwitchAccessKeys", | |
| 106 "type": "function", | |
| 107 "description": "Change the keyboard keys captured by Switch Access.", | |
| 108 "parameters": [ | |
| 109 { | |
| 110 "name": "key_codes", | |
| 111 "type": "array", | |
| 112 "items": { "type": "integer" }, | |
|
Devlin
2017/05/30 19:22:03
note: we support min and max values, so if we know
elichtenberg
2017/05/31 00:58:44
Would it be better to just do this check in access
Devlin
2017/05/31 01:33:32
The advantage to having the minimum specified here
elichtenberg
2017/06/01 19:55:27
Good points. I ended up setting min and max values
| |
| 113 "description": "The key codes for the keys that will be captured." | |
| 114 } | |
| 115 ] | |
| 103 } | 116 } |
| 104 ], | 117 ], |
| 105 "events": [ | 118 "events": [ |
| 106 { | 119 { |
| 107 "name": "onIntroduceChromeVox", | 120 "name": "onIntroduceChromeVox", |
| 108 "type": "function", | 121 "type": "function", |
| 109 "description": "Fired whenever ChromeVox should output introduction." | 122 "description": "Fired whenever ChromeVox should output introduction." |
| 110 }, | 123 }, |
| 111 { | 124 { |
| 112 "name": "onAccessibilityGesture", | 125 "name": "onAccessibilityGesture", |
| (...skipping 14 matching lines...) Expand all Loading... | |
| 127 }, | 140 }, |
| 128 { | 141 { |
| 129 "name": "onTwoFingerTouchStop", | 142 "name": "onTwoFingerTouchStop", |
| 130 "type": "function", | 143 "type": "function", |
| 131 "description": "Fired when the user is no longer holding down two finge rs (including releasing one, holding down three, or moving them).", | 144 "description": "Fired when the user is no longer holding down two finge rs (including releasing one, holding down three, or moving them).", |
| 132 "parameters": [] | 145 "parameters": [] |
| 133 } | 146 } |
| 134 ] | 147 ] |
| 135 } | 148 } |
| 136 ] | 149 ] |
| OLD | NEW |