Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 // This file contains various hacks needed to inform JSCompiler of various | |
| 6 // properties and methods defined in base.js. It is used only with | |
| 7 // JSCompiler to verify the type-correctness of our code. | |
|
Jamie
2014/04/22 01:23:21
This should not be necessary. We have proto files
kelvinp
2014/04/23 00:24:20
Done.
| |
| 8 | |
| 9 /** @constructor */ | |
| 10 function EventEntry () {} | |
| 11 | |
| 12 /** @param {Array.<function(?=)>} listeners */ | |
| 13 EventEntry.prototype.listeners = null; | |
| 14 /** @param {boolean} sweepRequired */ | |
| 15 EventEntry.prototype.sweepRequired = null; | |
| 16 /** @param {number} recursionCount */ | |
| 17 EventEntry.prototype.recursionCount = null; | |
| 18 | |
| 19 /** @constructor */ | |
| 20 function EventSource () {} | |
| 21 | |
| 22 /** @type {Object.<string, EventEntry>} */ | |
| 23 EventSource.prototype._ev = null; | |
| 24 | |
| 25 /** | |
| 26 * @param {string} type | |
| 27 * @param {function(?=)} fn | |
| 28 * @param {*} thisObj | |
| 29 */ | |
| 30 EventSource.prototype.addEventListener = function (type, fn, thisObj) {}; | |
| 31 | |
| 32 /** | |
| 33 * @param {string} type | |
| 34 * @param {function(?=)} fn | |
| 35 * @param {*} thisObj | |
| 36 */ | |
| 37 EventSource.prototype.removeEventListener = function (type, fn, thisObj) {}; | |
| 38 | |
| 39 /** | |
| 40 * @param {string} type | |
| 41 * @param {?} data | |
| 42 */ | |
| 43 EventSource.prototype.raiseEvent = function (type, data) {}; | |
| 44 | |
| 45 /** @param {Array.<string>} evts */ | |
| 46 EventSource.prototype.defineEvents = function (evts) {}; | |
| 47 | |
| 48 /** | |
| 49 * @interface | |
| 50 */ | |
| 51 function Disposable () {} | |
| 52 Disposable.prototype.dispose = function () {}; | |
| OLD | NEW |