accessibility_private.js 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680
  1. // Copyright 2022 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.
  4. // This file was generated by:
  5. // tools/json_schema_compiler/compiler.py.
  6. // NOTE: The format of types has changed. 'FooType' is now
  7. // 'chrome.accessibilityPrivate.FooType'.
  8. // Please run the closure compiler before committing changes.
  9. // See https://chromium.googlesource.com/chromium/src/+/main/docs/closure_compilation.md
  10. /** @fileoverview Externs generated from namespace: accessibilityPrivate */
  11. /** @const */
  12. chrome.accessibilityPrivate = {};
  13. /**
  14. * Information about an alert
  15. * @typedef {{
  16. * message: string
  17. * }}
  18. */
  19. chrome.accessibilityPrivate.AlertInfo;
  20. /**
  21. * Bounding rectangle in global screen coordinates.
  22. * @typedef {{
  23. * left: number,
  24. * top: number,
  25. * width: number,
  26. * height: number
  27. * }}
  28. */
  29. chrome.accessibilityPrivate.ScreenRect;
  30. /**
  31. * Point in global screen coordinates.
  32. * @typedef {{
  33. * x: number,
  34. * y: number
  35. * }}
  36. */
  37. chrome.accessibilityPrivate.ScreenPoint;
  38. /**
  39. * @enum {string}
  40. */
  41. chrome.accessibilityPrivate.Gesture = {
  42. CLICK: 'click',
  43. SWIPE_LEFT1: 'swipeLeft1',
  44. SWIPE_UP1: 'swipeUp1',
  45. SWIPE_RIGHT1: 'swipeRight1',
  46. SWIPE_DOWN1: 'swipeDown1',
  47. SWIPE_LEFT2: 'swipeLeft2',
  48. SWIPE_UP2: 'swipeUp2',
  49. SWIPE_RIGHT2: 'swipeRight2',
  50. SWIPE_DOWN2: 'swipeDown2',
  51. SWIPE_LEFT3: 'swipeLeft3',
  52. SWIPE_UP3: 'swipeUp3',
  53. SWIPE_RIGHT3: 'swipeRight3',
  54. SWIPE_DOWN3: 'swipeDown3',
  55. SWIPE_LEFT4: 'swipeLeft4',
  56. SWIPE_UP4: 'swipeUp4',
  57. SWIPE_RIGHT4: 'swipeRight4',
  58. SWIPE_DOWN4: 'swipeDown4',
  59. TAP2: 'tap2',
  60. TAP3: 'tap3',
  61. TAP4: 'tap4',
  62. TOUCH_EXPLORE: 'touchExplore',
  63. };
  64. /**
  65. * @enum {string}
  66. */
  67. chrome.accessibilityPrivate.MagnifierCommand = {
  68. MOVE_STOP: 'moveStop',
  69. MOVE_UP: 'moveUp',
  70. MOVE_DOWN: 'moveDown',
  71. MOVE_LEFT: 'moveLeft',
  72. MOVE_RIGHT: 'moveRight',
  73. };
  74. /**
  75. * @enum {string}
  76. */
  77. chrome.accessibilityPrivate.SwitchAccessCommand = {
  78. SELECT: 'select',
  79. NEXT: 'next',
  80. PREVIOUS: 'previous',
  81. };
  82. /**
  83. * @enum {string}
  84. */
  85. chrome.accessibilityPrivate.PointScanState = {
  86. START: 'start',
  87. STOP: 'stop',
  88. };
  89. /**
  90. * @enum {string}
  91. */
  92. chrome.accessibilityPrivate.SwitchAccessBubble = {
  93. BACK_BUTTON: 'backButton',
  94. MENU: 'menu',
  95. };
  96. /**
  97. * @typedef {{
  98. * x: number,
  99. * y: number
  100. * }}
  101. */
  102. chrome.accessibilityPrivate.PointScanPoint;
  103. /**
  104. * @enum {string}
  105. */
  106. chrome.accessibilityPrivate.SwitchAccessMenuAction = {
  107. COPY: 'copy',
  108. CUT: 'cut',
  109. DECREMENT: 'decrement',
  110. DICTATION: 'dictation',
  111. END_TEXT_SELECTION: 'endTextSelection',
  112. INCREMENT: 'increment',
  113. ITEM_SCAN: 'itemScan',
  114. JUMP_TO_BEGINNING_OF_TEXT: 'jumpToBeginningOfText',
  115. JUMP_TO_END_OF_TEXT: 'jumpToEndOfText',
  116. KEYBOARD: 'keyboard',
  117. LEFT_CLICK: 'leftClick',
  118. MOVE_BACKWARD_ONE_CHAR_OF_TEXT: 'moveBackwardOneCharOfText',
  119. MOVE_BACKWARD_ONE_WORD_OF_TEXT: 'moveBackwardOneWordOfText',
  120. MOVE_CURSOR: 'moveCursor',
  121. MOVE_DOWN_ONE_LINE_OF_TEXT: 'moveDownOneLineOfText',
  122. MOVE_FORWARD_ONE_CHAR_OF_TEXT: 'moveForwardOneCharOfText',
  123. MOVE_FORWARD_ONE_WORD_OF_TEXT: 'moveForwardOneWordOfText',
  124. MOVE_UP_ONE_LINE_OF_TEXT: 'moveUpOneLineOfText',
  125. PASTE: 'paste',
  126. POINT_SCAN: 'pointScan',
  127. RIGHT_CLICK: 'rightClick',
  128. SCROLL_DOWN: 'scrollDown',
  129. SCROLL_LEFT: 'scrollLeft',
  130. SCROLL_RIGHT: 'scrollRight',
  131. SCROLL_UP: 'scrollUp',
  132. SELECT: 'select',
  133. SETTINGS: 'settings',
  134. START_TEXT_SELECTION: 'startTextSelection',
  135. };
  136. /**
  137. * @enum {string}
  138. */
  139. chrome.accessibilityPrivate.SyntheticKeyboardEventType = {
  140. KEYUP: 'keyup',
  141. KEYDOWN: 'keydown',
  142. };
  143. /**
  144. * @typedef {{
  145. * ctrl: (boolean|undefined),
  146. * alt: (boolean|undefined),
  147. * search: (boolean|undefined),
  148. * shift: (boolean|undefined)
  149. * }}
  150. */
  151. chrome.accessibilityPrivate.SyntheticKeyboardModifiers;
  152. /**
  153. * @typedef {{
  154. * type: !chrome.accessibilityPrivate.SyntheticKeyboardEventType,
  155. * keyCode: number,
  156. * modifiers: (!chrome.accessibilityPrivate.SyntheticKeyboardModifiers|undefined)
  157. * }}
  158. */
  159. chrome.accessibilityPrivate.SyntheticKeyboardEvent;
  160. /**
  161. * @enum {string}
  162. */
  163. chrome.accessibilityPrivate.SyntheticMouseEventType = {
  164. PRESS: 'press',
  165. RELEASE: 'release',
  166. DRAG: 'drag',
  167. MOVE: 'move',
  168. ENTER: 'enter',
  169. EXIT: 'exit',
  170. };
  171. /**
  172. * @enum {string}
  173. */
  174. chrome.accessibilityPrivate.SyntheticMouseEventButton = {
  175. LEFT: 'left',
  176. MIDDLE: 'middle',
  177. RIGHT: 'right',
  178. BACK: 'back',
  179. FOWARD: 'foward',
  180. };
  181. /**
  182. * @typedef {{
  183. * type: !chrome.accessibilityPrivate.SyntheticMouseEventType,
  184. * x: number,
  185. * y: number,
  186. * touchAccessibility: (boolean|undefined),
  187. * mouseButton: (!chrome.accessibilityPrivate.SyntheticMouseEventButton|undefined)
  188. * }}
  189. */
  190. chrome.accessibilityPrivate.SyntheticMouseEvent;
  191. /**
  192. * @enum {string}
  193. */
  194. chrome.accessibilityPrivate.SelectToSpeakState = {
  195. SELECTING: 'selecting',
  196. SPEAKING: 'speaking',
  197. INACTIVE: 'inactive',
  198. };
  199. /**
  200. * @enum {string}
  201. */
  202. chrome.accessibilityPrivate.FocusType = {
  203. GLOW: 'glow',
  204. SOLID: 'solid',
  205. DASHED: 'dashed',
  206. };
  207. /**
  208. * @enum {string}
  209. */
  210. chrome.accessibilityPrivate.FocusRingStackingOrder = {
  211. ABOVE_ACCESSIBILITY_BUBBLES: 'aboveAccessibilityBubbles',
  212. BELOW_ACCESSIBILITY_BUBBLES: 'belowAccessibilityBubbles',
  213. };
  214. /**
  215. * @typedef {{
  216. * rects: !Array<!chrome.accessibilityPrivate.ScreenRect>,
  217. * type: !chrome.accessibilityPrivate.FocusType,
  218. * color: string,
  219. * secondaryColor: (string|undefined),
  220. * backgroundColor: (string|undefined),
  221. * stackingOrder: (!chrome.accessibilityPrivate.FocusRingStackingOrder|undefined),
  222. * id: (string|undefined)
  223. * }}
  224. */
  225. chrome.accessibilityPrivate.FocusRingInfo;
  226. /**
  227. * @enum {string}
  228. */
  229. chrome.accessibilityPrivate.AcceleratorAction = {
  230. FOCUS_PREVIOUS_PANE: 'focusPreviousPane',
  231. FOCUS_NEXT_PANE: 'focusNextPane',
  232. };
  233. /**
  234. * @enum {string}
  235. */
  236. chrome.accessibilityPrivate.AccessibilityFeature = {
  237. ENHANCED_NETWORK_VOICES: 'enhancedNetworkVoices',
  238. GOOGLE_TTS_LANGUAGE_PACKS: 'googleTtsLanguagePacks',
  239. DICTATION_PUMPKIN_PARSING: 'dictationPumpkinParsing',
  240. };
  241. /**
  242. * @enum {string}
  243. */
  244. chrome.accessibilityPrivate.SelectToSpeakPanelAction = {
  245. PREVIOUS_PARAGRAPH: 'previousParagraph',
  246. PREVIOUS_SENTENCE: 'previousSentence',
  247. PAUSE: 'pause',
  248. RESUME: 'resume',
  249. NEXT_SENTENCE: 'nextSentence',
  250. NEXT_PARAGRAPH: 'nextParagraph',
  251. EXIT: 'exit',
  252. CHANGE_SPEED: 'changeSpeed',
  253. };
  254. /**
  255. * @enum {string}
  256. */
  257. chrome.accessibilityPrivate.SetNativeChromeVoxResponse = {
  258. SUCCESS: 'success',
  259. TALKBACK_NOT_INSTALLED: 'talkbackNotInstalled',
  260. WINDOW_NOT_FOUND: 'windowNotFound',
  261. FAILURE: 'failure',
  262. NEED_DEPRECATION_CONFIRMATION: 'needDeprecationConfirmation',
  263. };
  264. /**
  265. * @enum {string}
  266. */
  267. chrome.accessibilityPrivate.DictationBubbleIconType = {
  268. HIDDEN: 'hidden',
  269. STANDBY: 'standby',
  270. MACRO_SUCCESS: 'macroSuccess',
  271. MACRO_FAIL: 'macroFail',
  272. };
  273. /**
  274. * @enum {string}
  275. */
  276. chrome.accessibilityPrivate.DictationBubbleHintType = {
  277. TRY_SAYING: 'trySaying',
  278. TYPE: 'type',
  279. DELETE: 'delete',
  280. SELECT_ALL: 'selectAll',
  281. UNDO: 'undo',
  282. HELP: 'help',
  283. UNSELECT: 'unselect',
  284. COPY: 'copy',
  285. };
  286. /**
  287. * @typedef {{
  288. * visible: boolean,
  289. * icon: !chrome.accessibilityPrivate.DictationBubbleIconType,
  290. * text: (string|undefined),
  291. * hints: (!Array<!chrome.accessibilityPrivate.DictationBubbleHintType>|undefined)
  292. * }}
  293. */
  294. chrome.accessibilityPrivate.DictationBubbleProperties;
  295. /**
  296. * @enum {string}
  297. */
  298. chrome.accessibilityPrivate.DlcType = {
  299. TTS_ES_US: 'ttsEsUs',
  300. };
  301. /**
  302. * Property to indicate whether event source should default to touch.
  303. * @type {number}
  304. */
  305. chrome.accessibilityPrivate.IS_DEFAULT_EVENT_SOURCE_TOUCH;
  306. /**
  307. * Called to translate localeCodeToTranslate into human-readable string in the
  308. * locale specified by displayLocaleCode
  309. * @param {string} localeCodeToTranslate
  310. * @param {string} displayLocaleCode
  311. * @return {string} The human-readable locale string in the provided locale.
  312. */
  313. chrome.accessibilityPrivate.getDisplayNameForLocale = function(localeCodeToTranslate, displayLocaleCode) {};
  314. /**
  315. * Called to request battery status from Chrome OS system.
  316. * @param {function(string): void} callback Returns battery description as a
  317. * string.
  318. */
  319. chrome.accessibilityPrivate.getBatteryDescription = function(callback) {};
  320. /**
  321. * Called to request an install of the Pumpkin semantic parser for Dictation.
  322. * @param {function(boolean): void} callback Runs when Pumpkin download
  323. * finishes.
  324. */
  325. chrome.accessibilityPrivate.installPumpkinForDictation = function(callback) {};
  326. /**
  327. * Enables or disables native accessibility support. Once disabled, it is up to
  328. * the calling extension to provide accessibility for web contents.
  329. * @param {boolean} enabled True if native accessibility support should be
  330. * enabled.
  331. */
  332. chrome.accessibilityPrivate.setNativeAccessibilityEnabled = function(enabled) {};
  333. /**
  334. * Sets the given accessibility focus rings for this extension.
  335. * @param {!Array<!chrome.accessibilityPrivate.FocusRingInfo>} focusRings Array
  336. * of focus rings to draw.
  337. */
  338. chrome.accessibilityPrivate.setFocusRings = function(focusRings) {};
  339. /**
  340. * Sets the bounds of the accessibility highlight.
  341. * @param {!Array<!chrome.accessibilityPrivate.ScreenRect>} rects Array of
  342. * rectangles to draw the highlight around.
  343. * @param {string} color CSS-style hex color string beginning with # like
  344. * #FF9982 or #EEE.
  345. */
  346. chrome.accessibilityPrivate.setHighlights = function(rects, color) {};
  347. /**
  348. * Sets the calling extension as a listener of all keyboard events optionally
  349. * allowing the calling extension to capture/swallow the key event via DOM apis.
  350. * Returns false via callback when unable to set the listener.
  351. * @param {boolean} enabled True if the caller wants to listen to key events;
  352. * false to stop listening to events. Note that there is only ever one
  353. * extension listening to key events.
  354. * @param {boolean} capture True if key events should be swallowed natively and
  355. * not propagated if preventDefault() gets called by the extension's
  356. * background page.
  357. */
  358. chrome.accessibilityPrivate.setKeyboardListener = function(enabled, capture) {};
  359. /**
  360. * Darkens or undarkens the screen.
  361. * @param {boolean} enabled True to darken screen; false to undarken screen.
  362. */
  363. chrome.accessibilityPrivate.darkenScreen = function(enabled) {};
  364. /**
  365. * When enabled, forwards key events to the Switch Access extension
  366. * @param {boolean} shouldForward
  367. */
  368. chrome.accessibilityPrivate.forwardKeyEventsToSwitchAccess = function(shouldForward) {};
  369. /**
  370. * Shows the Switch Access menu next to the specified rectangle and with the
  371. * given actions
  372. * @param {!chrome.accessibilityPrivate.SwitchAccessBubble} bubble Which bubble
  373. * to show/hide
  374. * @param {boolean} show True if the bubble should be shown, false otherwise
  375. * @param {!chrome.accessibilityPrivate.ScreenRect=} anchor A rectangle
  376. * indicating the bounds of the object the menu should be displayed next to.
  377. * @param {!Array<!chrome.accessibilityPrivate.SwitchAccessMenuAction>=} actions
  378. * The actions to be shown in the menu.
  379. */
  380. chrome.accessibilityPrivate.updateSwitchAccessBubble = function(bubble, show, anchor, actions) {};
  381. /**
  382. * Sets point scanning state Switch Access.
  383. * @param {!chrome.accessibilityPrivate.PointScanState} state The point scanning
  384. * state to set.
  385. */
  386. chrome.accessibilityPrivate.setPointScanState = function(state) {};
  387. /**
  388. * Sets current ARC app to use native ARC support.
  389. * @param {boolean} enabled True for ChromeVox (native), false for TalkBack.
  390. * @param {function(!chrome.accessibilityPrivate.SetNativeChromeVoxResponse): void}
  391. * callback
  392. */
  393. chrome.accessibilityPrivate.setNativeChromeVoxArcSupportForCurrentApp = function(enabled, callback) {};
  394. /**
  395. * Sends a fabricated key event.
  396. * @param {!chrome.accessibilityPrivate.SyntheticKeyboardEvent} keyEvent The
  397. * event to send.
  398. */
  399. chrome.accessibilityPrivate.sendSyntheticKeyEvent = function(keyEvent) {};
  400. /**
  401. * Enables or disables mouse events in accessibility extensions
  402. * @param {boolean} enabled True if accessibility component extensions should
  403. * receive mouse events.
  404. */
  405. chrome.accessibilityPrivate.enableMouseEvents = function(enabled) {};
  406. /**
  407. * Sends a fabricated mouse event.
  408. * @param {!chrome.accessibilityPrivate.SyntheticMouseEvent} mouseEvent The
  409. * event to send.
  410. */
  411. chrome.accessibilityPrivate.sendSyntheticMouseEvent = function(mouseEvent) {};
  412. /**
  413. * Called by the Select-to-Speak extension when Select-to-Speak has changed
  414. * states, between selecting with the mouse, speaking, and inactive.
  415. * @param {!chrome.accessibilityPrivate.SelectToSpeakState} state
  416. */
  417. chrome.accessibilityPrivate.setSelectToSpeakState = function(state) {};
  418. /**
  419. * Called by the Accessibility Common extension when
  420. * onScrollableBoundsForPointRequested has found a scrolling container. |rect|
  421. * will be the bounds of the nearest scrollable ancestor of the node at the
  422. * point requested using onScrollableBoundsForPointRequested.
  423. * @param {!chrome.accessibilityPrivate.ScreenRect} rect
  424. */
  425. chrome.accessibilityPrivate.handleScrollableBoundsForPointFound = function(rect) {};
  426. /**
  427. * Called by the Accessibility Common extension to move |rect| within the
  428. * magnifier viewport (e.g. when focus has changed). If |rect| is already
  429. * completely within the viewport, magnifier doesn't move. If any edge of |rect|
  430. * is outside the viewport (e.g. if rect is larger than or extends partially
  431. * beyond the viewport), magnifier will center the overflowing dimensions of the
  432. * viewport on center of |rect| (e.g. center viewport vertically if |rect|
  433. * extends beyond bottom of screen).
  434. * @param {!chrome.accessibilityPrivate.ScreenRect} rect Rect to ensure visible
  435. * in the magnified viewport.
  436. */
  437. chrome.accessibilityPrivate.moveMagnifierToRect = function(rect) {};
  438. /**
  439. * Called by the Accessibility Common extension to center magnifier at |point|.
  440. * @param {!chrome.accessibilityPrivate.ScreenPoint} point
  441. */
  442. chrome.accessibilityPrivate.magnifierCenterOnPoint = function(point) {};
  443. /**
  444. * Toggles dictation between active and inactive states.
  445. */
  446. chrome.accessibilityPrivate.toggleDictation = function() {};
  447. /**
  448. * Shows or hides the virtual keyboard.
  449. * @param {boolean} isVisible
  450. */
  451. chrome.accessibilityPrivate.setVirtualKeyboardVisible = function(isVisible) {};
  452. /**
  453. * Opens a specified settings subpage. To open a page with url
  454. * chrome://settings/manageAccessibility/tts, pass in the substring
  455. * 'manageAccessibility/tts'.
  456. * @param {string} subpage
  457. */
  458. chrome.accessibilityPrivate.openSettingsSubpage = function(subpage) {};
  459. /**
  460. * Performs an accelerator action.
  461. * @param {!chrome.accessibilityPrivate.AcceleratorAction} acceleratorAction
  462. */
  463. chrome.accessibilityPrivate.performAcceleratorAction = function(acceleratorAction) {};
  464. /**
  465. * Checks to see if an accessibility feature is enabled.
  466. * @param {!chrome.accessibilityPrivate.AccessibilityFeature} feature
  467. * @param {function(boolean): void} callback Returns whether feature is enabled.
  468. */
  469. chrome.accessibilityPrivate.isFeatureEnabled = function(feature, callback) {};
  470. /**
  471. * Updates properties of the Select-to-speak panel.
  472. * @param {boolean} show True to show panel, false to hide it
  473. * @param {!chrome.accessibilityPrivate.ScreenRect=} anchor A rectangle
  474. * indicating the bounds of the object the panel should be displayed next
  475. * to.
  476. * @param {boolean=} isPaused True if Select-to-speak playback is paused.
  477. * @param {number=} speed Current reading speed (TTS speech rate).
  478. */
  479. chrome.accessibilityPrivate.updateSelectToSpeakPanel = function(show, anchor, isPaused, speed) {};
  480. /**
  481. * Shows a confirmation dialog.
  482. * @param {string} title The title of the confirmation dialog.
  483. * @param {string} description The description to show within the confirmation
  484. * dialog.
  485. * @param {function(boolean): void} callback Called when the dialog is confirmed
  486. * or cancelled.
  487. */
  488. chrome.accessibilityPrivate.showConfirmationDialog = function(title, description, callback) {};
  489. /**
  490. * Gets the DOM key string for the given key code, taking into account the
  491. * current input method locale, and assuming the key code is for U.S. input. For
  492. * example, the key code for '/' would return the string '!' if the current
  493. * input method is French.
  494. * @param {number} keyCode
  495. * @param {function(string): void} callback Called with the resulting Dom key
  496. * string.
  497. */
  498. chrome.accessibilityPrivate.getLocalizedDomKeyStringForKeyCode = function(keyCode, callback) {};
  499. /**
  500. * Updates Dictation's bubble UI.
  501. * @param {!chrome.accessibilityPrivate.DictationBubbleProperties} properties
  502. * Properties for the updated Dictation bubble UI.
  503. */
  504. chrome.accessibilityPrivate.updateDictationBubble = function(properties) {};
  505. /**
  506. * Cancels the current and queued speech from ChromeVox.
  507. */
  508. chrome.accessibilityPrivate.silenceSpokenFeedback = function() {};
  509. /**
  510. * Returns the contents of a DLC.
  511. * @param {!chrome.accessibilityPrivate.DlcType} dlc The DLC of interest.
  512. * @param {function(ArrayBuffer): void} callback A callback that is run when the
  513. * contents are returned.
  514. */
  515. chrome.accessibilityPrivate.getDlcContents = function(dlc, callback) {};
  516. /**
  517. * Fired whenever ChromeVox should output introduction.
  518. * @type {!ChromeEvent}
  519. */
  520. chrome.accessibilityPrivate.onIntroduceChromeVox;
  521. /**
  522. * Fired when an accessibility gesture is detected by the touch exploration
  523. * controller.
  524. * @type {!ChromeEvent}
  525. */
  526. chrome.accessibilityPrivate.onAccessibilityGesture;
  527. /**
  528. * Fired when we first detect two fingers are held down, which can be used to
  529. * toggle spoken feedback on some touch-only devices.
  530. * @type {!ChromeEvent}
  531. */
  532. chrome.accessibilityPrivate.onTwoFingerTouchStart;
  533. /**
  534. * Fired when the user is no longer holding down two fingers (including
  535. * releasing one, holding down three, or moving them).
  536. * @type {!ChromeEvent}
  537. */
  538. chrome.accessibilityPrivate.onTwoFingerTouchStop;
  539. /**
  540. * Fired when Chrome OS wants to change the Select-to-Speak state, between
  541. * selecting with the mouse, speaking, and inactive.
  542. * @type {!ChromeEvent}
  543. */
  544. chrome.accessibilityPrivate.onSelectToSpeakStateChangeRequested;
  545. /**
  546. * Fired when an action is performed in the Select-to-speak panel.
  547. * @type {!ChromeEvent}
  548. */
  549. chrome.accessibilityPrivate.onSelectToSpeakPanelAction;
  550. /**
  551. * Fired when Chrome OS has received a key event corresponding to a Switch
  552. * Access command.
  553. * @type {!ChromeEvent}
  554. */
  555. chrome.accessibilityPrivate.onSwitchAccessCommand;
  556. /**
  557. * Fired when Chrome OS has received the final point of point scanning.
  558. * @type {!ChromeEvent}
  559. */
  560. chrome.accessibilityPrivate.onPointScanSet;
  561. /**
  562. * Fired when Chrome OS has received a key event corresponding to a Magnifier
  563. * command.
  564. * @type {!ChromeEvent}
  565. */
  566. chrome.accessibilityPrivate.onMagnifierCommand;
  567. /**
  568. * Fired when an internal component within accessibility wants to force speech
  569. * output for an accessibility extension. Do not use without approval from
  570. * accessibility owners.
  571. * @type {!ChromeEvent}
  572. */
  573. chrome.accessibilityPrivate.onAnnounceForAccessibility;
  574. /**
  575. * Fired when an internal component within accessibility wants to find the
  576. * nearest scrolling container at a given screen coordinate. Used in Automatic
  577. * Clicks.
  578. * @type {!ChromeEvent}
  579. */
  580. chrome.accessibilityPrivate.onScrollableBoundsForPointRequested;
  581. /**
  582. * Fired when Chrome OS magnifier bounds are updated.
  583. * @type {!ChromeEvent}
  584. */
  585. chrome.accessibilityPrivate.onMagnifierBoundsChanged;
  586. /**
  587. * Fired when a custom spoken feedback on the active window gets enabled or
  588. * disabled. Called from ARC++ accessibility.
  589. * @type {!ChromeEvent}
  590. */
  591. chrome.accessibilityPrivate.onCustomSpokenFeedbackToggled;
  592. /**
  593. * Fired when ChromeVox should show its tutorial.
  594. * @type {!ChromeEvent}
  595. */
  596. chrome.accessibilityPrivate.onShowChromeVoxTutorial;
  597. /**
  598. * Fired when Dictation is activated or deactivated using a keyboard shortcut,
  599. * the button in the tray, or after a call from
  600. * accessibilityPrivate.toggleDictation
  601. * @type {!ChromeEvent}
  602. */
  603. chrome.accessibilityPrivate.onToggleDictation;