| OLD | NEW |
| 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 Loading... |
| 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 }; |
| OLD | NEW |