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 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 _willReloadPage: function(event) | 251 _willReloadPage: function(event) |
252 { | 252 { |
253 this._toggleRecordButton(true); | 253 this._toggleRecordButton(true); |
254 this._hideFilmStrip(); | 254 this._hideFilmStrip(); |
255 if (!this._preserveLogCheckbox.checked() || this._shouldRecordFilmStrip) | 255 if (!this._preserveLogCheckbox.checked() || this._shouldRecordFilmStrip) |
256 this._networkLogView.reset(); | 256 this._networkLogView.reset(); |
257 if (this._shouldRecordFilmStrip) { | 257 if (this._shouldRecordFilmStrip) { |
258 this._shouldRecordFilmStrip = false; | 258 this._shouldRecordFilmStrip = false; |
259 this._toggleRecordFilmStripButton(true); | 259 this._toggleRecordFilmStripButton(true); |
260 this._networkLogView.setShowSelectedFrame(true); | 260 this._networkLogView.setShowSelectedFrame(true); |
261 this._filmStripView = new WebInspector.NetworkFilmStripView(this._ne
tworkLogView.timeCalculator()); | 261 this._filmStripView = new WebInspector.NetworkFilmStripView(this._ne
tworkLogView.calculator()); |
262 this._filmStripView.show(this._searchableView.element, this._showOve
rviewButton.toggled() ? this._overview.element : this._splitView.element); | 262 this._filmStripView.show(this._searchableView.element, this._showOve
rviewButton.toggled() ? this._overview.element : this._splitView.element); |
263 this._filmStripView.addEventListener(WebInspector.NetworkFilmStripVi
ew.Events.FrameSelected, this._onFilmFrameSelected, this); | 263 this._filmStripView.addEventListener(WebInspector.NetworkFilmStripVi
ew.Events.FrameSelected, this._onFilmFrameSelected, this); |
264 this._filmStripView.addEventListener(WebInspector.NetworkFilmStripVi
ew.Events.RecordingFinished, this._onFilmRecordingFinished, this); | 264 this._filmStripView.addEventListener(WebInspector.NetworkFilmStripVi
ew.Events.RecordingFinished, this._onFilmRecordingFinished, this); |
265 this._filmStripView.startRecording(); | 265 this._filmStripView.startRecording(); |
266 } | 266 } |
267 }, | 267 }, |
268 | 268 |
269 /** | 269 /** |
270 * @param {!WebInspector.Event} event | 270 * @param {!WebInspector.Event} event |
271 */ | 271 */ |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
440 * @param {?WebInspector.NetworkRequest} request | 440 * @param {?WebInspector.NetworkRequest} request |
441 */ | 441 */ |
442 _showRequest: function(request) | 442 _showRequest: function(request) |
443 { | 443 { |
444 if (this._networkItemView) { | 444 if (this._networkItemView) { |
445 this._networkItemView.detach(); | 445 this._networkItemView.detach(); |
446 this._networkItemView = null; | 446 this._networkItemView = null; |
447 } | 447 } |
448 | 448 |
449 if (request) { | 449 if (request) { |
450 this._networkItemView = new WebInspector.NetworkItemView(request, th
is._networkLogView.timeCalculator()); | 450 this._networkItemView = new WebInspector.NetworkItemView(request, th
is._networkLogView.calculator()); |
451 this._networkItemView.insertBeforeTabStrip(this._closeButtonElement)
; | 451 this._networkItemView.insertBeforeTabStrip(this._closeButtonElement)
; |
452 this._networkItemView.show(this._detailsView.element); | 452 this._networkItemView.show(this._detailsView.element); |
453 this._splitView.showBoth(); | 453 this._splitView.showBoth(); |
454 this._networkLogView.revealSelectedItem(); | 454 this._networkLogView.revealSelectedItem(); |
455 } else { | 455 } else { |
456 this._splitView.hideMain(); | 456 this._splitView.hideMain(); |
457 this._networkLogView.clearSelection(); | 457 this._networkLogView.clearSelection(); |
458 } | 458 } |
459 this._updateUI(); | 459 this._updateUI(); |
460 }, | 460 }, |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
648 WebInspector.NetworkPanelFactory.prototype = { | 648 WebInspector.NetworkPanelFactory.prototype = { |
649 /** | 649 /** |
650 * @override | 650 * @override |
651 * @return {!WebInspector.Panel} | 651 * @return {!WebInspector.Panel} |
652 */ | 652 */ |
653 createPanel: function() | 653 createPanel: function() |
654 { | 654 { |
655 return WebInspector.NetworkPanel._instance(); | 655 return WebInspector.NetworkPanel._instance(); |
656 } | 656 } |
657 } | 657 } |
OLD | NEW |