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

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

Issue 2753443007: Roll closure compiler (Closed)
Patch Set: roll compiler Created 3 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 1 // SSSSSSSSSSSSSSS TTTTTTTTTTTTTTTTTTTTTTT OOOOOOOOO PPPPPPPPPPPPPPPP P
2 // SS:::::::::::::::ST:::::::::::::::::::::T OO:::::::::OO P::::::::::::::: :P 2 // SS:::::::::::::::ST:::::::::::::::::::::T OO:::::::::OO P::::::::::::::: :P
3 // S:::::SSSSSS::::::ST:::::::::::::::::::::T OO:::::::::::::OO P::::::PPPPPP::: ::P 3 // S:::::SSSSSS::::::ST:::::::::::::::::::::T OO:::::::::::::OO P::::::PPPPPP::: ::P
4 // S:::::S SSSSSSST:::::TT:::::::TT:::::TO:::::::OOO:::::::OPP:::::P P:: :::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 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 6 // S:::::S T:::::T O:::::O O:::::O P::::P P:: :::P
7 // S::::SSSS P::::PPPPPP::: ::P 7 // S::::SSSS P::::PPPPPP::: ::P
8 // SS::::::SSSSS This file is generated. To update it, P::::::::::::: PP 8 // SS::::::SSSSS This file is generated. To update it, P::::::::::::: PP
9 // SSS::::::::SS run roll_closure_compiler. P::::PPPPPPPPP 9 // SSS::::::::SS run roll_closure_compiler. P::::PPPPPPPPP
10 // SSSSSS::::S P::::P 10 // SSSSSS::::S P::::P
(...skipping 2541 matching lines...) Expand 10 before | Expand all | Expand 10 after
2552 2552
2553 2553
2554 /** 2554 /**
2555 * @return {boolean} 2555 * @return {boolean}
2556 */ 2556 */
2557 chrome.runtime.MessageSenderEvent.prototype.hasListeners = function() {}; 2557 chrome.runtime.MessageSenderEvent.prototype.hasListeners = function() {};
2558 2558
2559 2559
2560 /** 2560 /**
2561 * @const 2561 * @const
2562 * @see https://developer.chrome.com/extensions/tabs.html 2562 * @see https://developer.chrome.com/extensions/tabs
2563 */ 2563 */
2564 chrome.tabs = {}; 2564 chrome.tabs = {};
2565 2565
2566 2566
2567 /** 2567 /**
2568 * @enum {string} 2568 * @enum {string}
2569 * @see https://developer.chrome.com/extensions/tabs#type-TabStatus 2569 * @see https://developer.chrome.com/extensions/tabs#type-TabStatus
2570 */ 2570 */
2571 chrome.tabs.TabStatus = { 2571 chrome.tabs.TabStatus = {
2572 COMPLETE: '', 2572 COMPLETE: '',
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
2763 * @param {function((!Tab|!Array<!Tab>)): void=} opt_callback Callback. 2763 * @param {function((!Tab|!Array<!Tab>)): void=} opt_callback Callback.
2764 * @return {undefined} 2764 * @return {undefined}
2765 */ 2765 */
2766 chrome.tabs.move = function(tabId, moveProperties, opt_callback) {}; 2766 chrome.tabs.move = function(tabId, moveProperties, opt_callback) {};
2767 2767
2768 2768
2769 /** 2769 /**
2770 * @typedef {?{ 2770 * @typedef {?{
2771 * active: (boolean|undefined), 2771 * active: (boolean|undefined),
2772 * pinned: (boolean|undefined), 2772 * pinned: (boolean|undefined),
2773 * audible: (boolean|undefined),
2774 * muted: (boolean|undefined),
2773 * highlighted: (boolean|undefined), 2775 * highlighted: (boolean|undefined),
2776 * discarded: (boolean|undefined),
2777 * autoDiscardable: (boolean|undefined),
2774 * currentWindow: (boolean|undefined), 2778 * currentWindow: (boolean|undefined),
2775 * lastFocusedWindow: (boolean|undefined), 2779 * lastFocusedWindow: (boolean|undefined),
2776 * status: (!chrome.tabs.TabStatus|string|undefined), 2780 * status: (!chrome.tabs.TabStatus|string|undefined),
2777 * title: (string|undefined), 2781 * title: (string|undefined),
2778 * url: (!Array<string>|string|undefined), 2782 * url: (!Array<string>|string|undefined),
2779 * windowId: (number|undefined), 2783 * windowId: (number|undefined),
2780 * windowType: (string|undefined), 2784 * windowType: (string|undefined),
2781 * index: (number|undefined) 2785 * index: (number|undefined)
2782 * }} 2786 * }}
2783 */ 2787 */
(...skipping 3237 matching lines...) Expand 10 before | Expand all | Expand 10 after
6021 chrome.webNavigation.onTabReplaced; 6025 chrome.webNavigation.onTabReplaced;
6022 6026
6023 6027
6024 /** @type {!ChromeEvent} */ 6028 /** @type {!ChromeEvent} */
6025 chrome.webNavigation.onHistoryStateUpdated; 6029 chrome.webNavigation.onHistoryStateUpdated;
6026 6030
6027 6031
6028 6032
6029 /** 6033 /**
6030 * Most event listeners for WebRequest take extra arguments. 6034 * Most event listeners for WebRequest take extra arguments.
6031 * @see https://developer.chrome.com/extensions/webRequest.html. 6035 * @see https://developer.chrome.com/extensions/webRequest
6032 * @constructor 6036 * @constructor
6033 */ 6037 */
6034 function WebRequestEvent() {} 6038 function WebRequestEvent() {}
6035 6039
6036 6040
6037 /** 6041 /**
6038 * @param {function(!Object): (void|!BlockingResponse)} listener Listener 6042 * @param {function(!Object): void} listener Listener function.
6039 * function.
6040 * @param {!RequestFilter} filter A set of filters that restrict 6043 * @param {!RequestFilter} filter A set of filters that restrict
6041 * the events that will be sent to this listener. 6044 * the events that will be sent to this listener.
6042 * @param {Array<string>=} opt_extraInfoSpec Array of extra information 6045 * @param {!Array<string>=} opt_extraInfoSpec Array of extra information
6043 * that should be passed to the listener function. 6046 * that should be passed to the listener function.
6044 * @return {undefined} 6047 * @return {undefined}
6045 */ 6048 */
6046 WebRequestEvent.prototype.addListener = 6049 WebRequestEvent.prototype.addListener =
6047 function(listener, filter, opt_extraInfoSpec) {}; 6050 function(listener, filter, opt_extraInfoSpec) {};
6048 6051
6049 6052
6050 /** 6053 /**
6051 * @param {function(!Object): (void|!BlockingResponse)} listener Listener 6054 * @param {function(!Object): void} listener Listener function.
6052 * function.
6053 * @return {undefined} 6055 * @return {undefined}
6054 */ 6056 */
6055 WebRequestEvent.prototype.removeListener = function(listener) {}; 6057 WebRequestEvent.prototype.removeListener = function(listener) {};
6056 6058
6057 6059
6058 /** 6060 /**
6059 * @param {function(!Object): (void|!BlockingResponse)} listener Listener 6061 * @param {function(!Object): void} listener Listener function.
6060 * function.
6061 * @return {undefined} 6062 * @return {undefined}
6062 */ 6063 */
6063 WebRequestEvent.prototype.hasListener = function(listener) {}; 6064 WebRequestEvent.prototype.hasListener = function(listener) {};
6064 6065
6065 6066
6066 /** 6067 /**
6067 * @param {function(!Object): (void|!BlockingResponse)} listener Listener 6068 * @param {function(!Object): void} listener Listener function.
6068 * function.
6069 * @return {undefined} 6069 * @return {undefined}
6070 */ 6070 */
6071 WebRequestEvent.prototype.hasListeners = function(listener) {}; 6071 WebRequestEvent.prototype.hasListeners = function(listener) {};
6072 6072
6073 6073
6074 /**
6075 * Some event listeners can be optionally synchronous.
6076 * @see https://developer.chrome.com/extensions/webRequest
6077 * @constructor
6078 */
6079 function WebRequestOptionallySynchronousEvent() {}
6080
6074 6081
6075 /** 6082 /**
6076 * The onErrorOccurred event takes one less parameter than the others. 6083 * @param {function(!Object): (undefined|!BlockingResponse)} listener Listener
6077 * @see https://developer.chrome.com/extensions/webRequest.html. 6084 * function.
6085 * @param {!RequestFilter} filter A set of filters that restrict
6086 * the events that will be sent to this listener.
6087 * @param {!Array<string>=} opt_extraInfoSpec Array of extra information
6088 * that should be passed to the listener function.
6089 * @return {undefined}
6090 */
6091 WebRequestOptionallySynchronousEvent.prototype.addListener = function(
6092 listener, filter, opt_extraInfoSpec) {};
6093
6094
6095 /**
6096 * @param {function(!Object): (undefined|!BlockingResponse)} listener Listener
6097 * function.
6098 * @return {undefined}
6099 */
6100 WebRequestOptionallySynchronousEvent.prototype.removeListener = function(
6101 listener) {};
6102
6103
6104 /**
6105 * @param {function(!Object): (undefined|!BlockingResponse)} listener Listener
6106 * function.
6107 * @return {undefined}
6108 */
6109 WebRequestOptionallySynchronousEvent.prototype.hasListener = function(
6110 listener) {};
6111
6112
6113 /**
6114 * @param {function(!Object): (undefined|!BlockingResponse)} listener Listener
6115 * function.
6116 * @return {undefined}
6117 */
6118 WebRequestOptionallySynchronousEvent.prototype.hasListeners = function(
6119 listener) {};
6120
6121
6122 /**
6123 * The onAuthRequired event listener can be optionally synchronous, and can also
6124 * optionally take a callback.
6125 * @see https://developer.chrome.com/extensions/webRequest
6126 * @constructor
6127 */
6128 function WebRequestOnAuthRequiredEvent() {}
6129
6130
6131 /**
6132 * @param {function(!Object, function(!BlockingResponse)=):
6133 * (undefined|!BlockingResponse)} listener Listener function.
6134 * @param {!RequestFilter} filter A set of filters that restrict
6135 * the events that will be sent to this listener.
6136 * @param {!Array<string>=} opt_extraInfoSpec Array of extra information
6137 * that should be passed to the listener function.
6138 * @return {undefined}
6139 */
6140 WebRequestOnAuthRequiredEvent.prototype.addListener = function(
6141 listener, filter, opt_extraInfoSpec) {};
6142
6143
6144 /**
6145 * @param {function(!Object): (undefined|!BlockingResponse)} listener Listener
6146 * function.
6147 * @return {undefined}
6148 */
6149 WebRequestOnAuthRequiredEvent.prototype.removeListener = function(listener) {};
6150
6151
6152 /**
6153 * @param {function(!Object): (undefined|!BlockingResponse)} listener Listener
6154 * function.
6155 * @return {undefined}
6156 */
6157 WebRequestOnAuthRequiredEvent.prototype.hasListener = function(listener) {};
6158
6159
6160 /**
6161 * @param {function(!Object): (undefined|!BlockingResponse)} listener Listener
6162 * function.
6163 * @return {undefined}
6164 */
6165 WebRequestOnAuthRequiredEvent.prototype.hasListeners = function(listener) {};
6166
6167
6168 /**
6169 * The onErrorOccurred event takes one fewer parameter than the others.
6170 * @see https://developer.chrome.com/extensions/webRequest
6078 * @constructor 6171 * @constructor
6079 */ 6172 */
6080 function WebRequestOnErrorOccurredEvent() {} 6173 function WebRequestOnErrorOccurredEvent() {}
6081 6174
6082 6175
6083 /** 6176 /**
6084 * @param {function(!Object): void} listener Listener function. 6177 * @param {function(!Object): void} listener Listener function.
6085 * @param {!RequestFilter} filter A set of filters that restrict 6178 * @param {!RequestFilter} filter A set of filters that restrict
6086 * the events that will be sent to this listener. 6179 * the events that will be sent to this listener.
6087 * @return {undefined} 6180 * @return {undefined}
(...skipping 18 matching lines...) Expand all
6106 6199
6107 /** 6200 /**
6108 * @param {function(!Object): void} listener Listener function. 6201 * @param {function(!Object): void} listener Listener function.
6109 * @return {undefined} 6202 * @return {undefined}
6110 */ 6203 */
6111 WebRequestOnErrorOccurredEvent.prototype.hasListeners = function(listener) {}; 6204 WebRequestOnErrorOccurredEvent.prototype.hasListeners = function(listener) {};
6112 6205
6113 6206
6114 /** 6207 /**
6115 * @const 6208 * @const
6116 * @see https://developer.chrome.com/extensions/webRequest.html 6209 * @see https://developer.chrome.com/extensions/webRequest
6117 */ 6210 */
6118 chrome.webRequest = {}; 6211 chrome.webRequest = {};
6119 6212
6120 6213
6121 /** 6214 /**
6122 * @param {function(): void=} opt_callback Callback function. 6215 * @param {function(): void=} opt_callback Callback function.
6123 * @return {undefined} 6216 * @return {undefined}
6124 */ 6217 */
6125 chrome.webRequest.handlerBehaviorChanged = function(opt_callback) {}; 6218 chrome.webRequest.handlerBehaviorChanged = function(opt_callback) {};
6126 6219
6127 6220
6128 /** @type {!WebRequestEvent} */ 6221 /** @type {!WebRequestOnAuthRequiredEvent} */
6129 chrome.webRequest.onAuthRequired; 6222 chrome.webRequest.onAuthRequired;
6130 6223
6131 6224
6132 /** @type {!WebRequestEvent} */ 6225 /** @type {!WebRequestEvent} */
6133 chrome.webRequest.onBeforeRedirect; 6226 chrome.webRequest.onBeforeRedirect;
6134 6227
6135 6228
6136 /** @type {!WebRequestEvent} */ 6229 /** @type {!WebRequestOptionallySynchronousEvent} */
6137 chrome.webRequest.onBeforeRequest; 6230 chrome.webRequest.onBeforeRequest;
6138 6231
6139 6232
6140 /** @type {!WebRequestEvent} */ 6233 /** @type {!WebRequestOptionallySynchronousEvent} */
6141 chrome.webRequest.onBeforeSendHeaders; 6234 chrome.webRequest.onBeforeSendHeaders;
6142 6235
6143 6236
6144 /** @type {!WebRequestEvent} */ 6237 /** @type {!WebRequestEvent} */
6145 chrome.webRequest.onCompleted; 6238 chrome.webRequest.onCompleted;
6146 6239
6147 6240
6148 /** @type {!WebRequestOnErrorOccurredEvent} */ 6241 /** @type {!WebRequestOnErrorOccurredEvent} */
6149 chrome.webRequest.onErrorOccurred; 6242 chrome.webRequest.onErrorOccurred;
6150 6243
6151 6244
6152 /** @type {!WebRequestEvent} */ 6245 /** @type {!WebRequestOptionallySynchronousEvent} */
6153 chrome.webRequest.onHeadersReceived; 6246 chrome.webRequest.onHeadersReceived;
6154 6247
6155 6248
6156 /** @type {!WebRequestEvent} */ 6249 /** @type {!WebRequestEvent} */
6157 chrome.webRequest.onResponseStarted; 6250 chrome.webRequest.onResponseStarted;
6158 6251
6159 6252
6160 /** @type {!WebRequestEvent} */ 6253 /** @type {!WebRequestEvent} */
6161 chrome.webRequest.onSendHeaders; 6254 chrome.webRequest.onSendHeaders;
6162 6255
(...skipping 864 matching lines...) Expand 10 before | Expand all | Expand 10 after
7027 */ 7120 */
7028 ChromeSetting.prototype.set = function(details, opt_callback) {}; 7121 ChromeSetting.prototype.set = function(details, opt_callback) {};
7029 7122
7030 7123
7031 /** @type {!ChromeObjectEvent} */ 7124 /** @type {!ChromeObjectEvent} */
7032 ChromeSetting.prototype.onChange; 7125 ChromeSetting.prototype.onChange;
7033 7126
7034 7127
7035 7128
7036 /** 7129 /**
7037 * @see https://developer.chrome.com/extensions/webRequest.html#type-RequestFilt er 7130 * @see https://developer.chrome.com/extensions/webRequest#type-RequestFilter
7038 * @constructor 7131 * @typedef {?{
7132 * urls: !Array<string>,
7133 * types: (!Array<string>|undefined),
7134 * tabId: (number|undefined),
7135 * windowId: (number|undefined),
7136 * }}
7039 */ 7137 */
7040 function RequestFilter() {} 7138 var RequestFilter;
7041
7042
7043 /** @type {!Array<string>} */
7044 RequestFilter.prototype.urls;
7045
7046
7047 /** @type {!Array<string>} */
7048 RequestFilter.prototype.types;
7049
7050
7051 /** @type {number} */
7052 RequestFilter.prototype.tabId;
7053
7054
7055 /** @type {number} */
7056 RequestFilter.prototype.windowId;
7057 7139
7058 7140
7059 7141
7060 /** 7142 /**
7061 * @see https://developer.chrome.com/extensions/webRequest.html#type-HttpHeaders 7143 * @see https://developer.chrome.com/extensions/webRequest#type-HttpHeaders
7062 * @constructor 7144 * @typedef {?{
7145 * name: string,
7146 * value: (string|undefined),
7147 * binaryValue: (!Array<number>|undefined),
7148 * }}
7063 */ 7149 */
7064 function HttpHeader() {} 7150 var HttpHeader;
7065
7066
7067 /** @type {string} */
7068 HttpHeader.prototype.name;
7069
7070
7071 /** @type {string} */
7072 HttpHeader.prototype.value;
7073
7074
7075 /** @type {!Array<number>} */
7076 HttpHeader.prototype.binaryValue;
7077
7078
7079 /**
7080 * @see https://developer.chrome.com/extensions/webRequest.html#type-HttpHeaders
7081 * @typedef {Array<!HttpHeader>}
7082 * @private
7083 */
7084 var HttpHeaders_;
7085 7151
7086 7152
7087 7153
7088 /** 7154 /**
7089 * @see https://developer.chrome.com/extensions/webRequest.html#type-BlockingRes ponse 7155 * @see https://developer.chrome.com/extensions/webRequest#type-HttpHeaders
7090 * @constructor 7156 * @typedef {?Array<!HttpHeader>}
7091 */ 7157 */
7092 function BlockingResponse() {} 7158 chrome.webRequest.HttpHeaders;
7093
7094
7095 /** @type {boolean} */
7096 BlockingResponse.prototype.cancel;
7097
7098
7099 /** @type {string} */
7100 BlockingResponse.prototype.redirectUrl;
7101
7102
7103 /** @type {!HttpHeaders_} */
7104 BlockingResponse.prototype.requestHeaders;
7105
7106
7107 /** @type {!HttpHeaders_} */
7108 BlockingResponse.prototype.responseHeaders;
7109
7110
7111 /** @type {Object<string,string>} */
7112 BlockingResponse.prototype.authCredentials;
7113 7159
7114 7160
7115 7161
7162 /**
7163 * @see https://developer.chrome.com/extensions/webRequest#type-BlockingResponse
7164 * @typedef {?{
7165 * cancel: (boolean|undefined),
7166 * redirectUrl: (string|undefined),
7167 * requestHeaders: (!chrome.webRequest.HttpHeaders|undefined),
7168 * responseHeaders: (!chrome.webRequest.HttpHeaders|undefined),
7169 * authCredentials: (!{username: string, password: string}|undefined),
7170 * }}
7171 */
7172 var BlockingResponse;
7173
7174
7175
7116 /** 7176 /**
7117 * @see http://developer.chrome.com/extensions/pushMessaging.html#type-Message 7177 * @see http://developer.chrome.com/extensions/pushMessaging.html#type-Message
7118 * @constructor 7178 * @constructor
7119 */ 7179 */
7120 chrome.pushMessaging.Message = function() {}; 7180 chrome.pushMessaging.Message = function() {};
7121 7181
7122 7182
7123 /** 7183 /**
7124 * @type {number} 7184 * @type {number}
7125 */ 7185 */
(...skipping 2847 matching lines...) Expand 10 before | Expand all | Expand 10 after
9973 * @param {!chrome.bluetoothPrivate.SetPairingResponseOptions} options 10033 * @param {!chrome.bluetoothPrivate.SetPairingResponseOptions} options
9974 * @param {function()} callback 10034 * @param {function()} callback
9975 * @return {undefined} 10035 * @return {undefined}
9976 */ 10036 */
9977 chrome.bluetoothPrivate.setPairingResponse = function(options, callback) {}; 10037 chrome.bluetoothPrivate.setPairingResponse = function(options, callback) {};
9978 10038
9979 10039
9980 /** 10040 /**
9981 * @param {string} deviceAddress 10041 * @param {string} deviceAddress
9982 * @param {function():void=} callback 10042 * @param {function():void=} callback
10043 */
10044 chrome.bluetoothPrivate.disconnectAll = function(deviceAddress, callback) {};
10045
10046
10047 /**
10048 * @param {string} deviceAddress
10049 * @param {function():void=} callback
9983 * @return {undefined} 10050 * @return {undefined}
9984 */ 10051 */
9985 chrome.bluetoothPrivate.forgetDevice = function(deviceAddress, callback) {}; 10052 chrome.bluetoothPrivate.forgetDevice = function(deviceAddress, callback) {};
9986 10053
9987 10054
9988 /** 10055 /**
9989 * @typedef {{ 10056 * @typedef {{
9990 * transport: (!chrome.bluetoothPrivate.TransportType|undefined), 10057 * transport: (!chrome.bluetoothPrivate.TransportType|undefined),
9991 * uuids: ((string|!Array<string>)|undefined), 10058 * uuids: ((string|!Array<string>)|undefined),
9992 * rssi: (number|undefined), 10059 * rssi: (number|undefined),
(...skipping 639 matching lines...) Expand 10 before | Expand all | Expand 10 after
10632 /** @return {boolean} */ 10699 /** @return {boolean} */
10633 chrome.downloads.DeterminingFilenameEvent.prototype.hasListeners = 10700 chrome.downloads.DeterminingFilenameEvent.prototype.hasListeners =
10634 function() {}; 10701 function() {};
10635 10702
10636 10703
10637 /** 10704 /**
10638 * @type {!chrome.downloads.DeterminingFilenameEvent} 10705 * @type {!chrome.downloads.DeterminingFilenameEvent}
10639 * https://developer.chrome.com/extensions/downloads#event-onDeterminingFilename 10706 * https://developer.chrome.com/extensions/downloads#event-onDeterminingFilename
10640 */ 10707 */
10641 chrome.downloads.onDeterminingFilename; 10708 chrome.downloads.onDeterminingFilename;
OLDNEW
« no previous file with comments | « third_party/closure_compiler/compiler/compiler.jar ('k') | third_party/closure_compiler/externs/web_animations.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698