Commit e6bc9e8a authored by apavlov@chromium.org's avatar apavlov@chromium.org

DevTools: Fix JSDoc and code landed in r169951.

R=pfeldman
BUG=337138
NOTRY=true

Review URL: https://codereview.chromium.org/212503002

git-svn-id: svn://svn.chromium.org/blink/trunk@170034 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 69d6fefe
...@@ -33,7 +33,7 @@ WebInspector.PowerProfiler.prototype = { ...@@ -33,7 +33,7 @@ WebInspector.PowerProfiler.prototype = {
/** /**
* @constructor * @constructor
* @implements {WebInspector.PowerEventDispatcher} * @implements {PowerAgent.Dispatcher}
*/ */
WebInspector.PowerDispatcher = function(profiler) WebInspector.PowerDispatcher = function(profiler)
{ {
...@@ -44,7 +44,7 @@ WebInspector.PowerDispatcher = function(profiler) ...@@ -44,7 +44,7 @@ WebInspector.PowerDispatcher = function(profiler)
WebInspector.PowerDispatcher.prototype = { WebInspector.PowerDispatcher.prototype = {
dataAvailable: function(events) dataAvailable: function(events)
{ {
for (var i in events) for (var i = 0; i < events.length; ++i)
this._profiler.dispatchEventToListeners(WebInspector.PowerProfiler.EventTypes.PowerEventRecorded, events[i]); this._profiler.dispatchEventToListeners(WebInspector.PowerProfiler.EventTypes.PowerEventRecorded, events[i]);
} }
} }
......
...@@ -15,7 +15,7 @@ WebInspector.TimelinePowerOverviewDataProvider = function() ...@@ -15,7 +15,7 @@ WebInspector.TimelinePowerOverviewDataProvider = function()
WebInspector.TimelinePowerOverviewDataProvider.prototype = { WebInspector.TimelinePowerOverviewDataProvider.prototype = {
/** /**
* @return {Array.<PowerEvent>} * @return {!Array.<!PowerAgent.PowerEvent>}
*/ */
records : function() records : function()
{ {
...@@ -25,8 +25,8 @@ WebInspector.TimelinePowerOverviewDataProvider.prototype = { ...@@ -25,8 +25,8 @@ WebInspector.TimelinePowerOverviewDataProvider.prototype = {
_onRecordAdded: function(event) _onRecordAdded: function(event)
{ {
// "value" of original PowerEvent means the anverage power between previous sampling to current one. // "value" of original PowerEvent means the average power between previous sampling to current one.
// Here, it is converted to anverage power between current sampling to next one. // Here, it is converted to average power between current sampling to next one.
var record = event.data; var record = event.data;
var length = this._records.length; var length = this._records.length;
if (length) if (length)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment