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

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

Issue 1210843003: DevTools: Fix network overview on hidpi (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « no previous file | Source/devtools/front_end/network/networkPanel.css » ('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 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 17 matching lines...) Expand all
28 28
29 WebInspector.targetManager.addModelListener(WebInspector.ResourceTreeModel, WebInspector.ResourceTreeModel.EventTypes.Load, this._loadEventFired, this); 29 WebInspector.targetManager.addModelListener(WebInspector.ResourceTreeModel, WebInspector.ResourceTreeModel.EventTypes.Load, this._loadEventFired, this);
30 WebInspector.targetManager.addModelListener(WebInspector.ResourceTreeModel, WebInspector.ResourceTreeModel.EventTypes.DOMContentLoaded, this._domContentLoad edEventFired, this); 30 WebInspector.targetManager.addModelListener(WebInspector.ResourceTreeModel, WebInspector.ResourceTreeModel.EventTypes.DOMContentLoaded, this._domContentLoad edEventFired, 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 /** @type {number} */
39 WebInspector.NetworkOverview._dividersBarHeight = 20;
40
41 /** @typedef {{start: number, end: number}} */ 38 /** @typedef {{start: number, end: number}} */
42 WebInspector.NetworkOverview.Window; 39 WebInspector.NetworkOverview.Window;
43 40
44 WebInspector.NetworkOverview.prototype = { 41 WebInspector.NetworkOverview.prototype = {
45 /** 42 /**
46 * @param {?WebInspector.FilmStripModel} filmStripModel 43 * @param {?WebInspector.FilmStripModel} filmStripModel
47 */ 44 */
48 setFilmStripModel: function(filmStripModel) 45 setFilmStripModel: function(filmStripModel)
49 { 46 {
50 this._filmStripModel = filmStripModel; 47 this._filmStripModel = filmStripModel;
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 context.beginPath(); 312 context.beginPath();
316 context.arc(x, radius, radius, 0, 2 * Math.PI, false); 313 context.arc(x, radius, radius, 0, 2 * Math.PI, false);
317 context.fill(); 314 context.fill();
318 context.stroke(); 315 context.stroke();
319 } 316 }
320 context.restore(); 317 context.restore();
321 }, 318 },
322 319
323 __proto__: WebInspector.TimelineOverviewBase.prototype 320 __proto__: WebInspector.TimelineOverviewBase.prototype
324 } 321 }
OLDNEW
« no previous file with comments | « no previous file | Source/devtools/front_end/network/networkPanel.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698