OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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.TimelineOverviewBase} | 7 * @extends {WebInspector.TimelineOverviewBase} |
8 */ | 8 */ |
9 WebInspector.NetworkOverview = function() | 9 WebInspector.NetworkOverview = function() |
10 { | 10 { |
(...skipping 12 matching lines...) Expand all Loading... |
23 this._updateScheduled = false; | 23 this._updateScheduled = false; |
24 /** @type {number} */ | 24 /** @type {number} */ |
25 this._canvasWidth = 0; | 25 this._canvasWidth = 0; |
26 /** @type {number} */ | 26 /** @type {number} */ |
27 this._canvasHeight = 0; | 27 this._canvasHeight = 0; |
28 | 28 |
29 WebInspector.targetManager.addModelListener(WebInspector.ResourceTreeModel,
WebInspector.ResourceTreeModel.Events.Load, this._loadEventFired, this); | 29 WebInspector.targetManager.addModelListener(WebInspector.ResourceTreeModel,
WebInspector.ResourceTreeModel.Events.Load, this._loadEventFired, this); |
30 WebInspector.targetManager.addModelListener(WebInspector.ResourceTreeModel,
WebInspector.ResourceTreeModel.Events.DOMContentLoaded, this._domContentLoadedEv
entFired, this); | 30 WebInspector.targetManager.addModelListener(WebInspector.ResourceTreeModel,
WebInspector.ResourceTreeModel.Events.DOMContentLoaded, this._domContentLoadedEv
entFired, this); |
31 | 31 |
32 this.reset(); | 32 this.reset(); |
33 } | 33 }; |
34 | 34 |
35 /** @type {number} */ | 35 /** @type {number} */ |
36 WebInspector.NetworkOverview._bandHeight = 3; | 36 WebInspector.NetworkOverview._bandHeight = 3; |
37 | 37 |
38 /** @typedef {{start: number, end: number}} */ | 38 /** @typedef {{start: number, end: number}} */ |
39 WebInspector.NetworkOverview.Window; | 39 WebInspector.NetworkOverview.Window; |
40 | 40 |
41 WebInspector.NetworkOverview.prototype = { | 41 WebInspector.NetworkOverview.prototype = { |
42 /** | 42 /** |
43 * @param {?WebInspector.FilmStripModel} filmStripModel | 43 * @param {?WebInspector.FilmStripModel} filmStripModel |
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
302 context.strokeStyle = "#FCCC49"; // Keep in sync with .network-frame
-divider CSS rule. | 302 context.strokeStyle = "#FCCC49"; // Keep in sync with .network-frame
-divider CSS rule. |
303 var x = Math.round(calculator.computePosition(this._selectedFilmStri
pTime)); | 303 var x = Math.round(calculator.computePosition(this._selectedFilmStri
pTime)); |
304 context.moveTo(x, 0); | 304 context.moveTo(x, 0); |
305 context.lineTo(x, height); | 305 context.lineTo(x, height); |
306 context.stroke(); | 306 context.stroke(); |
307 } | 307 } |
308 context.restore(); | 308 context.restore(); |
309 }, | 309 }, |
310 | 310 |
311 __proto__: WebInspector.TimelineOverviewBase.prototype | 311 __proto__: WebInspector.TimelineOverviewBase.prototype |
312 } | 312 }; |
OLD | NEW |