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

Side by Side Diff: Source/devtools/front_end/network/NetworkOverview.js

Issue 1116003002: [DevTools] Simplify getting back to default network order. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 7 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
OLDNEW
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.VBox} 7 * @extends {WebInspector.VBox}
8 */ 8 */
9 WebInspector.NetworkOverview = function() 9 WebInspector.NetworkOverview = function()
10 { 10 {
11 WebInspector.VBox.call(this); 11 WebInspector.VBox.call(this);
12 this.element.classList.add("network-overview"); 12 this.element.classList.add("network-overview");
13 13
14 /** @type {!WebInspector.OverviewGrid} */ 14 /** @type {!WebInspector.OverviewGrid} */
15 this._overviewGrid = new WebInspector.OverviewGrid("network"); 15 this._overviewGrid = new WebInspector.OverviewGrid("network");
16 /** @type {!Element} */ 16 /** @type {!Element} */
17 this._overviewContainer = this._overviewGrid.element.createChild("div", "net work-overview-canvas-container"); 17 this._overviewContainer = this._overviewGrid.element.createChild("div", "net work-overview-canvas-container");
18 this._overviewCanvas = this._overviewContainer.createChild("canvas", "networ k-overview-canvas"); 18 this._overviewCanvas = this._overviewContainer.createChild("canvas", "networ k-overview-canvas");
19 /** @type {!WebInspector.NetworkTransferTimeCalculator} */ 19 /** @type {!WebInspector.NetworkTimeCalculator} */
20 this._calculator = new WebInspector.NetworkTransferTimeCalculator(); 20 this._calculator = new WebInspector.NetworkTimeCalculator();
21 /** @type {number} */ 21 /** @type {number} */
22 this._numBands = 1; 22 this._numBands = 1;
23 /** @type {number} */ 23 /** @type {number} */
24 this._windowStart = 0; 24 this._windowStart = 0;
25 /** @type {number} */ 25 /** @type {number} */
26 this._windowEnd = 0; 26 this._windowEnd = 0;
27 /** @type {boolean} */ 27 /** @type {boolean} */
28 this._restoringWindow = false; 28 this._restoringWindow = false;
29 /** @type {boolean} */ 29 /** @type {boolean} */
30 this._updateScheduled = false; 30 this._updateScheduled = false;
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 { 337 {
338 this._canvasWidth = width; 338 this._canvasWidth = width;
339 this._canvasHeight = height; 339 this._canvasHeight = height;
340 this._overviewCanvas.width = width * window.devicePixelRatio; 340 this._overviewCanvas.width = width * window.devicePixelRatio;
341 this._overviewCanvas.height = height * window.devicePixelRatio; 341 this._overviewCanvas.height = height * window.devicePixelRatio;
342 this._overviewGrid.updateDividers(this._calculator); 342 this._overviewGrid.updateDividers(this._calculator);
343 }, 343 },
344 344
345 __proto__: WebInspector.VBox.prototype 345 __proto__: WebInspector.VBox.prototype
346 } 346 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/network/NetworkLogView.js ('k') | Source/devtools/front_end/network/NetworkPanel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698