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

Side by Side Diff: Source/devtools/front_end/PowerProfiler.js

Issue 212503002: DevTools: Fix JSDoc and code landed in r169951. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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
« no previous file with comments | « no previous file | Source/devtools/front_end/TimelinePowerOverview.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @constructor 6 * @constructor
7 * @extends {WebInspector.Object} 7 * @extends {WebInspector.Object}
8 */ 8 */
9 WebInspector.PowerProfiler = function() 9 WebInspector.PowerProfiler = function()
10 { 10 {
(...skipping 15 matching lines...) Expand all
26 stopProfile: function () 26 stopProfile: function ()
27 { 27 {
28 PowerAgent.end(); 28 PowerAgent.end();
29 }, 29 },
30 30
31 __proto__: WebInspector.Object.prototype 31 __proto__: WebInspector.Object.prototype
32 } 32 }
33 33
34 /** 34 /**
35 * @constructor 35 * @constructor
36 * @implements {WebInspector.PowerEventDispatcher} 36 * @implements {PowerAgent.Dispatcher}
37 */ 37 */
38 WebInspector.PowerDispatcher = function(profiler) 38 WebInspector.PowerDispatcher = function(profiler)
39 { 39 {
40 this._profiler = profiler; 40 this._profiler = profiler;
41 InspectorBackend.registerPowerDispatcher(this); 41 InspectorBackend.registerPowerDispatcher(this);
42 } 42 }
43 43
44 WebInspector.PowerDispatcher.prototype = { 44 WebInspector.PowerDispatcher.prototype = {
45 dataAvailable: function(events) 45 dataAvailable: function(events)
46 { 46 {
47 for (var i in events) 47 for (var i = 0; i < events.length; ++i)
48 this._profiler.dispatchEventToListeners(WebInspector.PowerProfiler.E ventTypes.PowerEventRecorded, events[i]); 48 this._profiler.dispatchEventToListeners(WebInspector.PowerProfiler.E ventTypes.PowerEventRecorded, events[i]);
49 } 49 }
50 } 50 }
51 51
52 /** 52 /**
53 * @type {!WebInspector.PowerProfiler} 53 * @type {!WebInspector.PowerProfiler}
54 */ 54 */
55 WebInspector.powerProfiler; 55 WebInspector.powerProfiler;
OLDNEW
« no previous file with comments | « no previous file | Source/devtools/front_end/TimelinePowerOverview.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698