| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2011 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 // externs.js contains variable declarations for the closure compiler | |
| 6 // This isn't actually used when running the code. | |
| 7 | |
| 8 // JSCompiler doesn't know about this new Element property | |
| 9 Element.prototype.classList = {}; | |
| 10 /** @param {string} c */ | |
| 11 Element.prototype.classList.remove = function(c) {}; | |
| 12 /** @param {string} c */ | |
| 13 Element.prototype.classList.add = function(c) {}; | |
| 14 /** @param {string} c */ | |
| 15 Element.prototype.classList.contains = function(c) {}; | |
| 16 | |
| 17 /** | |
| 18 * @constructor | |
| 19 * @extends {Event} | |
| 20 */ | |
| 21 var CustomEvent = function() {}; | |
| 22 CustomEvent.prototype.initCustomEvent = | |
| 23 function(eventType, bubbles, cancellable, detail) {}; | |
| 24 /** @type {TouchHandler.EventDetail} */ | |
| 25 CustomEvent.prototype.detail; | |
| 26 | |
| 27 | |
| 28 /** @param {string} s | |
| 29 * @return {string} | |
| 30 */ | |
| 31 var url = function(s) {}; | |
| 32 | |
| 33 /** | |
| 34 * @param {string} type | |
| 35 * @param {EventListener|function(Event):(boolean|undefined)} listener | |
| 36 * @param {boolean=} opt_useCapture | |
| 37 * @return {undefined} | |
| 38 * @suppress {checkTypes} | |
| 39 */ | |
| 40 Window.prototype.addEventListener = function(type, listener, opt_useCapture) {}; | |
| OLD | NEW |