OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // This file contains various hacks needed to inform JSCompiler of various | 5 // This file contains various hacks needed to inform JSCompiler of various |
6 // WebKit- and Chrome-specific properties and methods. It is used only with | 6 // WebKit- and Chrome-specific properties and methods. It is used only with |
7 // JSCompiler to verify the type-correctness of our code. | 7 // JSCompiler to verify the type-correctness of our code. |
8 | 8 |
9 /** @type {HTMLElement} */ | 9 /** @type {HTMLElement} */ |
10 Document.prototype.activeElement; | 10 Document.prototype.activeElement; |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 */ | 222 */ |
223 Promise.reject = function (reason) {}; | 223 Promise.reject = function (reason) {}; |
224 | 224 |
225 /** | 225 /** |
226 * @param {*=} value | 226 * @param {*=} value |
227 * @return {Promise} | 227 * @return {Promise} |
228 */ | 228 */ |
229 Promise.resolve = function (value) {}; | 229 Promise.resolve = function (value) {}; |
230 | 230 |
231 /** | 231 /** |
| 232 * @type {DataTransfer} |
| 233 */ |
| 234 Event.prototype.dataTransfer = null; |
| 235 |
| 236 /** |
232 * @param {string} type | 237 * @param {string} type |
233 * @param {boolean} canBubble | 238 * @param {boolean} canBubble |
234 * @param {boolean} cancelable | 239 * @param {boolean} cancelable |
235 * @param {Window} view | 240 * @param {Window} view |
236 * @param {number} detail | 241 * @param {number} detail |
237 * @param {number} screenX | 242 * @param {number} screenX |
238 * @param {number} screenY | 243 * @param {number} screenY |
239 * @param {number} clientX | 244 * @param {number} clientX |
240 * @param {number} clientY | 245 * @param {number} clientY |
241 * @param {boolean} ctrlKey | 246 * @param {boolean} ctrlKey |
242 * @param {boolean} altKey | 247 * @param {boolean} altKey |
243 * @param {boolean} shiftKey | 248 * @param {boolean} shiftKey |
244 * @param {boolean} metaKey | 249 * @param {boolean} metaKey |
245 * @param {number} button | 250 * @param {number} button |
246 * @param {EventTarget} relatedTarget | 251 * @param {EventTarget} relatedTarget |
247 */ | 252 */ |
248 Event.prototype.initMouseEvent = function( | 253 Event.prototype.initMouseEvent = function( |
249 type, canBubble, cancelable, view, detail, | 254 type, canBubble, cancelable, view, detail, |
250 screenX, screenY, clientX, clientY, | 255 screenX, screenY, clientX, clientY, |
251 ctrlKey, altKey, shiftKey, metaKey, | 256 ctrlKey, altKey, shiftKey, metaKey, |
252 button, relatedTarget) {}; | 257 button, relatedTarget) {}; |
253 | 258 |
254 /** | 259 /** |
255 * @param {number} begin | 260 * @param {number} begin |
256 * @param {number=} end | 261 * @param {number=} end |
257 * @return {ArrayBuffer} | 262 * @return {ArrayBuffer} |
258 */ | 263 */ |
259 ArrayBuffer.prototype.slice = function(begin, end) {}; | 264 ArrayBuffer.prototype.slice = function(begin, end) {}; |
OLD | NEW |