PageRenderTime 67ms CodeModel.GetById 26ms RepoModel.GetById 0ms app.codeStats 0ms

/chrome/browser/resources/chromeos/chromevox/common/chrome_extension_externs.js

https://gitlab.com/jonnialva90/iridium-browser
JavaScript | 521 lines | 247 code | 89 blank | 185 comment | 0 complexity | da35b323c39571235a13ed459e2a5474 MD5 | raw file
  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.
  4. /**
  5. * @fileoverview Definitions for the Chromium extensions API used by ChromeVox.
  6. *
  7. * @externs
  8. */
  9. // TODO: Move these to //third_party/closure_compiler/externs.
  10. // Begin auto generated externs; do not edit.
  11. // The following was generated from:
  12. //
  13. // python tools/json_schema_compiler/compiler.py
  14. // -g externs
  15. // chrome/common/extensions/api/automation.idl
  16. /**
  17. * @const
  18. */
  19. chrome.automation = {};
  20. /**
  21. * @enum {string}
  22. */
  23. chrome.automation.EventType = {
  24. activedescendantchanged: 'activedescendantchanged',
  25. alert: 'alert',
  26. ariaAttributeChanged: 'ariaAttributeChanged',
  27. autocorrectionOccured: 'autocorrectionOccured',
  28. blur: 'blur',
  29. checkedStateChanged: 'checkedStateChanged',
  30. childrenChanged: 'childrenChanged',
  31. focus: 'focus',
  32. hide: 'hide',
  33. hover: 'hover',
  34. invalidStatusChanged: 'invalidStatusChanged',
  35. layoutComplete: 'layoutComplete',
  36. liveRegionChanged: 'liveRegionChanged',
  37. loadComplete: 'loadComplete',
  38. locationChanged: 'locationChanged',
  39. menuEnd: 'menuEnd',
  40. menuListItemSelected: 'menuListItemSelected',
  41. menuListValueChanged: 'menuListValueChanged',
  42. menuPopupEnd: 'menuPopupEnd',
  43. menuPopupStart: 'menuPopupStart',
  44. menuStart: 'menuStart',
  45. rowCollapsed: 'rowCollapsed',
  46. rowCountChanged: 'rowCountChanged',
  47. rowExpanded: 'rowExpanded',
  48. scrollPositionChanged: 'scrollPositionChanged',
  49. scrolledToAnchor: 'scrolledToAnchor',
  50. selectedChildrenChanged: 'selectedChildrenChanged',
  51. selection: 'selection',
  52. selectionAdd: 'selectionAdd',
  53. selectionRemove: 'selectionRemove',
  54. show: 'show',
  55. textChanged: 'textChanged',
  56. textSelectionChanged: 'textSelectionChanged',
  57. treeChanged: 'treeChanged',
  58. valueChanged: 'valueChanged',
  59. };
  60. /**
  61. * @enum {string}
  62. */
  63. chrome.automation.RoleType = {
  64. alertDialog: 'alertDialog',
  65. alert: 'alert',
  66. annotation: 'annotation',
  67. application: 'application',
  68. article: 'article',
  69. banner: 'banner',
  70. blockquote: 'blockquote',
  71. busyIndicator: 'busyIndicator',
  72. button: 'button',
  73. buttonDropDown: 'buttonDropDown',
  74. canvas: 'canvas',
  75. caption: 'caption',
  76. cell: 'cell',
  77. checkBox: 'checkBox',
  78. client: 'client',
  79. colorWell: 'colorWell',
  80. columnHeader: 'columnHeader',
  81. column: 'column',
  82. comboBox: 'comboBox',
  83. complementary: 'complementary',
  84. contentInfo: 'contentInfo',
  85. date: 'date',
  86. dateTime: 'dateTime',
  87. definition: 'definition',
  88. descriptionListDetail: 'descriptionListDetail',
  89. descriptionList: 'descriptionList',
  90. descriptionListTerm: 'descriptionListTerm',
  91. desktop: 'desktop',
  92. details: 'details',
  93. dialog: 'dialog',
  94. directory: 'directory',
  95. disclosureTriangle: 'disclosureTriangle',
  96. div: 'div',
  97. document: 'document',
  98. embeddedObject: 'embeddedObject',
  99. figcaption: 'figcaption',
  100. figure: 'figure',
  101. footer: 'footer',
  102. form: 'form',
  103. grid: 'grid',
  104. group: 'group',
  105. heading: 'heading',
  106. iframe: 'iframe',
  107. iframePresentational: 'iframePresentational',
  108. ignored: 'ignored',
  109. imageMapLink: 'imageMapLink',
  110. imageMap: 'imageMap',
  111. image: 'image',
  112. inlineTextBox: 'inlineTextBox',
  113. labelText: 'labelText',
  114. legend: 'legend',
  115. lineBreak: 'lineBreak',
  116. link: 'link',
  117. listBoxOption: 'listBoxOption',
  118. listBox: 'listBox',
  119. listItem: 'listItem',
  120. listMarker: 'listMarker',
  121. list: 'list',
  122. locationBar: 'locationBar',
  123. log: 'log',
  124. main: 'main',
  125. marquee: 'marquee',
  126. math: 'math',
  127. menuBar: 'menuBar',
  128. menuButton: 'menuButton',
  129. menuItem: 'menuItem',
  130. menuItemCheckBox: 'menuItemCheckBox',
  131. menuItemRadio: 'menuItemRadio',
  132. menuListOption: 'menuListOption',
  133. menuListPopup: 'menuListPopup',
  134. menu: 'menu',
  135. meter: 'meter',
  136. navigation: 'navigation',
  137. note: 'note',
  138. outline: 'outline',
  139. pane: 'pane',
  140. paragraph: 'paragraph',
  141. popUpButton: 'popUpButton',
  142. pre: 'pre',
  143. presentational: 'presentational',
  144. progressIndicator: 'progressIndicator',
  145. radioButton: 'radioButton',
  146. radioGroup: 'radioGroup',
  147. region: 'region',
  148. rootWebArea: 'rootWebArea',
  149. rowHeader: 'rowHeader',
  150. row: 'row',
  151. ruby: 'ruby',
  152. ruler: 'ruler',
  153. svgRoot: 'svgRoot',
  154. scrollArea: 'scrollArea',
  155. scrollBar: 'scrollBar',
  156. seamlessWebArea: 'seamlessWebArea',
  157. search: 'search',
  158. searchBox: 'searchBox',
  159. slider: 'slider',
  160. sliderThumb: 'sliderThumb',
  161. spinButtonPart: 'spinButtonPart',
  162. spinButton: 'spinButton',
  163. splitter: 'splitter',
  164. staticText: 'staticText',
  165. status: 'status',
  166. switch: 'switch',
  167. tabGroup: 'tabGroup',
  168. tabList: 'tabList',
  169. tabPanel: 'tabPanel',
  170. tab: 'tab',
  171. tableHeaderContainer: 'tableHeaderContainer',
  172. table: 'table',
  173. textField: 'textField',
  174. time: 'time',
  175. timer: 'timer',
  176. titleBar: 'titleBar',
  177. toggleButton: 'toggleButton',
  178. toolbar: 'toolbar',
  179. treeGrid: 'treeGrid',
  180. treeItem: 'treeItem',
  181. tree: 'tree',
  182. unknown: 'unknown',
  183. tooltip: 'tooltip',
  184. webArea: 'webArea',
  185. webView: 'webView',
  186. window: 'window',
  187. };
  188. /**
  189. * @enum {string}
  190. */
  191. chrome.automation.StateType = {
  192. busy: 'busy',
  193. checked: 'checked',
  194. collapsed: 'collapsed',
  195. default: 'default',
  196. disabled: 'disabled',
  197. editable: 'editable',
  198. enabled: 'enabled',
  199. expanded: 'expanded',
  200. focusable: 'focusable',
  201. focused: 'focused',
  202. haspopup: 'haspopup',
  203. horizontal: 'horizontal',
  204. hovered: 'hovered',
  205. indeterminate: 'indeterminate',
  206. invisible: 'invisible',
  207. linked: 'linked',
  208. multiselectable: 'multiselectable',
  209. offscreen: 'offscreen',
  210. pressed: 'pressed',
  211. protected: 'protected',
  212. readOnly: 'readOnly',
  213. required: 'required',
  214. selectable: 'selectable',
  215. selected: 'selected',
  216. vertical: 'vertical',
  217. visited: 'visited',
  218. };
  219. /**
  220. * @enum {string}
  221. */
  222. chrome.automation.TreeChangeType = {
  223. nodeCreated: 'nodeCreated',
  224. subtreeCreated: 'subtreeCreated',
  225. nodeChanged: 'nodeChanged',
  226. nodeRemoved: 'nodeRemoved',
  227. };
  228. /**
  229. * @typedef {{
  230. * left: number,
  231. * top: number,
  232. * width: number,
  233. * height: number
  234. * }}
  235. */
  236. chrome.automation.Rect;
  237. /**
  238. * @typedef {{
  239. * role: (!chrome.automation.RoleType|undefined),
  240. * state: (Object|undefined),
  241. * attributes: (Object|undefined)
  242. * }}
  243. */
  244. chrome.automation.FindParams;
  245. /**
  246. * @constructor
  247. */
  248. chrome.automation.AutomationEvent = function() {};
  249. /**
  250. * @typedef {{
  251. * target: chrome.automation.AutomationNode,
  252. * type: !chrome.automation.TreeChangeType
  253. * }}
  254. */
  255. chrome.automation.TreeChange;
  256. /**
  257. * @constructor
  258. */
  259. chrome.automation.AutomationNode = function() {};
  260. /**
  261. * Get the automation tree for the tab with the given tabId, or the current tab
  262. * if no tabID is given, enabling automation if necessary. Returns a tree with a
  263. * placeholder root node; listen for the "loadComplete" event to get a
  264. * notification that the tree has fully loaded (the previous root node reference
  265. * will stop working at or before this point).
  266. * @param {number} tabId
  267. * @param {function(chrome.automation.AutomationNode):void} callback
  268. * Called when the <code>AutomationNode</code> for the page is available.
  269. */
  270. chrome.automation.getTree = function(tabId, callback) {};
  271. /**
  272. * Get the automation tree for the whole desktop which consists of all on screen
  273. * views. Note this API is currently only supported on Chrome OS.
  274. * @param {function(chrome.automation.AutomationNode):void} callback
  275. * Called when the <code>AutomationNode</code> for the page is available.
  276. */
  277. chrome.automation.getDesktop = function(callback) {};
  278. /**
  279. * Add a tree change observer. Tree change observers are static/global,
  280. * they listen to tree changes across all trees.
  281. * @param {function(chrome.automation.TreeChange):void} observer
  282. * A listener for tree changes on the <code>AutomationNode</code> tree.
  283. */
  284. chrome.automation.addTreeChangeObserver = function(observer) {};
  285. /**
  286. * Remove a tree change observer.
  287. * @param {function(chrome.automation.TreeChange):void} observer
  288. * A listener for tree changes on the <code>AutomationNode</code> tree.
  289. */
  290. chrome.automation.removeTreeChangeObserver = function(observer) {};
  291. //
  292. // End auto generated externs; do not edit.
  293. //
  294. /**
  295. * @type {chrome.automation.RoleType}
  296. */
  297. chrome.automation.AutomationNode.prototype.role;
  298. /**
  299. * @type {!Object<chrome.automation.StateType, boolean>}
  300. */
  301. chrome.automation.AutomationNode.prototype.state;
  302. /**
  303. * @type {number}
  304. */
  305. chrome.automation.AutomationNode.prototype.indexInParent;
  306. /**
  307. * @type {string}
  308. */
  309. chrome.automation.AutomationNode.prototype.name;
  310. /**
  311. * @type {string}
  312. */
  313. chrome.automation.AutomationNode.prototype.description;
  314. /**
  315. * @type {string}
  316. */
  317. chrome.automation.AutomationNode.prototype.url;
  318. /**
  319. * @type {string}
  320. */
  321. chrome.automation.AutomationNode.prototype.docUrl;
  322. /**
  323. * @type {string}
  324. */
  325. chrome.automation.AutomationNode.prototype.value;
  326. /**
  327. * @type {number}
  328. */
  329. chrome.automation.AutomationNode.prototype.textSelStart;
  330. /**
  331. * @type {number}
  332. */
  333. chrome.automation.AutomationNode.prototype.textSelEnd;
  334. /**
  335. * @type {Array<number>}
  336. */
  337. chrome.automation.AutomationNode.prototype.wordStarts;
  338. /**
  339. * @type {Array<number>}
  340. */
  341. chrome.automation.AutomationNode.prototype.wordEnds;
  342. /**
  343. * @type {!chrome.automation.AutomationNode}
  344. */
  345. chrome.automation.AutomationNode.prototype.root;
  346. /**
  347. * @type {chrome.automation.AutomationNode}
  348. */
  349. chrome.automation.AutomationNode.prototype.firstChild;
  350. /**
  351. * @type {chrome.automation.AutomationNode}
  352. */
  353. chrome.automation.AutomationNode.prototype.lastChild;
  354. /**
  355. * @type {chrome.automation.AutomationNode}
  356. */
  357. chrome.automation.AutomationNode.prototype.nextSibling;
  358. /**
  359. * @type {chrome.automation.AutomationNode}
  360. */
  361. chrome.automation.AutomationNode.prototype.previousSibling;
  362. /**
  363. * @type {chrome.automation.AutomationNode}
  364. */
  365. chrome.automation.AutomationNode.prototype.parent;
  366. /**
  367. * @type {!Array<chrome.automation.AutomationNode>}
  368. */
  369. chrome.automation.AutomationNode.prototype.children;
  370. /**
  371. * @type {{top: number, left: number, height: number, width: number}}
  372. */
  373. chrome.automation.AutomationNode.prototype.location;
  374. /**
  375. * @param {chrome.automation.EventType} eventType
  376. * @param {function(!chrome.automation.AutomationEvent) : void} callback
  377. * @param {boolean} capture
  378. */
  379. chrome.automation.AutomationNode.prototype.addEventListener =
  380. function(eventType, callback, capture) {};
  381. /**
  382. * @param {chrome.automation.EventType} eventType
  383. * @param {function(chrome.automation.AutomationNode) : void} callback
  384. * @param {boolean} capture
  385. */
  386. chrome.automation.AutomationNode.prototype.removeEventListener =
  387. function(eventType, callback, capture) {};
  388. /**
  389. * @type {chrome.automation.AutomationNode}
  390. */
  391. chrome.automation.TreeChange.prototype.target;
  392. /**
  393. * @type {chrome.automation.TreeChangeType}
  394. */
  395. chrome.automation.TreeChange.prototype.type;
  396. /**
  397. * @param {function(chrome.automation.TreeChange) : void}
  398. * callback
  399. */
  400. chrome.automation.AutomationNode.prototype.addTreeChangeObserver =
  401. function(callback) {};
  402. /**
  403. * @param {function(chrome.automation.TreeChange) : void}
  404. * callback
  405. */
  406. chrome.automation.AutomationNode.prototype.removeTreeChangeObserver =
  407. function(callback) {};
  408. chrome.automation.AutomationNode.prototype.doDefault = function() {};
  409. chrome.automation.AutomationNode.prototype.focus = function() {};
  410. chrome.automation.AutomationNode.prototype.showContextMenu = function() {};
  411. /**
  412. * @param {number} start
  413. * @param {number} end
  414. */
  415. chrome.automation.AutomationNode.prototype.setSelection =
  416. function(start, end) {};
  417. /** @type {string} */
  418. chrome.automation.AutomationNode.prototype.containerLiveStatus;
  419. /** @type {string} */
  420. chrome.automation.AutomationNode.prototype.containerLiveRelevant;
  421. /** @type {boolean} */
  422. chrome.automation.AutomationNode.prototype.containerLiveAtomic;
  423. /** @type {boolean} */
  424. chrome.automation.AutomationNode.prototype.containerLiveBusy;
  425. /**
  426. * @param {Object} findParams
  427. */
  428. chrome.automation.AutomationNode.prototype.find = function(findParams) {};
  429. /**
  430. * @type {string}
  431. */
  432. chrome.automation.AutomationNode.prototype.inputType;