| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 788 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 799 var option = this._frameSelector.selectedOption(); | 799 var option = this._frameSelector.selectedOption(); |
| 800 return option ? option.value : undefined; | 800 return option ? option.value : undefined; |
| 801 }, | 801 }, |
| 802 | 802 |
| 803 _dispatchViewUpdatedEvent: function() | 803 _dispatchViewUpdatedEvent: function() |
| 804 { | 804 { |
| 805 this._frameSelector.element.enableStyleClass("hidden", this._frameSelect
or.size() <= 1); | 805 this._frameSelector.element.enableStyleClass("hidden", this._frameSelect
or.size() <= 1); |
| 806 this.dispatchEventToListeners(WebInspector.ProfileType.Events.ViewUpdate
d); | 806 this.dispatchEventToListeners(WebInspector.ProfileType.Events.ViewUpdate
d); |
| 807 }, | 807 }, |
| 808 | 808 |
| 809 /** |
| 810 * @override |
| 811 * @return {boolean} |
| 812 */ |
| 813 isInstantProfile: function() |
| 814 { |
| 815 return this._isSingleFrameMode(); |
| 816 }, |
| 817 |
| 809 __proto__: WebInspector.ProfileType.prototype | 818 __proto__: WebInspector.ProfileType.prototype |
| 810 } | 819 } |
| 811 | 820 |
| 812 /** | 821 /** |
| 813 * @constructor | 822 * @constructor |
| 814 * @implements {CanvasAgent.Dispatcher} | 823 * @implements {CanvasAgent.Dispatcher} |
| 815 * @param {WebInspector.CanvasProfileType} profileType | 824 * @param {WebInspector.CanvasProfileType} profileType |
| 816 */ | 825 */ |
| 817 WebInspector.CanvasDispatcher = function(profileType) | 826 WebInspector.CanvasDispatcher = function(profileType) |
| 818 { | 827 { |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 939 return; | 948 return; |
| 940 this._alive = traceLog.alive; | 949 this._alive = traceLog.alive; |
| 941 this._traceLogSize = traceLog.totalAvailableCalls; | 950 this._traceLogSize = traceLog.totalAvailableCalls; |
| 942 this._updateCapturingStatus(); | 951 this._updateCapturingStatus(); |
| 943 } | 952 } |
| 944 CanvasAgent.getTraceLog(this._traceLogId, 0, 0, didReceiveTraceLog.bind(
this)); | 953 CanvasAgent.getTraceLog(this._traceLogId, 0, 0, didReceiveTraceLog.bind(
this)); |
| 945 }, | 954 }, |
| 946 | 955 |
| 947 __proto__: WebInspector.ProfileHeader.prototype | 956 __proto__: WebInspector.ProfileHeader.prototype |
| 948 } | 957 } |
| OLD | NEW |