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 * @fileoverview Definitions for the Chromium extensions API used by ChromeVox. | 7 * @fileoverview Definitions for the Chromium extensions API used by ChromeVox. |
| 8 * | 8 * |
| 9 * @externs | 9 * @externs |
| 10 */ | 10 */ |
| (...skipping 939 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 950 | 950 |
| 951 | 951 |
| 952 /** | 952 /** |
| 953 * @param {Function} callback | 953 * @param {Function} callback |
| 954 * @return {boolean} | 954 * @return {boolean} |
| 955 */ | 955 */ |
| 956 ChromeEvent.prototype.hasListener = function(callback) {}; | 956 ChromeEvent.prototype.hasListener = function(callback) {}; |
| 957 | 957 |
| 958 | 958 |
| 959 /** @return {boolean} */ | 959 /** @return {boolean} */ |
| 960 ChromeEvent.prototype.hasListeners = function(callback) {}; | 960 ChromeEvent.prototype.hasListeners = function() {}; |
| 961 | 961 |
| 962 | 962 |
| 963 /** | 963 /** |
| 964 * @constructor | 964 * @constructor |
| 965 */ | 965 */ |
| 966 function Port() {} | 966 function Port() {} |
| 967 | 967 |
| 968 | 968 |
| 969 /** @type {string} */ | 969 /** @type {string} */ |
| 970 Port.prototype.name; | 970 Port.prototype.name; |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1202 * @param {string|!Object|null} keys | 1202 * @param {string|!Object|null} keys |
| 1203 * @param {function()=} opt_callback | 1203 * @param {function()=} opt_callback |
| 1204 */ | 1204 */ |
| 1205 chrome.storage.local.remove = function(keys, opt_callback) {}; | 1205 chrome.storage.local.remove = function(keys, opt_callback) {}; |
| 1206 | 1206 |
| 1207 | 1207 |
| 1208 /** | 1208 /** |
| 1209 * @type {ChromeEvent} | 1209 * @type {ChromeEvent} |
| 1210 */ | 1210 */ |
| 1211 chrome.storage.onChanged; | 1211 chrome.storage.onChanged; |
| 1212 | |
| 1213 | |
| 1214 /** | |
| 1215 * @const | |
| 1216 */ | |
| 1217 chrome.automation = {}; | |
| 1218 | |
| 1219 /** | |
| 1220 * @constructor | |
| 1221 */ | |
| 1222 chrome.automation.AutomationNode = function() {}; | |
| 1223 | |
| 1224 | |
| 1225 /** | |
| 1226 * @type {!Object} | |
| 1227 */ | |
| 1228 chrome.automation.AutomationNode.prototype.attributes; | |
| 1229 | |
| 1230 | |
| 1231 /** | |
| 1232 * @return {chrome.automation.AutomationNode} | |
| 1233 */ | |
| 1234 chrome.automation.AutomationNode.prototype.firstChild = function() {}; | |
| 1235 | |
| 1236 | |
| 1237 /** | |
| 1238 * @return {chrome.automation.AutomationNode} | |
| 1239 */ | |
| 1240 chrome.automation.AutomationNode.prototype.lastChild = function() {}; | |
| 1241 | |
| 1242 | |
| 1243 /** | |
| 1244 * @return {chrome.automation.AutomationNode} | |
| 1245 */ | |
| 1246 chrome.automation.AutomationNode.prototype.nextSibling = function() {}; | |
| 1247 | |
| 1248 | |
| 1249 /** | |
| 1250 * @return {chrome.automation.AutomationNode} | |
| 1251 */ | |
| 1252 chrome.automation.AutomationNode.prototype.previousSibling = function() {}; | |
| 1253 | |
| 1254 | |
| 1255 /** | |
| 1256 * @return {chrome.automation.AutomationNode} | |
| 1257 */ | |
| 1258 chrome.automation.AutomationNode.prototype.parent = function() {}; | |
| 1259 | |
| 1260 | |
| 1261 /** | |
| 1262 * @param {string} eventType | |
|
Peter Lundblad
2014/10/03 12:03:52
Can this be annotated with the actual enum type? I
| |
| 1263 * @param {function(chrome.automation.AutomationNode) : void} callback | |
| 1264 * @param {boolean} capture | |
| 1265 */ | |
| 1266 chrome.automation.AutomationNode.prototype.addEventListener = | |
| 1267 function(eventType, callback, capture) {}; | |
| 1268 | |
| 1269 | |
| 1270 /** | |
| 1271 * @param {string} eventType | |
|
Peter Lundblad
2014/10/03 12:03:53
Same here, could the enum type be used?
| |
| 1272 * @param {function(chrome.automation.AutomationNode) : void} callback | |
| 1273 * @param {boolean} capture | |
| 1274 */ | |
| 1275 chrome.automation.AutomationNode.prototype.removeEventListener = | |
| 1276 function(eventType, callback, capture) {}; | |
| 1277 | |
| 1278 | |
| 1279 /** | |
| 1280 * @param {function(chrome.automation.AutomationNode)} callback | |
| 1281 */ | |
| 1282 chrome.automation.getDesktop = function(callback) {}; | |
| 1283 | |
| 1284 | |
| 1285 /** | |
| 1286 * @param {function(chrome.automation.AutomationNode)} callback | |
| 1287 */ | |
| 1288 chrome.automation.getTree = function(callback) {}; | |
| 1289 | |
| 1290 /** | |
| 1291 * @const | |
| 1292 */ | |
| 1293 chrome.commands = {}; | |
| 1294 | |
| 1295 | |
| 1296 /** | |
| 1297 * @type {ChromeEvent} | |
| 1298 */ | |
| 1299 chrome.commands.onCommand; | |
| 1300 | |
| 1301 // Begin auto generated externs; do not edit. | |
| 1302 // The following was generated from tools/json_schema_compiler/compiler.py. | |
| 1303 /** | |
| 1304 * Possible events fired on an $(ref:automation.AutomationNode). | |
| 1305 * @enum {string} | |
| 1306 */ | |
| 1307 chrome.automation.EventType = { | |
| 1308 activedescendantchanged: 'activedescendantchanged', | |
|
Peter Lundblad
2014/10/03 12:03:53
nit: For this we could leave the actual string val
| |
| 1309 alert: 'alert', | |
| 1310 ariaAttributeChanged: 'ariaAttributeChanged', | |
| 1311 autocorrectionOccured: 'autocorrectionOccured', | |
| 1312 blur: 'blur', | |
| 1313 checkedStateChanged: 'checkedStateChanged', | |
| 1314 childrenChanged: 'childrenChanged', | |
| 1315 focus: 'focus', | |
| 1316 hide: 'hide', | |
| 1317 hover: 'hover', | |
| 1318 invalidStatusChanged: 'invalidStatusChanged', | |
| 1319 layoutComplete: 'layoutComplete', | |
| 1320 liveRegionChanged: 'liveRegionChanged', | |
| 1321 loadComplete: 'loadComplete', | |
| 1322 locationChanged: 'locationChanged', | |
| 1323 menuEnd: 'menuEnd', | |
| 1324 menuListItemSelected: 'menuListItemSelected', | |
| 1325 menuListValueChanged: 'menuListValueChanged', | |
| 1326 menuPopupEnd: 'menuPopupEnd', | |
| 1327 menuPopupStart: 'menuPopupStart', | |
| 1328 menuStart: 'menuStart', | |
| 1329 rowCollapsed: 'rowCollapsed', | |
| 1330 rowCountChanged: 'rowCountChanged', | |
| 1331 rowExpanded: 'rowExpanded', | |
| 1332 scrollPositionChanged: 'scrollPositionChanged', | |
| 1333 scrolledToAnchor: 'scrolledToAnchor', | |
| 1334 selectedChildrenChanged: 'selectedChildrenChanged', | |
| 1335 selectedTextChanged: 'selectedTextChanged', | |
| 1336 selection: 'selection', | |
| 1337 selectionAdd: 'selectionAdd', | |
| 1338 selectionRemove: 'selectionRemove', | |
| 1339 show: 'show', | |
| 1340 textChanged: 'textChanged', | |
| 1341 textInserted: 'textInserted', | |
| 1342 textRemoved: 'textRemoved', | |
| 1343 textSelectionChanged: 'textSelectionChanged', | |
| 1344 valueChanged: 'valueChanged' | |
| 1345 }; | |
| 1346 /** | |
| 1347 * Describes the purpose of an $(ref:automation.AutomationNode). | |
| 1348 * @enum {string} | |
| 1349 */ | |
| 1350 chrome.automation.RoleType = { | |
| 1351 alertDialog: 'alertDialog', | |
| 1352 alert: 'alert', | |
| 1353 annotation: 'annotation', | |
| 1354 application: 'application', | |
| 1355 article: 'article', | |
| 1356 banner: 'banner', | |
| 1357 browser: 'browser', | |
| 1358 busyIndicator: 'busyIndicator', | |
| 1359 button: 'button', | |
| 1360 buttonDropDown: 'buttonDropDown', | |
| 1361 canvas: 'canvas', | |
| 1362 cell: 'cell', | |
| 1363 checkBox: 'checkBox', | |
| 1364 client: 'client', | |
| 1365 colorWell: 'colorWell', | |
| 1366 columnHeader: 'columnHeader', | |
| 1367 column: 'column', | |
| 1368 comboBox: 'comboBox', | |
| 1369 complementary: 'complementary', | |
| 1370 contentInfo: 'contentInfo', | |
| 1371 definition: 'definition', | |
| 1372 descriptionListDetail: 'descriptionListDetail', | |
| 1373 descriptionListTerm: 'descriptionListTerm', | |
| 1374 desktop: 'desktop', | |
| 1375 dialog: 'dialog', | |
| 1376 directory: 'directory', | |
| 1377 disclosureTriangle: 'disclosureTriangle', | |
| 1378 div: 'div', | |
| 1379 document: 'document', | |
| 1380 drawer: 'drawer', | |
| 1381 editableText: 'editableText', | |
| 1382 embeddedObject: 'embeddedObject', | |
| 1383 footer: 'footer', | |
| 1384 form: 'form', | |
| 1385 grid: 'grid', | |
| 1386 group: 'group', | |
| 1387 growArea: 'growArea', | |
| 1388 heading: 'heading', | |
| 1389 helpTag: 'helpTag', | |
| 1390 horizontalRule: 'horizontalRule', | |
| 1391 iframe: 'iframe', | |
| 1392 ignored: 'ignored', | |
| 1393 imageMapLink: 'imageMapLink', | |
| 1394 imageMap: 'imageMap', | |
| 1395 image: 'image', | |
| 1396 incrementor: 'incrementor', | |
| 1397 inlineTextBox: 'inlineTextBox', | |
| 1398 labelText: 'labelText', | |
| 1399 legend: 'legend', | |
| 1400 link: 'link', | |
| 1401 listBoxOption: 'listBoxOption', | |
| 1402 listBox: 'listBox', | |
| 1403 listItem: 'listItem', | |
| 1404 listMarker: 'listMarker', | |
| 1405 list: 'list', | |
| 1406 locationBar: 'locationBar', | |
| 1407 log: 'log', | |
| 1408 main: 'main', | |
| 1409 marquee: 'marquee', | |
| 1410 mathElement: 'mathElement', | |
| 1411 math: 'math', | |
| 1412 matte: 'matte', | |
| 1413 menuBar: 'menuBar', | |
| 1414 menuButton: 'menuButton', | |
| 1415 menuItem: 'menuItem', | |
| 1416 menuListOption: 'menuListOption', | |
| 1417 menuListPopup: 'menuListPopup', | |
| 1418 menu: 'menu', | |
| 1419 navigation: 'navigation', | |
| 1420 note: 'note', | |
| 1421 outline: 'outline', | |
| 1422 pane: 'pane', | |
| 1423 paragraph: 'paragraph', | |
| 1424 popUpButton: 'popUpButton', | |
| 1425 presentational: 'presentational', | |
| 1426 progressIndicator: 'progressIndicator', | |
| 1427 radioButton: 'radioButton', | |
| 1428 radioGroup: 'radioGroup', | |
| 1429 region: 'region', | |
| 1430 rootWebArea: 'rootWebArea', | |
| 1431 rowHeader: 'rowHeader', | |
| 1432 row: 'row', | |
| 1433 rulerMarker: 'rulerMarker', | |
| 1434 ruler: 'ruler', | |
| 1435 svgRoot: 'svgRoot', | |
| 1436 scrollArea: 'scrollArea', | |
| 1437 scrollBar: 'scrollBar', | |
| 1438 seamlessWebArea: 'seamlessWebArea', | |
| 1439 search: 'search', | |
| 1440 sheet: 'sheet', | |
| 1441 slider: 'slider', | |
| 1442 sliderThumb: 'sliderThumb', | |
| 1443 spinButtonPart: 'spinButtonPart', | |
| 1444 spinButton: 'spinButton', | |
| 1445 splitGroup: 'splitGroup', | |
| 1446 splitter: 'splitter', | |
| 1447 staticText: 'staticText', | |
| 1448 status: 'status', | |
| 1449 systemWide: 'systemWide', | |
| 1450 tabGroup: 'tabGroup', | |
| 1451 tabList: 'tabList', | |
| 1452 tabPanel: 'tabPanel', | |
| 1453 tab: 'tab', | |
| 1454 tableHeaderContainer: 'tableHeaderContainer', | |
| 1455 table: 'table', | |
| 1456 textArea: 'textArea', | |
| 1457 textField: 'textField', | |
| 1458 timer: 'timer', | |
| 1459 titleBar: 'titleBar', | |
| 1460 toggleButton: 'toggleButton', | |
| 1461 toolbar: 'toolbar', | |
| 1462 treeGrid: 'treeGrid', | |
| 1463 treeItem: 'treeItem', | |
| 1464 tree: 'tree', | |
| 1465 unknown: 'unknown', | |
| 1466 tooltip: 'tooltip', | |
| 1467 valueIndicator: 'valueIndicator', | |
| 1468 webArea: 'webArea', | |
| 1469 window: 'window' | |
| 1470 }; | |
| 1471 /** | |
| 1472 * Describes characteristics of an $(ref:automation.AutomationNode). | |
| 1473 * @enum {string} | |
| 1474 */ | |
| 1475 chrome.automation.StateType = { | |
| 1476 busy: 'busy', | |
| 1477 checked: 'checked', | |
| 1478 collapsed: 'collapsed', | |
| 1479 default: 'default', | |
| 1480 disabled: 'disabled', | |
| 1481 editable: 'editable', | |
| 1482 enabled: 'enabled', | |
| 1483 expanded: 'expanded', | |
| 1484 focusable: 'focusable', | |
| 1485 focused: 'focused', | |
| 1486 haspopup: 'haspopup', | |
| 1487 hovered: 'hovered', | |
| 1488 indeterminate: 'indeterminate', | |
| 1489 invisible: 'invisible', | |
| 1490 linked: 'linked', | |
| 1491 multiselectable: 'multiselectable', | |
| 1492 offscreen: 'offscreen', | |
| 1493 pressed: 'pressed', | |
| 1494 protected: 'protected', | |
| 1495 readOnly: 'readOnly', | |
| 1496 required: 'required', | |
| 1497 selectable: 'selectable', | |
| 1498 selected: 'selected', | |
| 1499 vertical: 'vertical', | |
| 1500 visited: 'visited' | |
| 1501 }; | |
| 1502 // End auto generated externs; do not edit. | |
| OLD | NEW |