Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(213)

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/network/NetworkPanel.js

Issue 2392553003: DevTools: continue recording network activity after load (Closed)
Patch Set: Enabling screenshots don't stop recording when page loads Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 if (this.isShowing() && this._filmStripRecorder) 266 if (this.isShowing() && this._filmStripRecorder)
267 this._filmStripRecorder.startRecording(); 267 this._filmStripRecorder.startRecording();
268 }, 268 },
269 269
270 /** 270 /**
271 * @param {!WebInspector.Event} event 271 * @param {!WebInspector.Event} event
272 */ 272 */
273 _load: function(event) 273 _load: function(event)
274 { 274 {
275 if (this._filmStripRecorder && this._filmStripRecorder.isRecording()) 275 if (this._filmStripRecorder && this._filmStripRecorder.isRecording())
276 this._pendingStopTimer = setTimeout(this._toggleRecord.bind(this, fa lse), 1000); 276 this._pendingStopTimer = setTimeout(this._stopFilmStripRecording.bin d(this), 1000);
277 },
278
279 _stopFilmStripRecording: function()
280 {
281 this._filmStripRecorder.stopRecording(this._filmStripAvailable.bind(this ));
282 delete this._pendingStopTimer;
277 }, 283 },
278 284
279 _toggleLargerRequests: function() 285 _toggleLargerRequests: function()
280 { 286 {
281 this._updateUI(); 287 this._updateUI();
282 }, 288 },
283 289
284 _toggleShowOverview: function() 290 _toggleShowOverview: function()
285 { 291 {
286 var toggled = this._networkLogShowOverviewSetting.get(); 292 var toggled = this._networkLogShowOverviewSetting.get();
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after
769 * @return {boolean} 775 * @return {boolean}
770 */ 776 */
771 handleAction: function(context, actionId) 777 handleAction: function(context, actionId)
772 { 778 {
773 var panel = WebInspector.context.flavor(WebInspector.NetworkPanel); 779 var panel = WebInspector.context.flavor(WebInspector.NetworkPanel);
774 console.assert(panel && panel instanceof WebInspector.NetworkPanel); 780 console.assert(panel && panel instanceof WebInspector.NetworkPanel);
775 panel._toggleRecording(); 781 panel._toggleRecording();
776 return true; 782 return true;
777 } 783 }
778 } 784 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698