| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 * @param {!Function} callback | 35 * @param {!Function} callback |
| 36 */ | 36 */ |
| 37 Object.observe = function(object, callback) {} | 37 Object.observe = function(object, callback) {} |
| 38 | 38 |
| 39 /** @type {boolean} */ | 39 /** @type {boolean} */ |
| 40 Event.prototype.isMetaOrCtrlForTest; | 40 Event.prototype.isMetaOrCtrlForTest; |
| 41 | 41 |
| 42 /** @type {string} */ | 42 /** @type {string} */ |
| 43 Event.prototype.code; | 43 Event.prototype.code; |
| 44 | 44 |
| 45 /** @type {function():!Array<!EventTarget>|undefined} */ | |
| 46 Event.prototype.deepPath; | |
| 47 | |
| 48 /** | 45 /** |
| 49 * @type {number} | 46 * @type {number} |
| 50 */ | 47 */ |
| 51 KeyboardEvent.DOM_KEY_LOCATION_NUMPAD; | 48 KeyboardEvent.DOM_KEY_LOCATION_NUMPAD; |
| 52 | 49 |
| 53 /** | 50 /** |
| 54 * @param {!T} value | 51 * @param {!T} value |
| 55 * @param {boolean=} onlyFirst | 52 * @param {boolean=} onlyFirst |
| 56 * @this {Array.<T>} | 53 * @this {Array.<T>} |
| 57 * @template T | 54 * @template T |
| (...skipping 16 matching lines...) Expand all Loading... |
| 74 * @return {!Array.<!T>} | 71 * @return {!Array.<!T>} |
| 75 * @this {Array.<T>} | 72 * @this {Array.<T>} |
| 76 * @template T | 73 * @template T |
| 77 */ | 74 */ |
| 78 Array.prototype.rotate = function(index) {} | 75 Array.prototype.rotate = function(index) {} |
| 79 /** | 76 /** |
| 80 * @this {Array.<number>} | 77 * @this {Array.<number>} |
| 81 */ | 78 */ |
| 82 Array.prototype.sortNumbers = function() {} | 79 Array.prototype.sortNumbers = function() {} |
| 83 /** | 80 /** |
| 84 * @param {!T} object | 81 * @param {!S} object |
| 85 * @param {function(!T,!S):number=} comparator | 82 * @param {function(!S,!T):number=} comparator |
| 86 * @return {number} | 83 * @return {number} |
| 87 * @this {Array.<S>} | 84 * @this {Array.<T>} |
| 88 * @template T,S | 85 * @template S |
| 89 */ | 86 */ |
| 90 Array.prototype.lowerBound = function(object, comparator) {} | 87 Array.prototype.lowerBound = function(object, comparator) {} |
| 91 /** | 88 /** |
| 92 * @param {!T} object | 89 * @param {!S} object |
| 93 * @param {function(!T,!S):number=} comparator | 90 * @param {function(!S,!T):number=} comparator |
| 94 * @return {number} | 91 * @return {number} |
| 95 * @this {Array.<S>} | 92 * @this {Array.<T>} |
| 96 * @template T,S | 93 * @template S |
| 97 */ | 94 */ |
| 98 Array.prototype.upperBound = function(object, comparator) {} | 95 Array.prototype.upperBound = function(object, comparator) {} |
| 99 /** | 96 /** |
| 100 * @param {!T} value | 97 * @param {!S} value |
| 101 * @param {function(!T,!S):number} comparator | 98 * @param {function(!S,!T):number} comparator |
| 102 * @return {number} | 99 * @return {number} |
| 103 * @this {Array.<S>} | 100 * @this {Array.<T>} |
| 104 * @template T,S | 101 * @template S |
| 105 */ | 102 */ |
| 106 Array.prototype.binaryIndexOf = function(value, comparator) {} | 103 Array.prototype.binaryIndexOf = function(value, comparator) {} |
| 107 /** | 104 /** |
| 108 * @param {function(number, number): number} comparator | 105 * @param {function(number, number): number} comparator |
| 109 * @param {number} leftBound | 106 * @param {number} leftBound |
| 110 * @param {number} rightBound | 107 * @param {number} rightBound |
| 111 * @param {number} sortWindowLeft | 108 * @param {number} sortWindowLeft |
| 112 * @param {number} sortWindowRight | 109 * @param {number} sortWindowRight |
| 113 * @return {!Array.<number>} | 110 * @return {!Array.<number>} |
| 114 * @this {Array.<number>} | 111 * @this {Array.<number>} |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 | 164 |
| 168 /** | 165 /** |
| 169 * @param {!Array.<T>} array | 166 * @param {!Array.<T>} array |
| 170 * @param {function(T,T):number} comparator | 167 * @param {function(T,T):number} comparator |
| 171 * @return {!Array.<T>} | 168 * @return {!Array.<T>} |
| 172 * @this {!Array.<T>} | 169 * @this {!Array.<T>} |
| 173 * @template T | 170 * @template T |
| 174 */ | 171 */ |
| 175 Array.prototype.mergeOrdered = function(array, comparator) {} | 172 Array.prototype.mergeOrdered = function(array, comparator) {} |
| 176 | 173 |
| 177 /** | |
| 178 * @param {string|!IArrayLike<T>|!Iterable<T>} arrayLike | |
| 179 * @param {function(this:S, (string|T), number, | |
| 180 * (string|!IArrayLike<T>|!Iterable<T>)): R=} opt_mapFn | |
| 181 * @param {S=} opt_this | |
| 182 * @return {!Array<R>} | |
| 183 * @template T,S,R | |
| 184 */ | |
| 185 Array.from = function(arrayLike, opt_mapFn, opt_this) {}; | |
| 186 | |
| 187 // File System API | 174 // File System API |
| 188 /** | 175 /** |
| 189 * @constructor | 176 * @constructor |
| 190 */ | 177 */ |
| 191 function DOMFileSystem() {} | 178 function DOMFileSystem() {} |
| 192 | 179 |
| 193 /** | 180 /** |
| 194 * @type {DirectoryEntry} | 181 * @type {DirectoryEntry} |
| 195 */ | 182 */ |
| 196 DOMFileSystem.prototype.root = null; | 183 DOMFileSystem.prototype.root = null; |
| (...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 702 * @extends {ESTree.Node} | 689 * @extends {ESTree.Node} |
| 703 * @constructor | 690 * @constructor |
| 704 */ | 691 */ |
| 705 ESTree.TemplateLiteralNode = function() | 692 ESTree.TemplateLiteralNode = function() |
| 706 { | 693 { |
| 707 /** @type {!Array.<!ESTree.Node>} */ | 694 /** @type {!Array.<!ESTree.Node>} */ |
| 708 this.quasis; | 695 this.quasis; |
| 709 /** @type {!Array.<!ESTree.Node>} */ | 696 /** @type {!Array.<!ESTree.Node>} */ |
| 710 this.expressions; | 697 this.expressions; |
| 711 } | 698 } |
| OLD | NEW |