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

Side by Side Diff: remoting/webapp/js_proto/base_proto.js

Issue 245923002: Bring events to JavaScript components (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add base.js and Event Listeners Created 6 years, 8 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
« remoting/webapp/base.js ('K') | « remoting/webapp/base.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 () {};
OLDNEW
« remoting/webapp/base.js ('K') | « remoting/webapp/base.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698