| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 748 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 759 * @override | 759 * @override |
| 760 * @param {!WebInspector.ProfileHeader} profile | 760 * @param {!WebInspector.ProfileHeader} profile |
| 761 */ | 761 */ |
| 762 removeProfile: function(profile) | 762 removeProfile: function(profile) |
| 763 { | 763 { |
| 764 WebInspector.ProfileType.prototype.removeProfile.call(this, profile); | 764 WebInspector.ProfileType.prototype.removeProfile.call(this, profile); |
| 765 if (this._recording && profile === this._lastProfileHeader) | 765 if (this._recording && profile === this._lastProfileHeader) |
| 766 this._recording = false; | 766 this._recording = false; |
| 767 }, | 767 }, |
| 768 | 768 |
| 769 setRecordingProfile: function(isProfiling) | |
| 770 { | |
| 771 this._recording = isProfiling; | |
| 772 }, | |
| 773 | |
| 774 /** | 769 /** |
| 775 * @override | 770 * @override |
| 776 * @param {string=} title | 771 * @param {string=} title |
| 777 * @return {!WebInspector.ProfileHeader} | 772 * @return {!WebInspector.ProfileHeader} |
| 778 */ | 773 */ |
| 779 createTemporaryProfile: function(title) | 774 createTemporaryProfile: function(title) |
| 780 { | 775 { |
| 781 title = title || WebInspector.UIString("Capturing\u2026"); | 776 title = title || WebInspector.UIString("Capturing\u2026"); |
| 782 return new WebInspector.CanvasProfileHeader(this, title); | 777 return new WebInspector.CanvasProfileHeader(this, title); |
| 783 }, | 778 }, |
| (...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1289 }, | 1284 }, |
| 1290 | 1285 |
| 1291 clearResourceStates: function() | 1286 clearResourceStates: function() |
| 1292 { | 1287 { |
| 1293 this._currentResourceStates = {}; | 1288 this._currentResourceStates = {}; |
| 1294 this.dispatchEventToListeners(WebInspector.CanvasTraceLogPlayerProxy.Eve
nts.CanvasReplayStateChanged); | 1289 this.dispatchEventToListeners(WebInspector.CanvasTraceLogPlayerProxy.Eve
nts.CanvasReplayStateChanged); |
| 1295 }, | 1290 }, |
| 1296 | 1291 |
| 1297 __proto__: WebInspector.Object.prototype | 1292 __proto__: WebInspector.Object.prototype |
| 1298 } | 1293 } |
| OLD | NEW |