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 {Array<string>} */ | 9 /** @type {Array<string>} */ |
10 ClipboardData.prototype.types; | 10 ClipboardData.prototype.types; |
(...skipping 27 matching lines...) Expand all Loading... |
38 | 38 |
39 /** @type {boolean} */ | 39 /** @type {boolean} */ |
40 Element.prototype.hidden; | 40 Element.prototype.hidden; |
41 | 41 |
42 /** @type {string} */ | 42 /** @type {string} */ |
43 Element.prototype.innerText; | 43 Element.prototype.innerText; |
44 | 44 |
45 /** @type {string} */ | 45 /** @type {string} */ |
46 Element.prototype.localName; | 46 Element.prototype.localName; |
47 | 47 |
| 48 /** @type {number} */ |
| 49 Element.prototype.offsetRight; |
| 50 |
| 51 /** @type {number} */ |
| 52 Element.prototype.offsetBottom; |
| 53 |
48 /** @type {string} */ | 54 /** @type {string} */ |
49 Element.prototype.textContent; | 55 Element.prototype.textContent; |
50 | 56 |
51 /** @type {DOMTokenList} */ | 57 /** @type {DOMTokenList} */ |
52 Element.prototype.classList; | 58 Element.prototype.classList; |
53 | 59 |
54 /** @type {boolean} */ | 60 /** @type {boolean} */ |
55 Element.prototype.checked; | 61 Element.prototype.checked; |
56 | 62 |
57 | 63 |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 | 133 |
128 /** | 134 /** |
129 * @param {*} value | 135 * @param {*} value |
130 * @return {boolean} whether value is an integer or not. | 136 * @return {boolean} whether value is an integer or not. |
131 */ | 137 */ |
132 Number.isInteger = function(value) {}; | 138 Number.isInteger = function(value) {}; |
133 | 139 |
134 // Chrome implements XMLHttpRequest.responseURL starting from Chrome 37. | 140 // Chrome implements XMLHttpRequest.responseURL starting from Chrome 37. |
135 /** @type {string} */ | 141 /** @type {string} */ |
136 XMLHttpRequest.prototype.responseURL = ""; | 142 XMLHttpRequest.prototype.responseURL = ""; |
OLD | NEW |