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 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 } |
OLD | NEW |