Commit b997d1d0 authored by dbeam's avatar dbeam Committed by Commit bot

Add a subtle reminder that chrome_extensions.js is overwritten.

Also update from github in the process. Leaves externs currently pending
review as parts of Chrome already rely on them.

R=tbreisacher@chromium.org,hirono@chromium.org
BUG=none

Review URL: https://codereview.chromium.org/1034873002

Cr-Commit-Position: refs/heads/master@{#322471}
parent b8dabc6e
...@@ -32,7 +32,24 @@ fi ...@@ -32,7 +32,24 @@ fi
echo "Copying compiler.jar and chrome_extensions.js" echo "Copying compiler.jar and chrome_extensions.js"
cp build/compiler.jar "${SCRIPT_DIR}/compiler/" cp build/compiler.jar "${SCRIPT_DIR}/compiler/"
cp contrib/externs/chrome_extensions.js "${SCRIPT_DIR}/externs/" (cat <<EOT && cat contrib/externs/chrome_extensions.js) > "${SCRIPT_DIR}/externs/chrome_extensions.js"
// SSSSSSSSSSSSSSS TTTTTTTTTTTTTTTTTTTTTTT OOOOOOOOO PPPPPPPPPPPPPPPPP
// SS:::::::::::::::ST:::::::::::::::::::::T OO:::::::::OO P::::::::::::::::P
// S:::::SSSSSS::::::ST:::::::::::::::::::::T OO:::::::::::::OO P::::::PPPPPP:::::P
// S:::::S SSSSSSST:::::TT:::::::TT:::::TO:::::::OOO:::::::OPP:::::P P:::::P
// S:::::S TTTTTT T:::::T TTTTTTO::::::O O::::::O P::::P P:::::P
// S:::::S T:::::T O:::::O O:::::O P::::P P:::::P
// S::::SSSS P::::PPPPPP:::::P
// SS::::::SSSSS This file is generated. To update it, P:::::::::::::PP
// SSS::::::::SS run bump_compiler_version. P::::PPPPPPPPP
// SSSSSS::::S P::::P
// S:::::S T:::::T O:::::O O:::::O P::::P
// S:::::S T:::::T O::::::O O::::::O P::::P
// SSSSSSS S:::::S TT:::::::TT O:::::::OOO:::::::OPP::::::PP
// S::::::SSSSSS:::::S T:::::::::T OO:::::::::::::OO P::::::::P
// S:::::::::::::::SS T:::::::::T OO:::::::::OO P::::::::P
// SSSSSSSSSSSSSSS TTTTTTTTTTT OOOOOOOOO PPPPPPPPPP
EOT
echo "Rebuilding runner.jar" echo "Rebuilding runner.jar"
"${SCRIPT_DIR}/runner/build_runner_jar.py" "${SCRIPT_DIR}/runner/build_runner_jar.py"
......
// SSSSSSSSSSSSSSS TTTTTTTTTTTTTTTTTTTTTTT OOOOOOOOO PPPPPPPPPPPPPPPPP
// SS:::::::::::::::ST:::::::::::::::::::::T OO:::::::::OO P::::::::::::::::P
// S:::::SSSSSS::::::ST:::::::::::::::::::::T OO:::::::::::::OO P::::::PPPPPP:::::P
// S:::::S SSSSSSST:::::TT:::::::TT:::::TO:::::::OOO:::::::OPP:::::P P:::::P
// S:::::S TTTTTT T:::::T TTTTTTO::::::O O::::::O P::::P P:::::P
// S:::::S T:::::T O:::::O O:::::O P::::P P:::::P
// S::::SSSS P::::PPPPPP:::::P
// SS::::::SSSSS This file is generated. To update it, P:::::::::::::PP
// SSS::::::::SS run bump_compiler_version. P::::PPPPPPPPP
// SSSSSS::::S P::::P
// S:::::S T:::::T O:::::O O:::::O P::::P
// S:::::S T:::::T O::::::O O::::::O P::::P
// SSSSSSS S:::::S TT:::::::TT O:::::::OOO:::::::OPP::::::PP
// S::::::SSSSSS:::::S T:::::::::T OO:::::::::::::OO P::::::::P
// S:::::::::::::::SS T:::::::::T OO:::::::::OO P::::::::P
// SSSSSSSSSSSSSSS TTTTTTTTTTT OOOOOOOOO PPPPPPPPPP
/* /*
* Copyright 2009 The Closure Compiler Authors * Copyright 2009 The Closure Compiler Authors
* *
...@@ -557,6 +573,115 @@ chrome.app.window.onMinimized; ...@@ -557,6 +573,115 @@ chrome.app.window.onMinimized;
chrome.app.window.onRestored; chrome.app.window.onRestored;
/**
* Private API.
*
* @const
* @see https://code.google.com/p/chromium/codesearch#chromium/src/chrome/common/extensions/api/audio_modem.idl
* @see go/chrome-modem
*/
chrome.audioModem = {};
/**
* @typedef {?{
* tokenLength: number,
* crc: (boolean|undefined),
* parity: (boolean|undefined)
* }}
*/
chrome.audioModem.TokenEncoding;
/**
* @typedef {?{
* timeoutMillis: number,
* band: string,
* encoding: !chrome.audioModem.TokenEncoding
* }}
*/
chrome.audioModem.RequestParams;
/** @constructor */
chrome.audioModem.ReceivedToken = function() {};
/** @type {!ArrayBuffer} */
chrome.audioModem.ReceivedToken.prototype.token;
/** @type {string} */
chrome.audioModem.ReceivedToken.prototype.band;
/**
* @param {!chrome.audioModem.RequestParams} params
* @param {!ArrayBuffer} token
* @param {function(string)} callback
*/
chrome.audioModem.transmit = function(params, token, callback) {};
/**
* @param {string} band
* @param {function(string)} callback
*/
chrome.audioModem.stopTransmit = function(band, callback) {};
/**
* @param {!chrome.audioModem.RequestParams} params
* @param {function(string)} callback
*/
chrome.audioModem.receive = function(params, callback) {};
/**
* @param {string} band
* @param {function(string)} callback
*/
chrome.audioModem.stopReceive = function(band, callback) {};
/** @constructor */
chrome.audioModem.ReceivedEvent = function() {};
/**
* @param {function(!Array<!chrome.audioModem.ReceivedToken>)} callback
*/
chrome.audioModem.ReceivedEvent.prototype.addListener = function(callback) {};
/**
* @param {function(!Array<!chrome.audioModem.ReceivedToken>)} callback
*/
chrome.audioModem.ReceivedEvent.prototype.removeListener =
function(callback) {};
/**
* @param {function(!Array<!chrome.audioModem.ReceivedToken>)} callback
* @return {boolean}
*/
chrome.audioModem.ReceivedEvent.prototype.hasListener = function(callback) {};
/**
* @return {boolean}
*/
chrome.audioModem.ReceivedEvent.prototype.hasListeners = function() {};
/** @type {!chrome.audioModem.ReceivedEvent} */
chrome.audioModem.onReceived;
/** @type {!ChromeStringEvent} */
chrome.audioModem.onTransmitFail;
/** /**
* @const * @const
* @see https://developer.chrome.com/apps/bluetooth * @see https://developer.chrome.com/apps/bluetooth
...@@ -1199,7 +1324,7 @@ chrome.bluetoothLowEnergy.Service.prototype.deviceAddress; ...@@ -1199,7 +1324,7 @@ chrome.bluetoothLowEnergy.Service.prototype.deviceAddress;
* @constructor * @constructor
* @see https://developer.chrome.com/apps/bluetoothLowEnergy#type-Characteristic * @see https://developer.chrome.com/apps/bluetoothLowEnergy#type-Characteristic
*/ */
chrome.bluetoothLowEnergy.Characteristic; chrome.bluetoothLowEnergy.Characteristic = function() {};
/** @type {string} */ /** @type {string} */
...@@ -1226,7 +1351,7 @@ chrome.bluetoothLowEnergy.Characteristic.prototype.value; ...@@ -1226,7 +1351,7 @@ chrome.bluetoothLowEnergy.Characteristic.prototype.value;
* @constructor * @constructor
* @see https://developer.chrome.com/apps/bluetoothLowEnergy#type-Descriptor * @see https://developer.chrome.com/apps/bluetoothLowEnergy#type-Descriptor
*/ */
chrome.bluetoothLowEnergy.Descriptor; chrome.bluetoothLowEnergy.Descriptor = function() {};
/** @type {string} */ /** @type {string} */
chrome.bluetoothLowEnergy.Descriptor.prototype.uuid; chrome.bluetoothLowEnergy.Descriptor.prototype.uuid;
...@@ -1403,17 +1528,17 @@ chrome.bluetoothLowEnergy.writeDescriptorValue = ...@@ -1403,17 +1528,17 @@ chrome.bluetoothLowEnergy.writeDescriptorValue =
chrome.bluetoothLowEnergy.ServiceEvent = function() {}; chrome.bluetoothLowEnergy.ServiceEvent = function() {};
/** @param {function(!chrome.bluetoothLowEnergy.ServiceEvent): void} callback */ /** @param {function(!chrome.bluetoothLowEnergy.Service): void} callback */
chrome.bluetoothLowEnergy.ServiceEvent.prototype.addListener = chrome.bluetoothLowEnergy.ServiceEvent.prototype.addListener =
function(callback) {}; function(callback) {};
/** @param {function(!chrome.bluetoothLowEnergy.ServiceEvent): void} callback */ /** @param {function(!chrome.bluetoothLowEnergy.Service): void} callback */
chrome.bluetoothLowEnergy.ServiceEvent.prototype.removeListener = chrome.bluetoothLowEnergy.ServiceEvent.prototype.removeListener =
function(callback) {}; function(callback) {};
/** /**
* @param {function(!chrome.bluetoothLowEnergy.ServiceEvent): void} callback * @param {function(!chrome.bluetoothLowEnergy.Service): void} callback
* @return {boolean} * @return {boolean}
*/ */
chrome.bluetoothLowEnergy.ServiceEvent.prototype.hasListener = chrome.bluetoothLowEnergy.ServiceEvent.prototype.hasListener =
...@@ -1453,7 +1578,7 @@ chrome.bluetoothLowEnergy.CharacteristicEvent = function() {}; ...@@ -1453,7 +1578,7 @@ chrome.bluetoothLowEnergy.CharacteristicEvent = function() {};
/** /**
* @param {function(!chrome.bluetoothLowEnergy.CharacteristicEvent): void} * @param {function(!chrome.bluetoothLowEnergy.Characteristic): void}
* callback * callback
*/ */
chrome.bluetoothLowEnergy.CharacteristicEvent.prototype.addListener = chrome.bluetoothLowEnergy.CharacteristicEvent.prototype.addListener =
...@@ -1461,7 +1586,7 @@ chrome.bluetoothLowEnergy.CharacteristicEvent.prototype.addListener = ...@@ -1461,7 +1586,7 @@ chrome.bluetoothLowEnergy.CharacteristicEvent.prototype.addListener =
/** /**
* @param {function(!chrome.bluetoothLowEnergy.CharacteristicEvent): void} * @param {function(!chrome.bluetoothLowEnergy.Characteristic): void}
* callback * callback
*/ */
chrome.bluetoothLowEnergy.CharacteristicEvent.prototype.removeListener = chrome.bluetoothLowEnergy.CharacteristicEvent.prototype.removeListener =
...@@ -1469,7 +1594,7 @@ chrome.bluetoothLowEnergy.CharacteristicEvent.prototype.removeListener = ...@@ -1469,7 +1594,7 @@ chrome.bluetoothLowEnergy.CharacteristicEvent.prototype.removeListener =
/** /**
* @param {function(!chrome.bluetoothLowEnergy.CharacteristicEvent): void} * @param {function(!chrome.bluetoothLowEnergy.Characteristic): void}
* callback * callback
* @return {boolean} * @return {boolean}
*/ */
...@@ -1497,7 +1622,7 @@ chrome.bluetoothLowEnergy.DescriptorEvent = function() {}; ...@@ -1497,7 +1622,7 @@ chrome.bluetoothLowEnergy.DescriptorEvent = function() {};
/** /**
* @param {function(!chrome.bluetoothLowEnergy.DescriptorEvent): void} * @param {function(!chrome.bluetoothLowEnergy.Descriptor): void}
* callback * callback
*/ */
chrome.bluetoothLowEnergy.DescriptorEvent.prototype.addListener = chrome.bluetoothLowEnergy.DescriptorEvent.prototype.addListener =
...@@ -1505,7 +1630,7 @@ chrome.bluetoothLowEnergy.DescriptorEvent.prototype.addListener = ...@@ -1505,7 +1630,7 @@ chrome.bluetoothLowEnergy.DescriptorEvent.prototype.addListener =
/** /**
* @param {function(!chrome.bluetoothLowEnergy.DescriptorEvent): void} * @param {function(!chrome.bluetoothLowEnergy.Descriptor): void}
* callback * callback
*/ */
chrome.bluetoothLowEnergy.DescriptorEvent.prototype.removeListener = chrome.bluetoothLowEnergy.DescriptorEvent.prototype.removeListener =
...@@ -1513,7 +1638,7 @@ chrome.bluetoothLowEnergy.DescriptorEvent.prototype.removeListener = ...@@ -1513,7 +1638,7 @@ chrome.bluetoothLowEnergy.DescriptorEvent.prototype.removeListener =
/** /**
* @param {function(!chrome.bluetoothLowEnergy.DescriptorEvent): void} callback * @param {function(!chrome.bluetoothLowEnergy.Descriptor): void} callback
* @return {boolean} * @return {boolean}
*/ */
chrome.bluetoothLowEnergy.DescriptorEvent.prototype.hasListener = chrome.bluetoothLowEnergy.DescriptorEvent.prototype.hasListener =
...@@ -2490,6 +2615,38 @@ chrome.tabs.onReplaced; ...@@ -2490,6 +2615,38 @@ chrome.tabs.onReplaced;
chrome.tabs.onSelectionChanged; chrome.tabs.onSelectionChanged;
/**
* @see https://developer.chrome.com/extensions/topSites
* @const
*/
chrome.topSites = {};
/**
* @constructor
* @see https://developer.chrome.com/extensions/topSites#type-MostVisitedURL
*/
chrome.topSites.MostVisitedURL = function() {};
/** @type {string} */
chrome.topSites.MostVisitedURL.prototype.url;
/** @type {string} */
chrome.topSites.MostVisitedURL.prototype.title;
/**
* Gets a list of top sites.
* @param {function(!Array<!chrome.topSites.MostVisitedURL>)} callback Invoked
* with a list of most visited URLs.
* @see https://developer.chrome.com/extensions/topSites#method-get
*/
chrome.topSites.get = function(callback) {};
/** /**
* @const * @const
* @see https://developer.chrome.com/extensions/windows.html * @see https://developer.chrome.com/extensions/windows.html
...@@ -6875,7 +7032,7 @@ chrome.fileSystem.retainEntry = function(entry) {}; ...@@ -6875,7 +7032,7 @@ chrome.fileSystem.retainEntry = function(entry) {};
/** /**
* @param {!chrome.fileSystem.RequestFileSystemOptions} options Options for the * @param {!chrome.fileSystem.RequestFileSystemOptions} options Options for the
* request. * request.
* @param {!function(FileSystem)} callback A completion callback. * @param {function(!FileSystem=)} callback A completion callback.
* @see http://developer.chrome.com/apps/fileSystem.html#method-requestFileSystem * @see http://developer.chrome.com/apps/fileSystem.html#method-requestFileSystem
*/ */
chrome.fileSystem.requestFileSystem = function(options, callback) {}; chrome.fileSystem.requestFileSystem = function(options, callback) {};
...@@ -7057,16 +7214,20 @@ chrome.alarms.getAll = function(callback) {}; ...@@ -7057,16 +7214,20 @@ chrome.alarms.getAll = function(callback) {};
/** /**
* Clears the alarm with the given name. * Clears the alarm with the given name.
* @param {string=} opt_name * @param {string=} opt_name
* @param {function(boolean)=} opt_callback A callback that will be called with
* a boolean for whether the alarm was cleared.
* @see http://developer.chrome.com/extensions/alarms.html#method-clear * @see http://developer.chrome.com/extensions/alarms.html#method-clear
*/ */
chrome.alarms.clear = function(opt_name) {}; chrome.alarms.clear = function(opt_name, opt_callback) {};
/** /**
* Clears all alarms. * Clears all alarms.
* @param {function(boolean)=} opt_callback A callback that will be called with
* a boolean for whether the alarms were cleared.
* @see http://developer.chrome.com/extensions/alarms.html#method-clearAll * @see http://developer.chrome.com/extensions/alarms.html#method-clearAll
*/ */
chrome.alarms.clearAll = function() {}; chrome.alarms.clearAll = function(opt_callback) {};
/** /**
...@@ -8383,11 +8544,11 @@ chrome.networkingPrivate.startDisconnect = function(guid, opt_callback) {}; ...@@ -8383,11 +8544,11 @@ chrome.networkingPrivate.startDisconnect = function(guid, opt_callback) {};
/** /**
* @param {string} guid * @param {string} guid
* @param {string} opt_carrier * @param {(string|function())=} opt_carrierOrCallback
* @param {function()=} opt_callback * @param {function()=} opt_callback
*/ */
chrome.networkingPrivate.startActivate = chrome.networkingPrivate.startActivate =
function(guid, opt_carrier, opt_callback) {}; function(guid, opt_carrierOrCallback, opt_callback) {};
/** /**
...@@ -8576,6 +8737,7 @@ chrome.gcdPrivate.prefetchWifiPassword = function(ssid, callback) {}; ...@@ -8576,6 +8737,7 @@ chrome.gcdPrivate.prefetchWifiPassword = function(ssid, callback) {};
/** /**
* Establish the session. * Establish the session.
* TODO(user): Deprecated. Remove after app updated to use createSession.
* @param {string} ipAddress * @param {string} ipAddress
* @param {number} port * @param {number} port
* @param {function(number, string, !Array.<string>): void} * @param {function(number, string, !Array.<string>): void}
...@@ -8587,6 +8749,18 @@ chrome.gcdPrivate.prefetchWifiPassword = function(ssid, callback) {}; ...@@ -8587,6 +8749,18 @@ chrome.gcdPrivate.prefetchWifiPassword = function(ssid, callback) {};
chrome.gcdPrivate.establishSession = function(ipAddress, port, callback) {}; chrome.gcdPrivate.establishSession = function(ipAddress, port, callback) {};
/**
* Create new pairing session.
* @param {string} serviceName The mDNS service name of the device.
* @param {function(number, string, !Array.<string>): void}
* callback Called when the session is established or on error. 1st param,
* |sessionId|, is the session ID (identifies the session for future calls).
* 2nd param, |status|, is the status (success or type of error). 3rd param,
* |pairingTypes|, is a list of pairing types supported by this device.
*/
chrome.gcdPrivate.createSession = function(serviceName, callback) {};
/** /**
* Start pairing with the selected method. * Start pairing with the selected method.
* @param {number} sessionId * @param {number} sessionId
......
...@@ -42,7 +42,7 @@ function ImageLoader() { ...@@ -42,7 +42,7 @@ function ImageLoader() {
var requestPromise = new Promise(function(callback) { var requestPromise = new Promise(function(callback) {
chrome.fileSystem.requestFileSystem( chrome.fileSystem.requestFileSystem(
{volumeId: volumeMetadata.volumeId}, {volumeId: volumeMetadata.volumeId},
callback); /** @type {function(FileSystem=)} */(callback));
}); });
return requestPromise; return requestPromise;
}); });
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment