Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(508)

Side by Side Diff: chrome/browser/resources/touch_ntp/tools/externs.js

Issue 6661024: Use a specialized new tab page in TOUCH_UI builds (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fix some indentation issues and enable gjslist --strict mode to catch them automatically Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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) {};
OLDNEW
« no previous file with comments | « chrome/browser/resources/touch_ntp/tools/check ('k') | chrome/browser/resources/touch_ntp/touchhandler.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698