| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2008, 2009 Anthony Ricaud <rik@webkit.org> | 3 * Copyright (C) 2008, 2009 Anthony Ricaud <rik@webkit.org> |
| 4 * Copyright (C) 2011 Google Inc. All rights reserved. | 4 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * | 9 * |
| 10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 | 171 |
| 172 /** | 172 /** |
| 173 * @param {boolean} toggled | 173 * @param {boolean} toggled |
| 174 */ | 174 */ |
| 175 _toggleRecordButton: function(toggled) | 175 _toggleRecordButton: function(toggled) |
| 176 { | 176 { |
| 177 this._recordButton.setToggled(toggled); | 177 this._recordButton.setToggled(toggled); |
| 178 this._recordButton.setTitle(toggled ? WebInspector.UIString("Stop Record
ing Network Log") : WebInspector.UIString("Record Network Log")); | 178 this._recordButton.setTitle(toggled ? WebInspector.UIString("Stop Record
ing Network Log") : WebInspector.UIString("Record Network Log")); |
| 179 this._networkLogView.setRecording(toggled); | 179 this._networkLogView.setRecording(toggled); |
| 180 if (!toggled && this._filmStripRecorder) | 180 if (!toggled && this._filmStripRecorder) |
| 181 this._filmStripRecorder.stopRecording(this._networkLogView.timeCalcu
lator().zeroTime() * 1000); | 181 this._filmStripRecorder.stopRecording(this._networkLogView.calculato
r().zeroTime() * 1000); |
| 182 }, | 182 }, |
| 183 | 183 |
| 184 /** | 184 /** |
| 185 * @param {!Event} event | 185 * @param {!Event} event |
| 186 */ | 186 */ |
| 187 _onPreserveLogCheckboxChanged: function(event) | 187 _onPreserveLogCheckboxChanged: function(event) |
| 188 { | 188 { |
| 189 this._networkLogView.setPreserveLog(this._preserveLogCheckbox.checked())
; | 189 this._networkLogView.setPreserveLog(this._preserveLogCheckbox.checked())
; |
| 190 }, | 190 }, |
| 191 | 191 |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 365 * @param {?WebInspector.NetworkRequest} request | 365 * @param {?WebInspector.NetworkRequest} request |
| 366 */ | 366 */ |
| 367 _showRequest: function(request) | 367 _showRequest: function(request) |
| 368 { | 368 { |
| 369 if (this._networkItemView) { | 369 if (this._networkItemView) { |
| 370 this._networkItemView.detach(); | 370 this._networkItemView.detach(); |
| 371 this._networkItemView = null; | 371 this._networkItemView = null; |
| 372 } | 372 } |
| 373 | 373 |
| 374 if (request) { | 374 if (request) { |
| 375 this._networkItemView = new WebInspector.NetworkItemView(request, th
is._networkLogView.timeCalculator()); | 375 this._networkItemView = new WebInspector.NetworkItemView(request, th
is._networkLogView.calculator()); |
| 376 this._networkItemView.insertBeforeTabStrip(this._closeButtonElement)
; | 376 this._networkItemView.insertBeforeTabStrip(this._closeButtonElement)
; |
| 377 this._networkItemView.show(this._detailsView.element); | 377 this._networkItemView.show(this._detailsView.element); |
| 378 this._splitView.showBoth(); | 378 this._splitView.showBoth(); |
| 379 this._networkLogView.revealSelectedItem(); | 379 this._networkLogView.revealSelectedItem(); |
| 380 } else { | 380 } else { |
| 381 this._splitView.hideMain(); | 381 this._splitView.hideMain(); |
| 382 this._networkLogView.clearSelection(); | 382 this._networkLogView.clearSelection(); |
| 383 } | 383 } |
| 384 this._updateUI(); | 384 this._updateUI(); |
| 385 }, | 385 }, |
| (...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 660 stopRecording: function(zeroTime) | 660 stopRecording: function(zeroTime) |
| 661 { | 661 { |
| 662 if (!this._target) | 662 if (!this._target) |
| 663 return; | 663 return; |
| 664 | 664 |
| 665 this._target.tracingManager.stop(); | 665 this._target.tracingManager.stop(); |
| 666 this._target = null; | 666 this._target = null; |
| 667 this._zeroTime = zeroTime; | 667 this._zeroTime = zeroTime; |
| 668 } | 668 } |
| 669 } | 669 } |
| OLD | NEW |