PageRenderTime 54ms CodeModel.GetById 24ms RepoModel.GetById 0ms app.codeStats 1ms

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

https://gitlab.com/0072016/Facebook-SDK-
JavaScript | 570 lines | 264 code | 104 blank | 202 comment | 0 complexity | 9510e3ac20fd500f92e13b7c36d2022f 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: '',
  25. alert: '',
  26. ariaAttributeChanged: '',
  27. autocorrectionOccured: '',
  28. blur: '',
  29. checkedStateChanged: '',
  30. childrenChanged: '',
  31. documentSelectionChanged: '',
  32. focus: '',
  33. hide: '',
  34. hover: '',
  35. invalidStatusChanged: '',
  36. layoutComplete: '',
  37. liveRegionChanged: '',
  38. loadComplete: '',
  39. locationChanged: '',
  40. menuEnd: '',
  41. menuListItemSelected: '',
  42. menuListValueChanged: '',
  43. menuPopupEnd: '',
  44. menuPopupStart: '',
  45. menuStart: '',
  46. rowCollapsed: '',
  47. rowCountChanged: '',
  48. rowExpanded: '',
  49. scrollPositionChanged: '',
  50. scrolledToAnchor: '',
  51. selectedChildrenChanged: '',
  52. selection: '',
  53. selectionAdd: '',
  54. selectionRemove: '',
  55. show: '',
  56. textChanged: '',
  57. textSelectionChanged: '',
  58. treeChanged: '',
  59. valueChanged: '',
  60. };
  61. /**
  62. * @enum {string}
  63. */
  64. chrome.automation.RoleType = {
  65. alertDialog: '',
  66. alert: '',
  67. annotation: '',
  68. application: '',
  69. article: '',
  70. banner: '',
  71. blockquote: '',
  72. busyIndicator: '',
  73. button: '',
  74. buttonDropDown: '',
  75. canvas: '',
  76. caption: '',
  77. cell: '',
  78. checkBox: '',
  79. client: '',
  80. colorWell: '',
  81. columnHeader: '',
  82. column: '',
  83. comboBox: '',
  84. complementary: '',
  85. contentInfo: '',
  86. date: '',
  87. dateTime: '',
  88. definition: '',
  89. descriptionListDetail: '',
  90. descriptionList: '',
  91. descriptionListTerm: '',
  92. desktop: '',
  93. details: '',
  94. dialog: '',
  95. directory: '',
  96. disclosureTriangle: '',
  97. div: '',
  98. document: '',
  99. embeddedObject: '',
  100. figcaption: '',
  101. figure: '',
  102. footer: '',
  103. form: '',
  104. grid: '',
  105. group: '',
  106. heading: '',
  107. iframe: '',
  108. iframePresentational: '',
  109. ignored: '',
  110. imageMapLink: '',
  111. imageMap: '',
  112. image: '',
  113. inlineTextBox: '',
  114. labelText: '',
  115. legend: '',
  116. lineBreak: '',
  117. link: '',
  118. listBoxOption: '',
  119. listBox: '',
  120. listItem: '',
  121. listMarker: '',
  122. list: '',
  123. locationBar: '',
  124. log: '',
  125. main: '',
  126. marquee: '',
  127. math: '',
  128. menuBar: '',
  129. menuButton: '',
  130. menuItem: '',
  131. menuItemCheckBox: '',
  132. menuItemRadio: '',
  133. menuListOption: '',
  134. menuListPopup: '',
  135. menu: '',
  136. meter: '',
  137. navigation: '',
  138. note: '',
  139. outline: '',
  140. pane: '',
  141. paragraph: '',
  142. popUpButton: '',
  143. pre: '',
  144. presentational: '',
  145. progressIndicator: '',
  146. radioButton: '',
  147. radioGroup: '',
  148. region: '',
  149. rootWebArea: '',
  150. rowHeader: '',
  151. row: '',
  152. ruby: '',
  153. ruler: '',
  154. svgRoot: '',
  155. scrollArea: '',
  156. scrollBar: '',
  157. seamlessWebArea: '',
  158. search: '',
  159. searchBox: '',
  160. slider: '',
  161. sliderThumb: '',
  162. spinButtonPart: '',
  163. spinButton: '',
  164. splitter: '',
  165. staticText: '',
  166. status: '',
  167. switch: '',
  168. tabGroup: '',
  169. tabList: '',
  170. tabPanel: '',
  171. tab: '',
  172. tableHeaderContainer: '',
  173. table: '',
  174. textField: '',
  175. time: '',
  176. timer: '',
  177. titleBar: '',
  178. toggleButton: '',
  179. toolbar: '',
  180. treeGrid: '',
  181. treeItem: '',
  182. tree: '',
  183. unknown: '',
  184. tooltip: '',
  185. webArea: '',
  186. webView: '',
  187. window: '',
  188. };
  189. /**
  190. * @enum {string}
  191. */
  192. chrome.automation.StateType = {
  193. busy: '',
  194. checked: '',
  195. collapsed: '',
  196. default: '',
  197. disabled: '',
  198. editable: '',
  199. enabled: '',
  200. expanded: '',
  201. focusable: '',
  202. focused: '',
  203. haspopup: '',
  204. horizontal: '',
  205. hovered: '',
  206. indeterminate: '',
  207. invisible: '',
  208. linked: '',
  209. multiline: '',
  210. multiselectable: '',
  211. offscreen: '',
  212. pressed: '',
  213. protected: '',
  214. readOnly: '',
  215. required: '',
  216. richlyEditable: '',
  217. selectable: '',
  218. selected: '',
  219. vertical: '',
  220. visited: '',
  221. };
  222. /**
  223. * @enum {string}
  224. */
  225. chrome.automation.TreeChangeType = {
  226. nodeCreated: 'nodeCreated',
  227. subtreeCreated: 'subtreeCreated',
  228. nodeChanged: 'nodeChanged',
  229. nodeRemoved: 'nodeRemoved',
  230. };
  231. /**
  232. * @typedef {{
  233. * left: number,
  234. * top: number,
  235. * width: number,
  236. * height: number
  237. * }}
  238. */
  239. chrome.automation.Rect;
  240. /**
  241. * @typedef {{
  242. * role: (!chrome.automation.RoleType|undefined),
  243. * state: (Object|undefined),
  244. * attributes: (Object|undefined)
  245. * }}
  246. */
  247. chrome.automation.FindParams;
  248. /**
  249. * @constructor
  250. */
  251. chrome.automation.AutomationEvent = function() {};
  252. /**
  253. * @type {!chrome.automation.AutomationNode}
  254. */
  255. chrome.automation.AutomationEvent.prototype.target;
  256. /**
  257. * @type {!chrome.automation.EventType}
  258. */
  259. chrome.automation.AutomationEvent.prototype.type;
  260. chrome.automation.AutomationEvent.prototype.stopPropagation = function() {};
  261. /**
  262. * @typedef {{
  263. * target: chrome.automation.AutomationNode,
  264. * type: !chrome.automation.TreeChangeType
  265. * }}
  266. */
  267. chrome.automation.TreeChange;
  268. /**
  269. * @constructor
  270. */
  271. chrome.automation.AutomationNode = function() {};
  272. /**
  273. * @param {number} tabId
  274. * @param {function(chrome.automation.AutomationNode):void} callback
  275. */
  276. chrome.automation.getTree = function(tabId, callback) {};
  277. /** @param {function(!chrome.automation.AutomationNode):void} callback */
  278. chrome.automation.getDesktop = function(callback) {};
  279. /** @param {function(!chrome.automation.AutomationNode):void} callback */
  280. chrome.automation.getFocus = function(callback) {};
  281. /**
  282. * @param {string} filter
  283. * @param {function(chrome.automation.TreeChange) : void}
  284. * observer
  285. */
  286. chrome.automation.addTreeChangeObserver = function(filter, observer) {};
  287. /**
  288. * @param {function(chrome.automation.TreeChange) : void} observer
  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}|undefined}
  372. */
  373. chrome.automation.AutomationNode.prototype.location;
  374. /**
  375. * @param {number} start
  376. * @param {number} end
  377. * @return {
  378. * ({top: number, left: number, height: number, width: number})|undefined}
  379. */
  380. chrome.automation.AutomationNode.prototype.boundsForRange =
  381. function(start, end) {};
  382. chrome.automation.AutomationNode.prototype.makeVisible = function() {};
  383. /**
  384. * @param {chrome.automation.EventType} eventType
  385. * @param {function(!chrome.automation.AutomationEvent) : void} callback
  386. * @param {boolean} capture
  387. */
  388. chrome.automation.AutomationNode.prototype.addEventListener =
  389. function(eventType, callback, capture) {};
  390. /**
  391. * @param {chrome.automation.EventType} eventType
  392. * @param {function(!chrome.automation.AutomationEvent) : void} callback
  393. * @param {boolean} capture
  394. */
  395. chrome.automation.AutomationNode.prototype.removeEventListener =
  396. function(eventType, callback, capture) {};
  397. /**
  398. * @type {chrome.automation.AutomationNode}
  399. */
  400. chrome.automation.TreeChange.prototype.target;
  401. /**
  402. * @type {chrome.automation.TreeChangeType}
  403. */
  404. chrome.automation.TreeChange.prototype.type;
  405. chrome.automation.AutomationNode.prototype.doDefault = function() {};
  406. chrome.automation.AutomationNode.prototype.focus = function() {};
  407. chrome.automation.AutomationNode.prototype.showContextMenu = function() {};
  408. /**
  409. * @param {number} start
  410. * @param {number} end
  411. */
  412. chrome.automation.AutomationNode.prototype.setSelection =
  413. function(start, end) {};
  414. /** @type {string} */
  415. chrome.automation.AutomationNode.prototype.containerLiveStatus;
  416. /** @type {string} */
  417. chrome.automation.AutomationNode.prototype.containerLiveRelevant;
  418. /** @type {boolean} */
  419. chrome.automation.AutomationNode.prototype.containerLiveAtomic;
  420. /** @type {boolean} */
  421. chrome.automation.AutomationNode.prototype.containerLiveBusy;
  422. /** @type {string} */
  423. chrome.automation.AutomationNode.prototype.liveStatus;
  424. /** @type {string} */
  425. chrome.automation.AutomationNode.prototype.liveRelevant;
  426. /** @type {boolean} */
  427. chrome.automation.AutomationNode.prototype.liveAtomic;
  428. /** @type {boolean} */
  429. chrome.automation.AutomationNode.prototype.liveBusy;
  430. /**
  431. * @param {Object} findParams
  432. */
  433. chrome.automation.AutomationNode.prototype.find = function(findParams) {};
  434. /**
  435. * @type {string}
  436. */
  437. chrome.automation.AutomationNode.prototype.inputType;
  438. /**
  439. * @type {(chrome.automation.AutomationNode|undefined)}
  440. */
  441. chrome.automation.AutomationNode.prototype.anchorObject;
  442. /**
  443. * @param {{anchorObject: !chrome.automation.AutomationNode,
  444. * anchorOffset: number,
  445. * focusObject: !chrome.automation.AutomationNode,
  446. * focusOffset: number}} selectionParams
  447. */
  448. chrome.automation.setDocumentSelection = function(selectionParams) {};
  449. /**
  450. * @type {(number|undefined)}
  451. */
  452. chrome.automation.anchorOffset;
  453. /**
  454. * @type {(chrome.automation.AutomationNode|undefined)}
  455. */
  456. chrome.automation.AutomationNode.prototype.focusObject;
  457. /**
  458. * @type {(Array<number>|undefined)}
  459. */
  460. chrome.automation.AutomationNode.prototype.lineBreaks;
  461. /**
  462. * @type {(number|undefined)}
  463. */
  464. chrome.automation.focusOffset;
  465. /** @type {function() : !Object} */
  466. chrome.app.getDetails;