| 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.NetworkLogViewColumns = class { | 7 Network.NetworkLogViewColumns = class { |
| 8 /** | 8 /** |
| 9 * @param {!Network.NetworkLogView} networkLogView | 9 * @param {!Network.NetworkLogView} networkLogView |
| 10 * @param {!Network.NetworkTransferTimeCalculator} timeCalculator | 10 * @param {!Network.NetworkTransferTimeCalculator} timeCalculator |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 | 118 |
| 119 _setupWaterfall() { | 119 _setupWaterfall() { |
| 120 this._waterfallColumn = | 120 this._waterfallColumn = |
| 121 new Network.NetworkWaterfallColumn(this._networkLogView.rowHeight(), thi
s._networkLogView.calculator()); | 121 new Network.NetworkWaterfallColumn(this._networkLogView.rowHeight(), thi
s._networkLogView.calculator()); |
| 122 | 122 |
| 123 this._waterfallColumn.element.addEventListener('contextmenu', handleContextM
enu.bind(this)); | 123 this._waterfallColumn.element.addEventListener('contextmenu', handleContextM
enu.bind(this)); |
| 124 this._waterfallColumn.element.addEventListener('mousewheel', this._onMouseWh
eel.bind(this, false), {passive: true}); | 124 this._waterfallColumn.element.addEventListener('mousewheel', this._onMouseWh
eel.bind(this, false), {passive: true}); |
| 125 this._dataGridScroller.addEventListener('mousewheel', this._onMouseWheel.bin
d(this, true), true); | 125 this._dataGridScroller.addEventListener('mousewheel', this._onMouseWheel.bin
d(this, true), true); |
| 126 | 126 |
| 127 this._waterfallScroller = this._waterfallColumn.contentElement.createChild('
div', 'network-waterfall-v-scroll'); | 127 this._waterfallScroller = this._waterfallColumn.contentElement.createChild('
div', 'network-waterfall-v-scroll'); |
| 128 this._waterfallScroller.addEventListener('scroll', this._syncScrollers.bind(
this), {passive: true}); | |
| 129 this._waterfallScrollerContent = this._waterfallScroller.createChild('div',
'network-waterfall-v-scroll-content'); | 128 this._waterfallScrollerContent = this._waterfallScroller.createChild('div',
'network-waterfall-v-scroll-content'); |
| 130 | 129 |
| 131 this._dataGrid.addEventListener(DataGrid.DataGrid.Events.PaddingChanged, ()
=> { | 130 this._dataGrid.addEventListener(DataGrid.DataGrid.Events.PaddingChanged, ()
=> { |
| 132 this._waterfallScrollerWidthIsStale = true; | 131 this._waterfallScrollerWidthIsStale = true; |
| 133 this._syncScrollers(); | 132 this._syncScrollers(); |
| 134 }); | 133 }); |
| 135 this._dataGrid.addEventListener( | 134 this._dataGrid.addEventListener( |
| 136 DataGrid.ViewportDataGrid.Events.ViewportCalculated, this._redrawWaterfa
llColumn.bind(this)); | 135 DataGrid.ViewportDataGrid.Events.ViewportCalculated, this._redrawWaterfa
llColumn.bind(this)); |
| 137 | 136 |
| 138 this._createWaterfallHeader(); | 137 this._createWaterfallHeader(); |
| (...skipping 664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 803 /** | 802 /** |
| 804 * @enum {string} | 803 * @enum {string} |
| 805 */ | 804 */ |
| 806 Network.NetworkLogViewColumns.WaterfallSortIds = { | 805 Network.NetworkLogViewColumns.WaterfallSortIds = { |
| 807 StartTime: 'startTime', | 806 StartTime: 'startTime', |
| 808 ResponseTime: 'responseReceivedTime', | 807 ResponseTime: 'responseReceivedTime', |
| 809 EndTime: 'endTime', | 808 EndTime: 'endTime', |
| 810 Duration: 'duration', | 809 Duration: 'duration', |
| 811 Latency: 'latency' | 810 Latency: 'latency' |
| 812 }; | 811 }; |
| OLD | NEW |