Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(92)

Side by Side Diff: third_party/closure_compiler/externs/chrome_extensions.js

Issue 1034873002: Add a subtle reminder that chrome_extensions.js is overwritten. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fun Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // SSSSSSSSSSSSSSS TTTTTTTTTTTTTTTTTTTTTTT OOOOOOOOO PPPPPPPPPPPPPPPP P
2 // SS:::::::::::::::ST:::::::::::::::::::::T OO:::::::::OO P::::::::::::::: :P
3 // S:::::SSSSSS::::::ST:::::::::::::::::::::T OO:::::::::::::OO P::::::PPPPPP::: ::P
4 // S:::::S SSSSSSST:::::TT:::::::TT:::::TO:::::::OOO:::::::OPP:::::P P:: :::P
5 // S:::::S TTTTTT T:::::T TTTTTTO::::::O O::::::O P::::P P:: :::P
6 // S:::::S T:::::T O:::::O O:::::O P::::P P:: :::P
7 // S::::SSSS P::::PPPPPP::: ::P
8 // SS::::::SSSSS This file is generated. To update it, P::::::::::::: PP
9 // SSS::::::::SS run bump_compiler_version. P::::PPPPPPPPP
10 // SSSSSS::::S P::::P
11 // S:::::S T:::::T O:::::O O:::::O P::::P
12 // S:::::S T:::::T O::::::O O::::::O P::::P
13 // SSSSSSS S:::::S TT:::::::TT O:::::::OOO:::::::OPP::::::PP
14 // S::::::SSSSSS:::::S T:::::::::T OO:::::::::::::OO P::::::::P
15 // S:::::::::::::::SS T:::::::::T OO:::::::::OO P::::::::P
16 // SSSSSSSSSSSSSSS TTTTTTTTTTT OOOOOOOOO PPPPPPPPPP
1 /* 17 /*
2 * Copyright 2009 The Closure Compiler Authors 18 * Copyright 2009 The Closure Compiler Authors
3 * 19 *
4 * Licensed under the Apache License, Version 2.0 (the "License"); 20 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License. 21 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at 22 * You may obtain a copy of the License at
7 * 23 *
8 * http://www.apache.org/licenses/LICENSE-2.0 24 * http://www.apache.org/licenses/LICENSE-2.0
9 * 25 *
10 * Unless required by applicable law or agreed to in writing, software 26 * Unless required by applicable law or agreed to in writing, software
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after
551 567
552 568
553 /** 569 /**
554 * @type {!ChromeEvent} 570 * @type {!ChromeEvent}
555 * @see http://developer.chrome.com/apps/app.window.html#event-onRestored 571 * @see http://developer.chrome.com/apps/app.window.html#event-onRestored
556 */ 572 */
557 chrome.app.window.onRestored; 573 chrome.app.window.onRestored;
558 574
559 575
560 /** 576 /**
577 * Private API.
578 *
579 * @const
580 * @see https://code.google.com/p/chromium/codesearch#chromium/src/chrome/common /extensions/api/audio_modem.idl
581 * @see go/chrome-modem
582 */
583 chrome.audioModem = {};
584
585
586 /**
587 * @typedef {?{
588 * tokenLength: number,
589 * crc: (boolean|undefined),
590 * parity: (boolean|undefined)
591 * }}
592 */
593 chrome.audioModem.TokenEncoding;
594
595
596 /**
597 * @typedef {?{
598 * timeoutMillis: number,
599 * band: string,
600 * encoding: !chrome.audioModem.TokenEncoding
601 * }}
602 */
603 chrome.audioModem.RequestParams;
604
605
606 /** @constructor */
607 chrome.audioModem.ReceivedToken = function() {};
608
609
610 /** @type {!ArrayBuffer} */
611 chrome.audioModem.ReceivedToken.prototype.token;
612
613
614 /** @type {string} */
615 chrome.audioModem.ReceivedToken.prototype.band;
616
617
618 /**
619 * @param {!chrome.audioModem.RequestParams} params
620 * @param {!ArrayBuffer} token
621 * @param {function(string)} callback
622 */
623 chrome.audioModem.transmit = function(params, token, callback) {};
624
625
626 /**
627 * @param {string} band
628 * @param {function(string)} callback
629 */
630 chrome.audioModem.stopTransmit = function(band, callback) {};
631
632
633 /**
634 * @param {!chrome.audioModem.RequestParams} params
635 * @param {function(string)} callback
636 */
637 chrome.audioModem.receive = function(params, callback) {};
638
639
640 /**
641 * @param {string} band
642 * @param {function(string)} callback
643 */
644 chrome.audioModem.stopReceive = function(band, callback) {};
645
646
647 /** @constructor */
648 chrome.audioModem.ReceivedEvent = function() {};
649
650
651 /**
652 * @param {function(!Array<!chrome.audioModem.ReceivedToken>)} callback
653 */
654 chrome.audioModem.ReceivedEvent.prototype.addListener = function(callback) {};
655
656
657 /**
658 * @param {function(!Array<!chrome.audioModem.ReceivedToken>)} callback
659 */
660 chrome.audioModem.ReceivedEvent.prototype.removeListener =
661 function(callback) {};
662
663
664 /**
665 * @param {function(!Array<!chrome.audioModem.ReceivedToken>)} callback
666 * @return {boolean}
667 */
668 chrome.audioModem.ReceivedEvent.prototype.hasListener = function(callback) {};
669
670
671 /**
672 * @return {boolean}
673 */
674 chrome.audioModem.ReceivedEvent.prototype.hasListeners = function() {};
675
676
677 /** @type {!chrome.audioModem.ReceivedEvent} */
678 chrome.audioModem.onReceived;
679
680
681 /** @type {!ChromeStringEvent} */
682 chrome.audioModem.onTransmitFail;
683
684
685 /**
561 * @const 686 * @const
562 * @see https://developer.chrome.com/apps/bluetooth 687 * @see https://developer.chrome.com/apps/bluetooth
563 */ 688 */
564 chrome.bluetooth = function() {}; 689 chrome.bluetooth = function() {};
565 690
566 691
567 692
568 /** 693 /**
569 * @constructor 694 * @constructor
570 * @see https://developer.chrome.com/apps/bluetooth#type-AdapterState 695 * @see https://developer.chrome.com/apps/bluetooth#type-AdapterState
(...skipping 621 matching lines...) Expand 10 before | Expand all | Expand 10 after
1192 1317
1193 1318
1194 /** @type {string|undefined} */ 1319 /** @type {string|undefined} */
1195 chrome.bluetoothLowEnergy.Service.prototype.deviceAddress; 1320 chrome.bluetoothLowEnergy.Service.prototype.deviceAddress;
1196 1321
1197 1322
1198 /** 1323 /**
1199 * @constructor 1324 * @constructor
1200 * @see https://developer.chrome.com/apps/bluetoothLowEnergy#type-Characteristic 1325 * @see https://developer.chrome.com/apps/bluetoothLowEnergy#type-Characteristic
1201 */ 1326 */
1202 chrome.bluetoothLowEnergy.Characteristic; 1327 chrome.bluetoothLowEnergy.Characteristic = function() {};
1203 1328
1204 1329
1205 /** @type {string} */ 1330 /** @type {string} */
1206 chrome.bluetoothLowEnergy.Characteristic.prototype.uuid; 1331 chrome.bluetoothLowEnergy.Characteristic.prototype.uuid;
1207 1332
1208 1333
1209 /** @type {!chrome.bluetoothLowEnergy.Service} */ 1334 /** @type {!chrome.bluetoothLowEnergy.Service} */
1210 chrome.bluetoothLowEnergy.Characteristic.prototype.service; 1335 chrome.bluetoothLowEnergy.Characteristic.prototype.service;
1211 1336
1212 1337
1213 /** @type {!Array.<string>} */ 1338 /** @type {!Array.<string>} */
1214 chrome.bluetoothLowEnergy.Characteristic.prototype.properties; 1339 chrome.bluetoothLowEnergy.Characteristic.prototype.properties;
1215 1340
1216 1341
1217 /** @type {string|undefined} */ 1342 /** @type {string|undefined} */
1218 chrome.bluetoothLowEnergy.Characteristic.prototype.instanceId; 1343 chrome.bluetoothLowEnergy.Characteristic.prototype.instanceId;
1219 1344
1220 1345
1221 /** @type {!ArrayBuffer|undefined} */ 1346 /** @type {!ArrayBuffer|undefined} */
1222 chrome.bluetoothLowEnergy.Characteristic.prototype.value; 1347 chrome.bluetoothLowEnergy.Characteristic.prototype.value;
1223 1348
1224 1349
1225 /** 1350 /**
1226 * @constructor 1351 * @constructor
1227 * @see https://developer.chrome.com/apps/bluetoothLowEnergy#type-Descriptor 1352 * @see https://developer.chrome.com/apps/bluetoothLowEnergy#type-Descriptor
1228 */ 1353 */
1229 chrome.bluetoothLowEnergy.Descriptor; 1354 chrome.bluetoothLowEnergy.Descriptor = function() {};
1230 1355
1231 /** @type {string} */ 1356 /** @type {string} */
1232 chrome.bluetoothLowEnergy.Descriptor.prototype.uuid; 1357 chrome.bluetoothLowEnergy.Descriptor.prototype.uuid;
1233 1358
1234 1359
1235 /** @type {!chrome.bluetoothLowEnergy.Characteristic} */ 1360 /** @type {!chrome.bluetoothLowEnergy.Characteristic} */
1236 chrome.bluetoothLowEnergy.Descriptor.prototype.characteristic; 1361 chrome.bluetoothLowEnergy.Descriptor.prototype.characteristic;
1237 1362
1238 1363
1239 /** @type {string|undefined} */ 1364 /** @type {string|undefined} */
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
1396 function(descriptorId, value, callback) {}; 1521 function(descriptorId, value, callback) {};
1397 1522
1398 1523
1399 /** 1524 /**
1400 * Event whose listeners take a Service parameter. 1525 * Event whose listeners take a Service parameter.
1401 * @constructor 1526 * @constructor
1402 */ 1527 */
1403 chrome.bluetoothLowEnergy.ServiceEvent = function() {}; 1528 chrome.bluetoothLowEnergy.ServiceEvent = function() {};
1404 1529
1405 1530
1406 /** @param {function(!chrome.bluetoothLowEnergy.ServiceEvent): void} callback */ 1531 /** @param {function(!chrome.bluetoothLowEnergy.Service): void} callback */
1407 chrome.bluetoothLowEnergy.ServiceEvent.prototype.addListener = 1532 chrome.bluetoothLowEnergy.ServiceEvent.prototype.addListener =
1408 function(callback) {}; 1533 function(callback) {};
1409 1534
1410 1535
1411 /** @param {function(!chrome.bluetoothLowEnergy.ServiceEvent): void} callback */ 1536 /** @param {function(!chrome.bluetoothLowEnergy.Service): void} callback */
1412 chrome.bluetoothLowEnergy.ServiceEvent.prototype.removeListener = 1537 chrome.bluetoothLowEnergy.ServiceEvent.prototype.removeListener =
1413 function(callback) {}; 1538 function(callback) {};
1414 1539
1415 /** 1540 /**
1416 * @param {function(!chrome.bluetoothLowEnergy.ServiceEvent): void} callback 1541 * @param {function(!chrome.bluetoothLowEnergy.Service): void} callback
1417 * @return {boolean} 1542 * @return {boolean}
1418 */ 1543 */
1419 chrome.bluetoothLowEnergy.ServiceEvent.prototype.hasListener = 1544 chrome.bluetoothLowEnergy.ServiceEvent.prototype.hasListener =
1420 function(callback) {}; 1545 function(callback) {};
1421 1546
1422 1547
1423 /** @return {boolean} */ 1548 /** @return {boolean} */
1424 chrome.bluetoothLowEnergy.ServiceEvent.prototype.hasListeners = 1549 chrome.bluetoothLowEnergy.ServiceEvent.prototype.hasListeners =
1425 function() {}; 1550 function() {};
1426 1551
(...skipping 19 matching lines...) Expand all
1446 1571
1447 1572
1448 /** 1573 /**
1449 * Event whose listeners take a Characteristic parameter. 1574 * Event whose listeners take a Characteristic parameter.
1450 * @constructor 1575 * @constructor
1451 */ 1576 */
1452 chrome.bluetoothLowEnergy.CharacteristicEvent = function() {}; 1577 chrome.bluetoothLowEnergy.CharacteristicEvent = function() {};
1453 1578
1454 1579
1455 /** 1580 /**
1456 * @param {function(!chrome.bluetoothLowEnergy.CharacteristicEvent): void} 1581 * @param {function(!chrome.bluetoothLowEnergy.Characteristic): void}
1457 * callback 1582 * callback
1458 */ 1583 */
1459 chrome.bluetoothLowEnergy.CharacteristicEvent.prototype.addListener = 1584 chrome.bluetoothLowEnergy.CharacteristicEvent.prototype.addListener =
1460 function(callback) {}; 1585 function(callback) {};
1461 1586
1462 1587
1463 /** 1588 /**
1464 * @param {function(!chrome.bluetoothLowEnergy.CharacteristicEvent): void} 1589 * @param {function(!chrome.bluetoothLowEnergy.Characteristic): void}
1465 * callback 1590 * callback
1466 */ 1591 */
1467 chrome.bluetoothLowEnergy.CharacteristicEvent.prototype.removeListener = 1592 chrome.bluetoothLowEnergy.CharacteristicEvent.prototype.removeListener =
1468 function(callback) {}; 1593 function(callback) {};
1469 1594
1470 1595
1471 /** 1596 /**
1472 * @param {function(!chrome.bluetoothLowEnergy.CharacteristicEvent): void} 1597 * @param {function(!chrome.bluetoothLowEnergy.Characteristic): void}
1473 * callback 1598 * callback
1474 * @return {boolean} 1599 * @return {boolean}
1475 */ 1600 */
1476 chrome.bluetoothLowEnergy.CharacteristicEvent.prototype.hasListener = 1601 chrome.bluetoothLowEnergy.CharacteristicEvent.prototype.hasListener =
1477 function(callback) {}; 1602 function(callback) {};
1478 1603
1479 1604
1480 /** @return {boolean} */ 1605 /** @return {boolean} */
1481 chrome.bluetoothLowEnergy.CharacteristicEvent.prototype.hasListeners = 1606 chrome.bluetoothLowEnergy.CharacteristicEvent.prototype.hasListeners =
1482 function() {}; 1607 function() {};
1483 1608
1484 1609
1485 /** 1610 /**
1486 * @type {!chrome.bluetoothLowEnergy.CharacteristicEvent} 1611 * @type {!chrome.bluetoothLowEnergy.CharacteristicEvent}
1487 * @see https://developer.chrome.com/apps/bluetoothLowEnergy#event-onCharacteris ticValueChanged 1612 * @see https://developer.chrome.com/apps/bluetoothLowEnergy#event-onCharacteris ticValueChanged
1488 */ 1613 */
1489 chrome.bluetoothLowEnergy.onCharacteristicValueChanged; 1614 chrome.bluetoothLowEnergy.onCharacteristicValueChanged;
1490 1615
1491 1616
1492 /** 1617 /**
1493 * Event whose listeners take a Characteristic parameter. 1618 * Event whose listeners take a Characteristic parameter.
1494 * @constructor 1619 * @constructor
1495 */ 1620 */
1496 chrome.bluetoothLowEnergy.DescriptorEvent = function() {}; 1621 chrome.bluetoothLowEnergy.DescriptorEvent = function() {};
1497 1622
1498 1623
1499 /** 1624 /**
1500 * @param {function(!chrome.bluetoothLowEnergy.DescriptorEvent): void} 1625 * @param {function(!chrome.bluetoothLowEnergy.Descriptor): void}
1501 * callback 1626 * callback
1502 */ 1627 */
1503 chrome.bluetoothLowEnergy.DescriptorEvent.prototype.addListener = 1628 chrome.bluetoothLowEnergy.DescriptorEvent.prototype.addListener =
1504 function(callback) {}; 1629 function(callback) {};
1505 1630
1506 1631
1507 /** 1632 /**
1508 * @param {function(!chrome.bluetoothLowEnergy.DescriptorEvent): void} 1633 * @param {function(!chrome.bluetoothLowEnergy.Descriptor): void}
1509 * callback 1634 * callback
1510 */ 1635 */
1511 chrome.bluetoothLowEnergy.DescriptorEvent.prototype.removeListener = 1636 chrome.bluetoothLowEnergy.DescriptorEvent.prototype.removeListener =
1512 function(callback) {}; 1637 function(callback) {};
1513 1638
1514 1639
1515 /** 1640 /**
1516 * @param {function(!chrome.bluetoothLowEnergy.DescriptorEvent): void} callback 1641 * @param {function(!chrome.bluetoothLowEnergy.Descriptor): void} callback
1517 * @return {boolean} 1642 * @return {boolean}
1518 */ 1643 */
1519 chrome.bluetoothLowEnergy.DescriptorEvent.prototype.hasListener = 1644 chrome.bluetoothLowEnergy.DescriptorEvent.prototype.hasListener =
1520 function(callback) {}; 1645 function(callback) {};
1521 1646
1522 1647
1523 /** @return {boolean} */ 1648 /** @return {boolean} */
1524 chrome.bluetoothLowEnergy.DescriptorEvent.prototype.hasListeners = 1649 chrome.bluetoothLowEnergy.DescriptorEvent.prototype.hasListeners =
1525 function() {}; 1650 function() {};
1526 1651
(...skipping 957 matching lines...) Expand 10 before | Expand all | Expand 10 after
2484 2609
2485 2610
2486 /** 2611 /**
2487 * @type {!ChromeEvent} 2612 * @type {!ChromeEvent}
2488 * @deprecated Please use tabs.onActivated. 2613 * @deprecated Please use tabs.onActivated.
2489 */ 2614 */
2490 chrome.tabs.onSelectionChanged; 2615 chrome.tabs.onSelectionChanged;
2491 2616
2492 2617
2493 /** 2618 /**
2619 * @see https://developer.chrome.com/extensions/topSites
2620 * @const
2621 */
2622 chrome.topSites = {};
2623
2624
2625
2626 /**
2627 * @constructor
2628 * @see https://developer.chrome.com/extensions/topSites#type-MostVisitedURL
2629 */
2630 chrome.topSites.MostVisitedURL = function() {};
2631
2632
2633 /** @type {string} */
2634 chrome.topSites.MostVisitedURL.prototype.url;
2635
2636
2637 /** @type {string} */
2638 chrome.topSites.MostVisitedURL.prototype.title;
2639
2640
2641 /**
2642 * Gets a list of top sites.
2643 * @param {function(!Array<!chrome.topSites.MostVisitedURL>)} callback Invoked
2644 * with a list of most visited URLs.
2645 * @see https://developer.chrome.com/extensions/topSites#method-get
2646 */
2647 chrome.topSites.get = function(callback) {};
2648
2649
2650 /**
2494 * @const 2651 * @const
2495 * @see https://developer.chrome.com/extensions/windows.html 2652 * @see https://developer.chrome.com/extensions/windows.html
2496 */ 2653 */
2497 chrome.windows = {}; 2654 chrome.windows = {};
2498 2655
2499 2656
2500 /** 2657 /**
2501 * @param {Object=} opt_createData May have many keys to specify parameters. 2658 * @param {Object=} opt_createData May have many keys to specify parameters.
2502 * Or the callback. 2659 * Or the callback.
2503 * @param {function(ChromeWindow): void=} opt_callback Callback. 2660 * @param {function(ChromeWindow): void=} opt_callback Callback.
(...skipping 4364 matching lines...) Expand 10 before | Expand all | Expand 10 after
6868 * @return {string} The ID that can be passed to restoreEntry to regain access 7025 * @return {string} The ID that can be passed to restoreEntry to regain access
6869 * to the given file entry. 7026 * to the given file entry.
6870 * @see http://developer.chrome.com/apps/fileSystem.html#method-retainEntry 7027 * @see http://developer.chrome.com/apps/fileSystem.html#method-retainEntry
6871 */ 7028 */
6872 chrome.fileSystem.retainEntry = function(entry) {}; 7029 chrome.fileSystem.retainEntry = function(entry) {};
6873 7030
6874 7031
6875 /** 7032 /**
6876 * @param {!chrome.fileSystem.RequestFileSystemOptions} options Options for the 7033 * @param {!chrome.fileSystem.RequestFileSystemOptions} options Options for the
6877 * request. 7034 * request.
6878 * @param {!function(FileSystem)} callback A completion callback. 7035 * @param {function(!FileSystem=)} callback A completion callback.
6879 * @see http://developer.chrome.com/apps/fileSystem.html#method-requestFileSyste m 7036 * @see http://developer.chrome.com/apps/fileSystem.html#method-requestFileSyste m
6880 */ 7037 */
6881 chrome.fileSystem.requestFileSystem = function(options, callback) {}; 7038 chrome.fileSystem.requestFileSystem = function(options, callback) {};
6882 7039
6883 7040
6884 /** 7041 /**
6885 * @const 7042 * @const
6886 * @see https://developer.chrome.com/apps/syncFileSystem 7043 * @see https://developer.chrome.com/apps/syncFileSystem
6887 */ 7044 */
6888 chrome.syncFileSystem = {}; 7045 chrome.syncFileSystem = {};
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
7050 * Gets an array of all the alarms. 7207 * Gets an array of all the alarms.
7051 * @param {function(!Array.<!chrome.alarms.Alarm>)} callback 7208 * @param {function(!Array.<!chrome.alarms.Alarm>)} callback
7052 * @see http://developer.chrome.com/extensions/alarms.html#method-getAll 7209 * @see http://developer.chrome.com/extensions/alarms.html#method-getAll
7053 */ 7210 */
7054 chrome.alarms.getAll = function(callback) {}; 7211 chrome.alarms.getAll = function(callback) {};
7055 7212
7056 7213
7057 /** 7214 /**
7058 * Clears the alarm with the given name. 7215 * Clears the alarm with the given name.
7059 * @param {string=} opt_name 7216 * @param {string=} opt_name
7217 * @param {function(boolean)=} opt_callback A callback that will be called with
7218 * a boolean for whether the alarm was cleared.
7060 * @see http://developer.chrome.com/extensions/alarms.html#method-clear 7219 * @see http://developer.chrome.com/extensions/alarms.html#method-clear
7061 */ 7220 */
7062 chrome.alarms.clear = function(opt_name) {}; 7221 chrome.alarms.clear = function(opt_name, opt_callback) {};
7063 7222
7064 7223
7065 /** 7224 /**
7066 * Clears all alarms. 7225 * Clears all alarms.
7226 * @param {function(boolean)=} opt_callback A callback that will be called with
7227 * a boolean for whether the alarms were cleared.
7067 * @see http://developer.chrome.com/extensions/alarms.html#method-clearAll 7228 * @see http://developer.chrome.com/extensions/alarms.html#method-clearAll
7068 */ 7229 */
7069 chrome.alarms.clearAll = function() {}; 7230 chrome.alarms.clearAll = function(opt_callback) {};
7070 7231
7071 7232
7072 /** 7233 /**
7073 * Fired when an alarm has elapsed. Useful for event pages. 7234 * Fired when an alarm has elapsed. Useful for event pages.
7074 * @type {!chrome.alarms.AlarmEvent} 7235 * @type {!chrome.alarms.AlarmEvent}
7075 * @see http://developer.chrome.com/extensions/alarms.html#event-onAlarm 7236 * @see http://developer.chrome.com/extensions/alarms.html#event-onAlarm
7076 */ 7237 */
7077 chrome.alarms.onAlarm; 7238 chrome.alarms.onAlarm;
7078 7239
7079 7240
(...skipping 1296 matching lines...) Expand 10 before | Expand all | Expand 10 after
8376 8537
8377 /** 8538 /**
8378 * @param {string} guid 8539 * @param {string} guid
8379 * @param {function()=} opt_callback 8540 * @param {function()=} opt_callback
8380 */ 8541 */
8381 chrome.networkingPrivate.startDisconnect = function(guid, opt_callback) {}; 8542 chrome.networkingPrivate.startDisconnect = function(guid, opt_callback) {};
8382 8543
8383 8544
8384 /** 8545 /**
8385 * @param {string} guid 8546 * @param {string} guid
8386 * @param {string} opt_carrier 8547 * @param {(string|function())=} opt_carrierOrCallback
8387 * @param {function()=} opt_callback 8548 * @param {function()=} opt_callback
8388 */ 8549 */
8389 chrome.networkingPrivate.startActivate = 8550 chrome.networkingPrivate.startActivate =
8390 function(guid, opt_carrier, opt_callback) {}; 8551 function(guid, opt_carrierOrCallback, opt_callback) {};
8391 8552
8392 8553
8393 /** 8554 /**
8394 * @param {!chrome.networkingPrivate.VerificationProperties} verificationInfo 8555 * @param {!chrome.networkingPrivate.VerificationProperties} verificationInfo
8395 * @param {function(boolean)} callback 8556 * @param {function(boolean)} callback
8396 */ 8557 */
8397 chrome.networkingPrivate.verifyDestination = 8558 chrome.networkingPrivate.verifyDestination =
8398 function(verificationInfo, callback) {}; 8559 function(verificationInfo, callback) {};
8399 8560
8400 8561
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
8569 * not be done while connected to the device's network. Callback is called 8730 * not be done while connected to the device's network. Callback is called
8570 * with true if wifi password was cached and false if it was unavailable. 8731 * with true if wifi password was cached and false if it was unavailable.
8571 * @param {string} ssid 8732 * @param {string} ssid
8572 * @param {function(boolean): void} callback 8733 * @param {function(boolean): void} callback
8573 */ 8734 */
8574 chrome.gcdPrivate.prefetchWifiPassword = function(ssid, callback) {}; 8735 chrome.gcdPrivate.prefetchWifiPassword = function(ssid, callback) {};
8575 8736
8576 8737
8577 /** 8738 /**
8578 * Establish the session. 8739 * Establish the session.
8740 * TODO(user): Deprecated. Remove after app updated to use createSession.
8579 * @param {string} ipAddress 8741 * @param {string} ipAddress
8580 * @param {number} port 8742 * @param {number} port
8581 * @param {function(number, string, !Array.<string>): void} 8743 * @param {function(number, string, !Array.<string>): void}
8582 * callback Called when the session is established or on error. 1st param, 8744 * callback Called when the session is established or on error. 1st param,
8583 * |sessionId|, is the session ID (identifies the session for future calls). 8745 * |sessionId|, is the session ID (identifies the session for future calls).
8584 * 2nd param, |status|, is the status (success or type of error). 3rd param, 8746 * 2nd param, |status|, is the status (success or type of error). 3rd param,
8585 * |pairingTypes|, is a list of pairing types supported by this device. 8747 * |pairingTypes|, is a list of pairing types supported by this device.
8586 */ 8748 */
8587 chrome.gcdPrivate.establishSession = function(ipAddress, port, callback) {}; 8749 chrome.gcdPrivate.establishSession = function(ipAddress, port, callback) {};
8588 8750
8589 8751
8590 /** 8752 /**
8753 * Create new pairing session.
8754 * @param {string} serviceName The mDNS service name of the device.
8755 * @param {function(number, string, !Array.<string>): void}
8756 * callback Called when the session is established or on error. 1st param,
8757 * |sessionId|, is the session ID (identifies the session for future calls).
8758 * 2nd param, |status|, is the status (success or type of error). 3rd param,
8759 * |pairingTypes|, is a list of pairing types supported by this device.
8760 */
8761 chrome.gcdPrivate.createSession = function(serviceName, callback) {};
8762
8763
8764 /**
8591 * Start pairing with the selected method. 8765 * Start pairing with the selected method.
8592 * @param {number} sessionId 8766 * @param {number} sessionId
8593 * @param {string} pairingType 8767 * @param {string} pairingType
8594 * @param {function(string): void} callback 8768 * @param {function(string): void} callback
8595 */ 8769 */
8596 chrome.gcdPrivate.startPairing = function(sessionId, pairingType, callback) {}; 8770 chrome.gcdPrivate.startPairing = function(sessionId, pairingType, callback) {};
8597 8771
8598 8772
8599 /** 8773 /**
8600 * Confirm pairing code. 8774 * Confirm pairing code.
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
8833 9007
8834 9008
8835 /** 9009 /**
8836 * Installs the given app ID. 9010 * Installs the given app ID.
8837 * @param {string} id 9011 * @param {string} id
8838 * @param {function(string, string): void=} opt_callback Response callback that 9012 * @param {function(string, string): void=} opt_callback Response callback that
8839 * returns two string: (1) an error string (or empty string on success) and 9013 * returns two string: (1) an error string (or empty string on success) and
8840 * (2) an error code in case of error 9014 * (2) an error code in case of error
8841 */ 9015 */
8842 chrome.inlineInstallPrivate.install = function(id, opt_callback) {}; 9016 chrome.inlineInstallPrivate.install = function(id, opt_callback) {};
OLDNEW
« no previous file with comments | « third_party/closure_compiler/bump_compiler_version ('k') | ui/file_manager/image_loader/image_loader.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698