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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 * @param {*=} reason | 212 * @param {*=} reason |
213 * @return {Promise} | 213 * @return {Promise} |
214 */ | 214 */ |
215 Promise.reject = function (reason) {}; | 215 Promise.reject = function (reason) {}; |
216 | 216 |
217 /** | 217 /** |
218 * @param {*=} value | 218 * @param {*=} value |
219 * @return {Promise} | 219 * @return {Promise} |
220 */ | 220 */ |
221 Promise.resolve = function (value) {}; | 221 Promise.resolve = function (value) {}; |
| 222 |
| 223 /** |
| 224 * @param {string} type |
| 225 * @param {boolean} canBubble |
| 226 * @param {boolean} cancelable |
| 227 * @param {Window} view |
| 228 * @param {number} detail |
| 229 * @param {number} screenX |
| 230 * @param {number} screenY |
| 231 * @param {number} clientX |
| 232 * @param {number} clientY |
| 233 * @param {boolean} ctrlKey |
| 234 * @param {boolean} altKey |
| 235 * @param {boolean} shiftKey |
| 236 * @param {boolean} metaKey |
| 237 * @param {number} button |
| 238 * @param {EventTarget} relatedTarget |
| 239 */ |
| 240 Event.prototype.initMouseEvent = function( |
| 241 type, canBubble, cancelable, view, detail, |
| 242 screenX, screenY, clientX, clientY, |
| 243 ctrlKey, altKey, shiftKey, metaKey, |
| 244 button, relatedTarget) {}; |
OLD | NEW |