| OLD | NEW |
| 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 bump_compiler_version. P::::PPPPPPPPP | 9 // SSS::::::::SS run bump_compiler_version. P::::PPPPPPPPP |
| 10 // SSSSSS::::S P::::P | 10 // SSSSSS::::S P::::P |
| (...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 | 234 |
| 235 /** @type {!ChromeSetting} */ | 235 /** @type {!ChromeSetting} */ |
| 236 chrome.accessibilityFeatures.virtualKeyboard; | 236 chrome.accessibilityFeatures.virtualKeyboard; |
| 237 | 237 |
| 238 | 238 |
| 239 /** @type {!ChromeSetting} */ | 239 /** @type {!ChromeSetting} */ |
| 240 chrome.accessibilityFeatures.animationPolicy; | 240 chrome.accessibilityFeatures.animationPolicy; |
| 241 | 241 |
| 242 | 242 |
| 243 /** | 243 /** |
| 244 * TODO(tbreisacher): Move all chrome.app.* externs into their own file. | |
| 245 * @const | |
| 246 */ | |
| 247 chrome.app = {}; | |
| 248 | |
| 249 | |
| 250 /** | |
| 251 * @const | 244 * @const |
| 252 * @see http://developer.chrome.com/apps/app.runtime.html | 245 * @see http://developer.chrome.com/apps/app.runtime.html |
| 253 */ | 246 */ |
| 254 chrome.app.runtime = {}; | 247 chrome.app.runtime = {}; |
| 255 | 248 |
| 256 | 249 |
| 257 | 250 |
| 258 /** | 251 /** |
| 259 * @constructor | 252 * @constructor |
| 260 * @see http://developer.chrome.com/apps/app_runtime.html | 253 * @see http://developer.chrome.com/apps/app_runtime.html |
| (...skipping 1801 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2062 | 2055 |
| 2063 | 2056 |
| 2064 /** @type {!ChromeEvent} */ | 2057 /** @type {!ChromeEvent} */ |
| 2065 chrome.extension.onRequest; | 2058 chrome.extension.onRequest; |
| 2066 | 2059 |
| 2067 | 2060 |
| 2068 /** @type {!ChromeEvent} */ | 2061 /** @type {!ChromeEvent} */ |
| 2069 chrome.extension.onRequestExternal; | 2062 chrome.extension.onRequestExternal; |
| 2070 | 2063 |
| 2071 | 2064 |
| 2072 /** | |
| 2073 * @see https://developer.chrome.com/extensions/runtime.html | |
| 2074 * @const | |
| 2075 */ | |
| 2076 chrome.runtime = {}; | |
| 2077 | |
| 2078 | |
| 2079 /** @type {!Object|undefined} */ | |
| 2080 chrome.runtime.lastError = {}; | |
| 2081 | |
| 2082 | |
| 2083 /** | |
| 2084 * @type {string|undefined} | |
| 2085 */ | |
| 2086 chrome.runtime.lastError.message; | |
| 2087 | |
| 2088 | 2065 |
| 2089 /** @type {string} */ | 2066 /** @type {string} */ |
| 2090 chrome.runtime.id; | 2067 chrome.runtime.id; |
| 2091 | 2068 |
| 2092 | 2069 |
| 2093 /** | 2070 /** |
| 2094 * @param {function(!Window=): void} callback Callback function. | 2071 * @param {function(!Window=): void} callback Callback function. |
| 2095 */ | 2072 */ |
| 2096 chrome.runtime.getBackgroundPage = function(callback) {}; | 2073 chrome.runtime.getBackgroundPage = function(callback) {}; |
| 2097 | 2074 |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2190 chrome.runtime.requestUpdateCheck = function(callback) {}; | 2167 chrome.runtime.requestUpdateCheck = function(callback) {}; |
| 2191 | 2168 |
| 2192 | 2169 |
| 2193 /** | 2170 /** |
| 2194 * Restart the ChromeOS device when the app runs in kiosk mode. Otherwise, it's | 2171 * Restart the ChromeOS device when the app runs in kiosk mode. Otherwise, it's |
| 2195 * no-op. | 2172 * no-op. |
| 2196 */ | 2173 */ |
| 2197 chrome.runtime.restart = function() {}; | 2174 chrome.runtime.restart = function() {}; |
| 2198 | 2175 |
| 2199 | 2176 |
| 2200 /** | |
| 2201 * @param {string|!Object.<string>=} opt_extensionIdOrConnectInfo Either the | |
| 2202 * extensionId to connect to, in which case connectInfo params can be | |
| 2203 * passed in the next optional argument, or the connectInfo params. | |
| 2204 * @param {!Object.<string>=} opt_connectInfo The connectInfo object, | |
| 2205 * if arg1 was the extensionId to connect to. | |
| 2206 * @return {!Port} New port. | |
| 2207 */ | |
| 2208 chrome.runtime.connect = function( | |
| 2209 opt_extensionIdOrConnectInfo, opt_connectInfo) {}; | |
| 2210 | |
| 2211 | 2177 |
| 2212 /** | 2178 /** |
| 2213 * @see http://developer.chrome.com/extensions/runtime.html#method-connectNative | 2179 * @see http://developer.chrome.com/extensions/runtime.html#method-connectNative |
| 2214 * @param {string} application Name of the registered native messaging host to | 2180 * @param {string} application Name of the registered native messaging host to |
| 2215 * connect to, like 'com.google.your_product'. | 2181 * connect to, like 'com.google.your_product'. |
| 2216 * @return {!Port} New port. | 2182 * @return {!Port} New port. |
| 2217 */ | 2183 */ |
| 2218 chrome.runtime.connectNative = function(application) {}; | 2184 chrome.runtime.connectNative = function(application) {}; |
| 2219 | 2185 |
| 2220 | 2186 |
| 2221 /** | 2187 /** |
| 2222 * @param {string|*} extensionIdOrMessage Either the extensionId to send the | |
| 2223 * message to, in which case the message is passed as the next arg, or the | |
| 2224 * message itself. | |
| 2225 * @param {(*|Object|function(*): void)=} opt_messageOrOptsOrCallback | |
| 2226 * One of: | |
| 2227 * The message, if arg1 was the extensionId. | |
| 2228 * The options for message sending, if arg1 was the message and this | |
| 2229 * argument is not a function. | |
| 2230 * The callback, if arg1 was the message and this argument is a function. | |
| 2231 * @param {(Object|function(*): void)=} opt_optsOrCallback | |
| 2232 * Either the options for message sending, if arg2 was the message, | |
| 2233 * or the callback. | |
| 2234 * @param {function(*): void=} opt_callback The callback function which | |
| 2235 * takes a JSON response object sent by the handler of the request. | |
| 2236 */ | |
| 2237 chrome.runtime.sendMessage = function( | |
| 2238 extensionIdOrMessage, opt_messageOrOptsOrCallback, opt_optsOrCallback, | |
| 2239 opt_callback) {}; | |
| 2240 | |
| 2241 | |
| 2242 /** | |
| 2243 * @see http://developer.chrome.com/extensions/runtime.html#method-sendNativeMes
sage | 2188 * @see http://developer.chrome.com/extensions/runtime.html#method-sendNativeMes
sage |
| 2244 * @param {string} application Name of the registered native messaging host to | 2189 * @param {string} application Name of the registered native messaging host to |
| 2245 * connect to, like 'com.google.your_product'. | 2190 * connect to, like 'com.google.your_product'. |
| 2246 * @param {Object} message The message that will be passed to the native | 2191 * @param {Object} message The message that will be passed to the native |
| 2247 * messaging host. | 2192 * messaging host. |
| 2248 * @param {function(*)=} opt_callback Called with the response message sent by | 2193 * @param {function(*)=} opt_callback Called with the response message sent by |
| 2249 * the native messaging host. If an error occurs while connecting to the | 2194 * the native messaging host. If an error occurs while connecting to the |
| 2250 * native messaging host, the callback will be called with no arguments and | 2195 * native messaging host, the callback will be called with no arguments and |
| 2251 * chrome.runtime.lastError will be set to the error message. | 2196 * chrome.runtime.lastError will be set to the error message. |
| 2252 */ | 2197 */ |
| (...skipping 3491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5744 | 5689 |
| 5745 | 5690 |
| 5746 /** @type {!WebRequestEvent} */ | 5691 /** @type {!WebRequestEvent} */ |
| 5747 chrome.webRequest.onSendHeaders; | 5692 chrome.webRequest.onSendHeaders; |
| 5748 | 5693 |
| 5749 | 5694 |
| 5750 // Classes | 5695 // Classes |
| 5751 | 5696 |
| 5752 | 5697 |
| 5753 | 5698 |
| 5754 /**onKeyEvent | 5699 /** |
| 5755 * @see https://developer.chrome.com/extensions/management.html | 5700 * @see https://developer.chrome.com/extensions/management.html |
| 5756 * @constructor | 5701 * @constructor |
| 5757 */ | 5702 */ |
| 5758 function ExtensionInfo() {} | 5703 function ExtensionInfo() {} |
| 5759 | 5704 |
| 5760 | 5705 |
| 5761 /** @type {string} */ | 5706 /** @type {string} */ |
| 5762 ExtensionInfo.prototype.id; | 5707 ExtensionInfo.prototype.id; |
| 5763 | 5708 |
| 5764 | 5709 |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5852 | 5797 |
| 5853 /** @type {number} */ | 5798 /** @type {number} */ |
| 5854 IconInfo.prototype.size; | 5799 IconInfo.prototype.size; |
| 5855 | 5800 |
| 5856 | 5801 |
| 5857 /** @type {string} */ | 5802 /** @type {string} */ |
| 5858 IconInfo.prototype.url; | 5803 IconInfo.prototype.url; |
| 5859 | 5804 |
| 5860 | 5805 |
| 5861 | 5806 |
| 5807 |
| 5808 |
| 5862 /** | 5809 /** |
| 5863 * @see https://developer.chrome.com/extensions/tabs | |
| 5864 * @constructor | |
| 5865 */ | |
| 5866 function Tab() {} | |
| 5867 | |
| 5868 | |
| 5869 // TODO: Make this field optional once dependent projects have been updated. | |
| 5870 /** | |
| 5871 * @type {number} | |
| 5872 */ | |
| 5873 Tab.prototype.id; | |
| 5874 | |
| 5875 | |
| 5876 /** @type {number} */ | |
| 5877 Tab.prototype.index; | |
| 5878 | |
| 5879 | |
| 5880 /** @type {number} */ | |
| 5881 Tab.prototype.windowId; | |
| 5882 | |
| 5883 | |
| 5884 // TODO: Make this field optional once dependent projects have been updated. | |
| 5885 /** | |
| 5886 * @type {number} | |
| 5887 */ | |
| 5888 Tab.prototype.openerTabId; | |
| 5889 | |
| 5890 | |
| 5891 /** @type {boolean} */ | |
| 5892 Tab.prototype.highlighted; | |
| 5893 | |
| 5894 | |
| 5895 /** @type {boolean} */ | |
| 5896 Tab.prototype.active; | |
| 5897 | |
| 5898 | |
| 5899 /** @type {boolean} */ | |
| 5900 Tab.prototype.pinned; | |
| 5901 | |
| 5902 | |
| 5903 // TODO: Make this field optional once dependent projects have been updated. | |
| 5904 /** | |
| 5905 * @type {string} | |
| 5906 */ | |
| 5907 Tab.prototype.url; | |
| 5908 | |
| 5909 | |
| 5910 // TODO: Make this field optional once dependent projects have been updated. | |
| 5911 /** | |
| 5912 * @type {string} | |
| 5913 */ | |
| 5914 Tab.prototype.title; | |
| 5915 | |
| 5916 | |
| 5917 // TODO: Make this field optional once dependent projects have been updated. | |
| 5918 /** | |
| 5919 * @type {string} | |
| 5920 */ | |
| 5921 Tab.prototype.favIconUrl; | |
| 5922 | |
| 5923 | |
| 5924 // TODO: Make this field optional once dependent projects have been updated. | |
| 5925 /** | |
| 5926 * @type {string} | |
| 5927 */ | |
| 5928 Tab.prototype.status; | |
| 5929 | |
| 5930 | |
| 5931 /** @type {boolean} */ | |
| 5932 Tab.prototype.incognito; | |
| 5933 | |
| 5934 | |
| 5935 /** @type {number|undefined} */ | |
| 5936 Tab.prototype.width; | |
| 5937 | |
| 5938 | |
| 5939 /** @type {number|undefined} */ | |
| 5940 Tab.prototype.height; | |
| 5941 | |
| 5942 | |
| 5943 /** @type {number|undefined} */ | |
| 5944 Tab.prototype.sessionId; | |
| 5945 | |
| 5946 | |
| 5947 | |
| 5948 /** | |
| 5949 * @see https://developer.chrome.com/extensions/windows.html | 5810 * @see https://developer.chrome.com/extensions/windows.html |
| 5950 * @constructor | 5811 * @constructor |
| 5951 */ | 5812 */ |
| 5952 function ChromeWindow() {} | 5813 function ChromeWindow() {} |
| 5953 | 5814 |
| 5954 | 5815 |
| 5955 /** @type {number} */ | 5816 /** @type {number} */ |
| 5956 ChromeWindow.prototype.id; | 5817 ChromeWindow.prototype.id; |
| 5957 | 5818 |
| 5958 | 5819 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5991 /** @type {string} */ | 5852 /** @type {string} */ |
| 5992 ChromeWindow.prototype.state; | 5853 ChromeWindow.prototype.state; |
| 5993 | 5854 |
| 5994 | 5855 |
| 5995 /** @type {boolean} */ | 5856 /** @type {boolean} */ |
| 5996 ChromeWindow.prototype.alwaysOnTop; | 5857 ChromeWindow.prototype.alwaysOnTop; |
| 5997 | 5858 |
| 5998 | 5859 |
| 5999 | 5860 |
| 6000 /** | 5861 /** |
| 6001 * @see https://developer.chrome.com/extensions/events.html | |
| 6002 * @constructor | |
| 6003 */ | |
| 6004 function ChromeEvent() {} | |
| 6005 | |
| 6006 | |
| 6007 /** @param {!Function} callback */ | |
| 6008 ChromeEvent.prototype.addListener = function(callback) {}; | |
| 6009 | |
| 6010 | |
| 6011 /** @param {!Function} callback */ | |
| 6012 ChromeEvent.prototype.removeListener = function(callback) {}; | |
| 6013 | |
| 6014 | |
| 6015 /** | |
| 6016 * @param {!Function} callback | |
| 6017 * @return {boolean} | |
| 6018 */ | |
| 6019 ChromeEvent.prototype.hasListener = function(callback) {}; | |
| 6020 | |
| 6021 | |
| 6022 /** @return {boolean} */ | |
| 6023 ChromeEvent.prototype.hasListeners = function() {}; | |
| 6024 | |
| 6025 | |
| 6026 | |
| 6027 /** | |
| 6028 * Event whose listeners take a string parameter. | |
| 6029 * @constructor | |
| 6030 */ | |
| 6031 function ChromeStringEvent() {} | |
| 6032 | |
| 6033 | |
| 6034 /** @param {function(string): void} callback */ | |
| 6035 ChromeStringEvent.prototype.addListener = function(callback) {}; | |
| 6036 | |
| 6037 | |
| 6038 /** @param {function(string): void} callback */ | |
| 6039 ChromeStringEvent.prototype.removeListener = function(callback) {}; | |
| 6040 | |
| 6041 | |
| 6042 /** | |
| 6043 * @param {function(string): void} callback | |
| 6044 * @return {boolean} | |
| 6045 */ | |
| 6046 ChromeStringEvent.prototype.hasListener = function(callback) {}; | |
| 6047 | |
| 6048 | |
| 6049 /** @return {boolean} */ | |
| 6050 ChromeStringEvent.prototype.hasListeners = function() {}; | |
| 6051 | |
| 6052 | |
| 6053 | |
| 6054 /** | |
| 6055 * Event whose listeners take a boolean parameter. | |
| 6056 * @constructor | |
| 6057 */ | |
| 6058 | |
| 6059 function ChromeBooleanEvent() {} | |
| 6060 | |
| 6061 | |
| 6062 /** | |
| 6063 * @param {function(boolean): void} callback | |
| 6064 */ | |
| 6065 ChromeBooleanEvent.prototype.addListener = function(callback) {}; | |
| 6066 | |
| 6067 | |
| 6068 /** | |
| 6069 * @param {function(boolean): void} callback | |
| 6070 */ | |
| 6071 ChromeBooleanEvent.prototype.removeListener = function(callback) {}; | |
| 6072 | |
| 6073 | |
| 6074 /** | |
| 6075 * @param {function(boolean): void} callback | |
| 6076 * @return {boolean} | |
| 6077 */ | |
| 6078 ChromeBooleanEvent.prototype.hasListener = function(callback) {}; | |
| 6079 | |
| 6080 | |
| 6081 /** | |
| 6082 * @return {boolean} | |
| 6083 */ | |
| 6084 ChromeBooleanEvent.prototype.hasListeners = function() {}; | |
| 6085 | |
| 6086 | |
| 6087 | |
| 6088 /** | |
| 6089 * Event whose listeners take a number parameter. | |
| 6090 * @constructor | |
| 6091 */ | |
| 6092 | |
| 6093 function ChromeNumberEvent() {} | |
| 6094 | |
| 6095 | |
| 6096 /** | |
| 6097 * @param {function(number): void} callback | |
| 6098 */ | |
| 6099 ChromeNumberEvent.prototype.addListener = function(callback) {}; | |
| 6100 | |
| 6101 | |
| 6102 /** | |
| 6103 * @param {function(number): void} callback | |
| 6104 */ | |
| 6105 ChromeNumberEvent.prototype.removeListener = function(callback) {}; | |
| 6106 | |
| 6107 | |
| 6108 /** | |
| 6109 * @param {function(number): void} callback | |
| 6110 * @return {boolean} | |
| 6111 */ | |
| 6112 ChromeNumberEvent.prototype.hasListener = function(callback) {}; | |
| 6113 | |
| 6114 | |
| 6115 /** | |
| 6116 * @return {boolean} | |
| 6117 */ | |
| 6118 ChromeNumberEvent.prototype.hasListeners = function() {}; | |
| 6119 | |
| 6120 | |
| 6121 | |
| 6122 /** | |
| 6123 * Event whose listeners take an Object parameter. | |
| 6124 * @constructor | |
| 6125 */ | |
| 6126 function ChromeObjectEvent() {} | |
| 6127 | |
| 6128 | |
| 6129 /** | |
| 6130 * @param {function(!Object): void} callback Callback. | |
| 6131 */ | |
| 6132 ChromeObjectEvent.prototype.addListener = function(callback) {}; | |
| 6133 | |
| 6134 | |
| 6135 /** | |
| 6136 * @param {function(!Object): void} callback Callback. | |
| 6137 */ | |
| 6138 ChromeObjectEvent.prototype.removeListener = function(callback) {}; | |
| 6139 | |
| 6140 | |
| 6141 /** | |
| 6142 * @param {function(!Object): void} callback Callback. | |
| 6143 * @return {boolean} | |
| 6144 */ | |
| 6145 ChromeObjectEvent.prototype.hasListener = function(callback) {}; | |
| 6146 | |
| 6147 | |
| 6148 /** | |
| 6149 * @return {boolean} | |
| 6150 */ | |
| 6151 ChromeObjectEvent.prototype.hasListeners = function() {}; | |
| 6152 | |
| 6153 | |
| 6154 | |
| 6155 /** | |
| 6156 * Event whose listeners take an ExtensionInfo parameter. | 5862 * Event whose listeners take an ExtensionInfo parameter. |
| 6157 * @constructor | 5863 * @constructor |
| 6158 */ | 5864 */ |
| 6159 function ChromeExtensionInfoEvent() {} | 5865 function ChromeExtensionInfoEvent() {} |
| 6160 | 5866 |
| 6161 | 5867 |
| 6162 /** @param {function(!ExtensionInfo): void} callback */ | 5868 /** @param {function(!ExtensionInfo): void} callback */ |
| 6163 ChromeExtensionInfoEvent.prototype.addListener = function(callback) {}; | 5869 ChromeExtensionInfoEvent.prototype.addListener = function(callback) {}; |
| 6164 | 5870 |
| 6165 | 5871 |
| 6166 /** @param {function(!ExtensionInfo): void} callback */ | 5872 /** @param {function(!ExtensionInfo): void} callback */ |
| 6167 ChromeExtensionInfoEvent.prototype.removeListener = function(callback) {}; | 5873 ChromeExtensionInfoEvent.prototype.removeListener = function(callback) {}; |
| 6168 | 5874 |
| 6169 | 5875 |
| 6170 /** | 5876 /** |
| 6171 * @param {function(!ExtensionInfo): void} callback | 5877 * @param {function(!ExtensionInfo): void} callback |
| 6172 * @return {boolean} | 5878 * @return {boolean} |
| 6173 */ | 5879 */ |
| 6174 ChromeExtensionInfoEvent.prototype.hasListener = function(callback) {}; | 5880 ChromeExtensionInfoEvent.prototype.hasListener = function(callback) {}; |
| 6175 | 5881 |
| 6176 | 5882 |
| 6177 /** @return {boolean} */ | 5883 /** @return {boolean} */ |
| 6178 ChromeExtensionInfoEvent.prototype.hasListeners = function() {}; | 5884 ChromeExtensionInfoEvent.prototype.hasListeners = function() {}; |
| 6179 | 5885 |
| 6180 | 5886 |
| 6181 | 5887 |
| 6182 /** | 5888 /** |
| 6183 * Event whose listeners take a string array parameter. | |
| 6184 * @constructor | |
| 6185 */ | |
| 6186 function ChromeStringArrayEvent() {} | |
| 6187 | |
| 6188 | |
| 6189 /** @param {function(!Array.<string>): void} callback */ | |
| 6190 ChromeStringArrayEvent.prototype.addListener = function(callback) {}; | |
| 6191 | |
| 6192 | |
| 6193 /** @param {function(!Array.<string>): void} callback */ | |
| 6194 ChromeStringArrayEvent.prototype.removeListener = function(callback) {}; | |
| 6195 | |
| 6196 | |
| 6197 /** | |
| 6198 * @param {function(!Array.<string>): void} callback | |
| 6199 * @return {boolean} | |
| 6200 */ | |
| 6201 ChromeStringArrayEvent.prototype.hasListener = function(callback) {}; | |
| 6202 | |
| 6203 | |
| 6204 /** @return {boolean} */ | |
| 6205 ChromeStringArrayEvent.prototype.hasListeners = function() {}; | |
| 6206 | |
| 6207 | |
| 6208 | |
| 6209 /** | |
| 6210 * Event whose listeners take two strings as parameters. | |
| 6211 * @constructor | |
| 6212 */ | |
| 6213 function ChromeStringStringEvent() {} | |
| 6214 | |
| 6215 | |
| 6216 /** @param {function(string, string): void} callback */ | |
| 6217 ChromeStringStringEvent.prototype.addListener = function(callback) {}; | |
| 6218 | |
| 6219 | |
| 6220 /** @param {function(string, string): void} callback */ | |
| 6221 ChromeStringStringEvent.prototype.removeListener = function(callback) {}; | |
| 6222 | |
| 6223 | |
| 6224 /** | |
| 6225 * @param {function(string, string): void} callback | |
| 6226 * @return {boolean} | |
| 6227 */ | |
| 6228 ChromeStringStringEvent.prototype.hasListener = function(callback) {}; | |
| 6229 | |
| 6230 | |
| 6231 /** @return {boolean} */ | |
| 6232 ChromeStringStringEvent.prototype.hasListeners = function() {}; | |
| 6233 | |
| 6234 | |
| 6235 /** | |
| 6236 * @see http://developer.chrome.com/extensions/pushMessaging.html | 5889 * @see http://developer.chrome.com/extensions/pushMessaging.html |
| 6237 * @const | 5890 * @const |
| 6238 */ | 5891 */ |
| 6239 chrome.pushMessaging = {}; | 5892 chrome.pushMessaging = {}; |
| 6240 | 5893 |
| 6241 | 5894 |
| 6242 /** | 5895 /** |
| 6243 * @type {!chrome.pushMessaging.PushMessageEvent} | 5896 * @type {!chrome.pushMessaging.PushMessageEvent} |
| 6244 */ | 5897 */ |
| 6245 chrome.pushMessaging.onMessage; | 5898 chrome.pushMessaging.onMessage; |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6287 function(callback) {}; | 5940 function(callback) {}; |
| 6288 | 5941 |
| 6289 | 5942 |
| 6290 /** | 5943 /** |
| 6291 * @return {boolean} | 5944 * @return {boolean} |
| 6292 */ | 5945 */ |
| 6293 chrome.pushMessaging.PushMessageEvent.prototype.hasListeners = function() {}; | 5946 chrome.pushMessaging.PushMessageEvent.prototype.hasListeners = function() {}; |
| 6294 | 5947 |
| 6295 | 5948 |
| 6296 | 5949 |
| 6297 /** | |
| 6298 * @see http://developer.chrome.com/apps/runtime.html#type-Port | |
| 6299 * @constructor | |
| 6300 */ | |
| 6301 function Port() {} | |
| 6302 | |
| 6303 | |
| 6304 /** @type {string} */ | |
| 6305 Port.prototype.name; | |
| 6306 | |
| 6307 | |
| 6308 /** @type {!ChromeEvent} */ | |
| 6309 Port.prototype.onDisconnect; | |
| 6310 | |
| 6311 | |
| 6312 /** @type {!ChromeEvent} */ | |
| 6313 Port.prototype.onMessage; | |
| 6314 | |
| 6315 | |
| 6316 /** @type {MessageSender} */ | |
| 6317 Port.prototype.sender; | |
| 6318 | |
| 6319 | |
| 6320 /** | |
| 6321 * @param {Object.<string>} obj Message object. | |
| 6322 */ | |
| 6323 Port.prototype.postMessage = function(obj) {}; | |
| 6324 | |
| 6325 | |
| 6326 /** | |
| 6327 * Note: as of 2012-04-12, this function is no longer documented on | |
| 6328 * the public web pages, but there are still existing usages. | |
| 6329 */ | |
| 6330 Port.prototype.disconnect = function() {}; | |
| 6331 | |
| 6332 | |
| 6333 | |
| 6334 /** | |
| 6335 * @see http://developer.chrome.com/extensions/runtime.html#type-MessageSender | |
| 6336 * @constructor | |
| 6337 */ | |
| 6338 function MessageSender() {} | |
| 6339 | |
| 6340 | |
| 6341 /** @type {!Tab|undefined} */ | |
| 6342 MessageSender.prototype.tab; | |
| 6343 | |
| 6344 | |
| 6345 /** @type {string|undefined} */ | |
| 6346 MessageSender.prototype.id; | |
| 6347 | |
| 6348 | |
| 6349 /** @type {string|undefined} */ | |
| 6350 MessageSender.prototype.url; | |
| 6351 | |
| 6352 | |
| 6353 /** @type {string|undefined} */ | |
| 6354 MessageSender.prototype.tlsChannelId; | |
| 6355 | |
| 6356 | |
| 6357 | 5950 |
| 6358 /** | 5951 /** |
| 6359 * @see https://developer.chrome.com/extensions/bookmarks.html#type-BookmarkTree
Node | 5952 * @see https://developer.chrome.com/extensions/bookmarks.html#type-BookmarkTree
Node |
| 6360 * @constructor | 5953 * @constructor |
| 6361 */ | 5954 */ |
| 6362 function BookmarkTreeNode() {} | 5955 function BookmarkTreeNode() {} |
| 6363 | 5956 |
| 6364 | 5957 |
| 6365 /** @type {string} */ | 5958 /** @type {string} */ |
| 6366 BookmarkTreeNode.prototype.id; | 5959 BookmarkTreeNode.prototype.id; |
| (...skipping 1980 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8347 /** | 7940 /** |
| 8348 * Event raised when an error occurred while the runtime was waiting for | 7941 * Event raised when an error occurred while the runtime was waiting for |
| 8349 * data on the serial port. Once this event is raised, the connection may | 7942 * data on the serial port. Once this event is raised, the connection may |
| 8350 * be set to paused. A "timeout" error does not pause the connection. | 7943 * be set to paused. A "timeout" error does not pause the connection. |
| 8351 * @type {!ChromeObjectEvent} | 7944 * @type {!ChromeObjectEvent} |
| 8352 * @see https://developer.chrome.com/apps/serial#event-onReceiveError | 7945 * @see https://developer.chrome.com/apps/serial#event-onReceiveError |
| 8353 */ | 7946 */ |
| 8354 chrome.serial.onReceiveError; | 7947 chrome.serial.onReceiveError; |
| 8355 | 7948 |
| 8356 | 7949 |
| 8357 /** | |
| 8358 * @const | |
| 8359 * @see https://developer.chrome.com/apps/webstore | |
| 8360 */ | |
| 8361 chrome.webstore = {}; | |
| 8362 | |
| 8363 | |
| 8364 /** | |
| 8365 * @param {string|function()|function(string)=} | |
| 8366 * opt_urlOrSuccessCallbackOrFailureCallback Either the URL to install or | |
| 8367 * the succcess callback taking no arg or the failure callback taking an | |
| 8368 * error string arg. | |
| 8369 * @param {function()|function(string)=} opt_successCallbackOrFailureCallback | |
| 8370 * Either the succcess callback taking no arg or the failure callback | |
| 8371 * taking an error string arg. | |
| 8372 * @param {function(string)=} opt_failureCallback The failure callback. | |
| 8373 */ | |
| 8374 chrome.webstore.install = function( | |
| 8375 opt_urlOrSuccessCallbackOrFailureCallback, | |
| 8376 opt_successCallbackOrFailureCallback, | |
| 8377 opt_failureCallback) {}; | |
| 8378 | |
| 8379 | |
| 8380 /** @type {!ChromeStringEvent} */ | |
| 8381 chrome.webstore.onInstallStageChanged; | |
| 8382 | |
| 8383 | |
| 8384 /** @type {!ChromeNumberEvent} */ | |
| 8385 chrome.webstore.onDownloadProgress; | |
| 8386 | |
| 8387 | 7950 |
| 8388 //////////////////////////////////////////////////////////////////////////////// | 7951 //////////////////////////////////////////////////////////////////////////////// |
| 8389 /////////////////////////// Chrome Private APIs //////////////////////////////// | 7952 /////////////////////////// Chrome Private APIs //////////////////////////////// |
| 8390 //////////////////////////////////////////////////////////////////////////////// | 7953 //////////////////////////////////////////////////////////////////////////////// |
| 8391 | 7954 |
| 8392 | 7955 |
| 8393 /** @const */ | 7956 /** @const */ |
| 8394 chrome.screenlockPrivate = {}; | 7957 chrome.screenlockPrivate = {}; |
| 8395 | 7958 |
| 8396 | 7959 |
| (...skipping 969 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9366 | 8929 |
| 9367 | 8930 |
| 9368 /** | 8931 /** |
| 9369 * Installs the given app ID. | 8932 * Installs the given app ID. |
| 9370 * @param {string} id | 8933 * @param {string} id |
| 9371 * @param {function(string, string): void=} opt_callback Response callback that | 8934 * @param {function(string, string): void=} opt_callback Response callback that |
| 9372 * returns two string: (1) an error string (or empty string on success) and | 8935 * returns two string: (1) an error string (or empty string on success) and |
| 9373 * (2) an error code in case of error | 8936 * (2) an error code in case of error |
| 9374 */ | 8937 */ |
| 9375 chrome.inlineInstallPrivate.install = function(id, opt_callback) {}; | 8938 chrome.inlineInstallPrivate.install = function(id, opt_callback) {}; |
| OLD | NEW |