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 * @unrestricted | 5 * @unrestricted |
6 */ | 6 */ |
7 Network.NetworkWaterfallColumn = class extends UI.VBox { | 7 Network.NetworkWaterfallColumn = class extends UI.VBox { |
8 /** | 8 /** |
9 * @param {number} rowHeight | 9 * @param {number} rowHeight |
10 * @param {!Network.NetworkTimeCalculator} calculator | 10 * @param {!Network.NetworkTimeCalculator} calculator |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 /** | 136 /** |
137 * @param {!Element|!AnchorBox} anchor | 137 * @param {!Element|!AnchorBox} anchor |
138 * @param {!UI.Popover} popover | 138 * @param {!UI.Popover} popover |
139 */ | 139 */ |
140 _showPopover(anchor, popover) { | 140 _showPopover(anchor, popover) { |
141 if (!this._hoveredNode) | 141 if (!this._hoveredNode) |
142 return; | 142 return; |
143 var request = this._hoveredNode.request(); | 143 var request = this._hoveredNode.request(); |
144 if (!request) | 144 if (!request) |
145 return; | 145 return; |
146 var content = Network.RequestTimingView.createTimingTable(request, this._cal
culator.minimumBoundary()); | 146 var content = Network.RequestTimingView.createTimingTable(request, this._cal
culator); |
147 popover.showForAnchor(content, anchor); | 147 popover.showForAnchor(content, anchor); |
148 } | 148 } |
149 | 149 |
150 /** | 150 /** |
151 * @param {?Network.NetworkNode} node | 151 * @param {?Network.NetworkNode} node |
152 * @param {boolean} highlightInitiatorChain | 152 * @param {boolean} highlightInitiatorChain |
153 */ | 153 */ |
154 _setHoveredNode(node, highlightInitiatorChain) { | 154 _setHoveredNode(node, highlightInitiatorChain) { |
155 if (this._hoveredNode) | 155 if (this._hoveredNode) |
156 this._hoveredNode.setHovered(false, false); | 156 this._hoveredNode.setHovered(false, false); |
(...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
647 font: 'hsl(8, 100%, 80%)', | 647 font: 'hsl(8, 100%, 80%)', |
648 media: 'hsl(90, 50%, 80%)', | 648 media: 'hsl(90, 50%, 80%)', |
649 image: 'hsl(90, 50%, 80%)', | 649 image: 'hsl(90, 50%, 80%)', |
650 script: 'hsl(31, 100%, 80%)', | 650 script: 'hsl(31, 100%, 80%)', |
651 stylesheet: 'hsl(272, 64%, 80%)', | 651 stylesheet: 'hsl(272, 64%, 80%)', |
652 texttrack: 'hsl(8, 100%, 80%)', | 652 texttrack: 'hsl(8, 100%, 80%)', |
653 websocket: 'hsl(0, 0%, 95%)', | 653 websocket: 'hsl(0, 0%, 95%)', |
654 xhr: 'hsl(53, 100%, 80%)', | 654 xhr: 'hsl(53, 100%, 80%)', |
655 other: 'hsl(0, 0%, 95%)' | 655 other: 'hsl(0, 0%, 95%)' |
656 }; | 656 }; |
OLD | NEW |