| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2012 Intel Inc. All rights reserved. | 3 * Copyright (C) 2012 Intel Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 WebInspector.TimelinePanel.prototype = { | 164 WebInspector.TimelinePanel.prototype = { |
| 165 /** | 165 /** |
| 166 * @override | 166 * @override |
| 167 * @return {?WebInspector.SearchableView} | 167 * @return {?WebInspector.SearchableView} |
| 168 */ | 168 */ |
| 169 searchableView: function() | 169 searchableView: function() |
| 170 { | 170 { |
| 171 return this._searchableView; | 171 return this._searchableView; |
| 172 }, | 172 }, |
| 173 | 173 |
| 174 /** |
| 175 * @override |
| 176 */ |
| 174 wasShown: function() | 177 wasShown: function() |
| 175 { | 178 { |
| 176 WebInspector.context.setFlavor(WebInspector.TimelinePanel, this); | 179 WebInspector.context.setFlavor(WebInspector.TimelinePanel, this); |
| 177 }, | 180 }, |
| 178 | 181 |
| 182 /** |
| 183 * @override |
| 184 */ |
| 179 willHide: function() | 185 willHide: function() |
| 180 { | 186 { |
| 181 WebInspector.context.setFlavor(WebInspector.TimelinePanel, null); | 187 WebInspector.context.setFlavor(WebInspector.TimelinePanel, null); |
| 182 }, | 188 }, |
| 183 | 189 |
| 184 /** | 190 /** |
| 185 * @return {number} | 191 * @return {number} |
| 186 */ | 192 */ |
| 187 windowStartTime: function() | 193 windowStartTime: function() |
| 188 { | 194 { |
| (...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 522 var view = this._currentViews[i]; | 528 var view = this._currentViews[i]; |
| 523 view.refreshRecords(); | 529 view.refreshRecords(); |
| 524 } | 530 } |
| 525 this._updateSelectionDetails(); | 531 this._updateSelectionDetails(); |
| 526 }, | 532 }, |
| 527 | 533 |
| 528 _onModeChanged: function() | 534 _onModeChanged: function() |
| 529 { | 535 { |
| 530 // Set up overview controls. | 536 // Set up overview controls. |
| 531 this._overviewControls = []; | 537 this._overviewControls = []; |
| 532 this._overviewControls.push(new WebInspector.TimelineEventOverview.Respo
nsiveness(this._model, this._frameModel)); | 538 this._overviewControls.push(new WebInspector.TimelineEventOverviewRespon
siveness(this._model, this._frameModel)); |
| 533 if (Runtime.experiments.isEnabled("inputEventsOnTimelineOverview")) | 539 if (Runtime.experiments.isEnabled("inputEventsOnTimelineOverview")) |
| 534 this._overviewControls.push(new WebInspector.TimelineEventOverview.I
nput(this._model)); | 540 this._overviewControls.push(new WebInspector.TimelineEventOverviewIn
put(this._model)); |
| 535 this._overviewControls.push(new WebInspector.TimelineEventOverview.Frame
s(this._model, this._frameModel)); | 541 this._overviewControls.push(new WebInspector.TimelineEventOverviewFrames
(this._model, this._frameModel)); |
| 536 this._overviewControls.push(new WebInspector.TimelineEventOverview.CPUAc
tivity(this._model)); | 542 this._overviewControls.push(new WebInspector.TimelineEventOverviewCPUAct
ivity(this._model)); |
| 537 this._overviewControls.push(new WebInspector.TimelineEventOverview.Netwo
rk(this._model)); | 543 this._overviewControls.push(new WebInspector.TimelineEventOverviewNetwor
k(this._model)); |
| 538 if (this._captureFilmStripSetting.get()) | 544 if (this._captureFilmStripSetting.get()) |
| 539 this._overviewControls.push(new WebInspector.TimelineFilmStripOvervi
ew(this._model, this._filmStripModel)); | 545 this._overviewControls.push(new WebInspector.TimelineFilmStripOvervi
ew(this._model, this._filmStripModel)); |
| 540 if (this._captureMemorySetting.get()) | 546 if (this._captureMemorySetting.get()) |
| 541 this._overviewControls.push(new WebInspector.TimelineEventOverview.M
emory(this._model)); | 547 this._overviewControls.push(new WebInspector.TimelineEventOverviewMe
mory(this._model)); |
| 542 this._overviewPane.setOverviewControls(this._overviewControls); | 548 this._overviewPane.setOverviewControls(this._overviewControls); |
| 543 | 549 |
| 544 // Set up the main view. | 550 // Set up the main view. |
| 545 this._removeAllModeViews(); | 551 this._removeAllModeViews(); |
| 546 this._flameChart = new WebInspector.TimelineFlameChartView(this, this._m
odel, this._frameModel, this._irModel, this._filters); | 552 this._flameChart = new WebInspector.TimelineFlameChartView(this, this._m
odel, this._frameModel, this._irModel, this._filters); |
| 547 this._flameChart.enableNetworkPane(this._captureNetworkSetting.get()); | 553 this._flameChart.enableNetworkPane(this._captureNetworkSetting.get()); |
| 548 this._addModeView(this._flameChart); | 554 this._addModeView(this._flameChart); |
| 549 | 555 |
| 550 if (this._captureMemorySetting.get()) | 556 if (this._captureMemorySetting.get()) |
| 551 this._addModeView(new WebInspector.MemoryCountersGraph(this, this._m
odel, [WebInspector.TimelineUIUtils.visibleEventsFilter()])); | 557 this._addModeView(new WebInspector.MemoryCountersGraph(this, this._m
odel, [WebInspector.TimelineUIUtils.visibleEventsFilter()])); |
| (...skipping 1561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2113 _onKeyDown: function(event) | 2119 _onKeyDown: function(event) |
| 2114 { | 2120 { |
| 2115 if (event.keyCode === WebInspector.KeyboardShortcut.Keys.Enter.code) { | 2121 if (event.keyCode === WebInspector.KeyboardShortcut.Keys.Enter.code) { |
| 2116 event.preventDefault(); | 2122 event.preventDefault(); |
| 2117 this._apply(); | 2123 this._apply(); |
| 2118 } | 2124 } |
| 2119 }, | 2125 }, |
| 2120 | 2126 |
| 2121 __proto__: WebInspector.HBox.prototype | 2127 __proto__: WebInspector.HBox.prototype |
| 2122 }; | 2128 }; |
| OLD | NEW |