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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/network/NetworkTimelineColumn.js

Issue 2443683002: [Devtools] Move NetworkTimelineColumn into NetworkLogViewColumns P1 (Closed)
Patch Set: changes Created 4 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
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/network/NetworkLogViewColumns.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 * @param {number} rowHeight 8 * @param {number} rowHeight
9 * @param {number} headerHeight 9 * @param {number} headerHeight
10 * @param {!WebInspector.NetworkTransferTimeCalculator} calculator 10 * @param {!WebInspector.NetworkTransferTimeCalculator} calculator
11 * @param {!Element} scrollContainer 11 * @param {!Element} scrollContainer
12 */ 12 */
13 WebInspector.NetworkTimelineColumn = function(rowHeight, headerHeight, calculato r, scrollContainer) 13 WebInspector.NetworkTimelineColumn = function(rowHeight, headerHeight, calculato r, scrollContainer)
14 { 14 {
15 WebInspector.VBox.call(this, true); 15 // TODO(allada) Make this a shadowDOM when the NetworkTimelineColumn gets mo ved into NetworkLogViewColumns.
16 WebInspector.VBox.call(this, false);
16 this.registerRequiredCSS("network/networkTimelineColumn.css"); 17 this.registerRequiredCSS("network/networkTimelineColumn.css");
17 18
18 this._canvas = this.contentElement.createChild("canvas"); 19 this._canvas = this.contentElement.createChild("canvas");
19 this._canvas.tabIndex = 1; 20 this._canvas.tabIndex = 1;
20 this.setDefaultFocusedElement(this._canvas); 21 this.setDefaultFocusedElement(this._canvas);
21 22
22 /** @const */ 23 /** @const */
23 this._leftPadding = 5; 24 this._leftPadding = 5;
24 /** @const */ 25 /** @const */
25 this._rightPadding = 5; 26 this._rightPadding = 5;
(...skipping 614 matching lines...) Expand 10 before | Expand all | Expand 10 after
640 color = this._rowNavigationRequestColor; 641 color = this._rowNavigationRequestColor;
641 642
642 context.fillStyle = color; 643 context.fillStyle = color;
643 context.rect(0, y, this._offsetWidth, this._rowHeight); 644 context.rect(0, y, this._offsetWidth, this._rowHeight);
644 context.fill(); 645 context.fill();
645 context.restore(); 646 context.restore();
646 }, 647 },
647 648
648 __proto__: WebInspector.VBox.prototype 649 __proto__: WebInspector.VBox.prototype
649 }; 650 };
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/network/NetworkLogViewColumns.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698