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

Side by Side Diff: Source/devtools/front_end/timeline/TimelinePowerGraph.js

Issue 710113002: DevTools: remove TimelineModel.Events.RecordAdded event (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed comment Created 6 years, 1 month 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
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.CountersGraph} 7 * @extends {WebInspector.CountersGraph}
8 * @implements {WebInspector.TimelineModeView} 8 * @implements {WebInspector.TimelineModeView}
9 * @param {!WebInspector.TimelineModeViewDelegate} delegate 9 * @param {!WebInspector.TimelineModeViewDelegate} delegate
10 * @param {!WebInspector.TimelineModel} model 10 * @param {!WebInspector.TimelineModel} model
(...skipping 21 matching lines...) Expand all
32 return; 32 return;
33 } 33 }
34 34
35 // "value" of original PowerEvent means the average power between previo us sampling to current one. 35 // "value" of original PowerEvent means the average power between previo us sampling to current one.
36 // Here, it is converted to average power between current sampling to ne xt one. 36 // Here, it is converted to average power between current sampling to ne xt one.
37 this._counter.appendSample(this._previousRecord.timestamp, record.value) ; 37 this._counter.appendSample(this._previousRecord.timestamp, record.value) ;
38 this._previousRecord = record; 38 this._previousRecord = record;
39 this.scheduleRefresh(); 39 this.scheduleRefresh();
40 }, 40 },
41 41
42 /**
43 * @param {!WebInspector.TimelineModel.Record} record
44 */
45 addRecord: function(record)
46 {
47 },
48
49 __proto__: WebInspector.CountersGraph.prototype 42 __proto__: WebInspector.CountersGraph.prototype
50 } 43 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/timeline/TimelinePanel.js ('k') | Source/devtools/front_end/timeline/TimelinePresentationModel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698