| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 796 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 807 }, | 807 }, |
| 808 | 808 |
| 809 scriptsEnabled: function(isEnabled) | 809 scriptsEnabled: function(isEnabled) |
| 810 { | 810 { |
| 811 WebInspector.settings.javaScriptDisabled.set(!isEnabled); | 811 WebInspector.settings.javaScriptDisabled.set(!isEnabled); |
| 812 }, | 812 }, |
| 813 | 813 |
| 814 /** | 814 /** |
| 815 * @param {string} data | 815 * @param {string} data |
| 816 * @param {!PageAgent.ScreencastFrameMetadata=} metadata | 816 * @param {!PageAgent.ScreencastFrameMetadata=} metadata |
| 817 * @param {number=} frameNumber |
| 817 */ | 818 */ |
| 818 screencastFrame: function(data, metadata) | 819 screencastFrame: function(data, metadata, frameNumber) |
| 819 { | 820 { |
| 820 this._resourceTreeModel.dispatchEventToListeners(WebInspector.ResourceTr
eeModel.EventTypes.ScreencastFrame, {data:data, metadata:metadata}); | 821 this._resourceTreeModel.dispatchEventToListeners(WebInspector.ResourceTr
eeModel.EventTypes.ScreencastFrame, {data:data, metadata:metadata, frameNumber:f
rameNumber}); |
| 821 }, | 822 }, |
| 822 | 823 |
| 823 /** | 824 /** |
| 824 * @param {boolean} visible | 825 * @param {boolean} visible |
| 825 */ | 826 */ |
| 826 screencastVisibilityChanged: function(visible) | 827 screencastVisibilityChanged: function(visible) |
| 827 { | 828 { |
| 828 this._resourceTreeModel.dispatchEventToListeners(WebInspector.ResourceTr
eeModel.EventTypes.ScreencastVisibilityChanged, {visible:visible}); | 829 this._resourceTreeModel.dispatchEventToListeners(WebInspector.ResourceTr
eeModel.EventTypes.ScreencastVisibilityChanged, {visible:visible}); |
| 829 }, | 830 }, |
| 830 | 831 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 852 interstitialHidden: function() | 853 interstitialHidden: function() |
| 853 { | 854 { |
| 854 // Frontend is not interested in interstitials. | 855 // Frontend is not interested in interstitials. |
| 855 } | 856 } |
| 856 } | 857 } |
| 857 | 858 |
| 858 /** | 859 /** |
| 859 * @type {!WebInspector.ResourceTreeModel} | 860 * @type {!WebInspector.ResourceTreeModel} |
| 860 */ | 861 */ |
| 861 WebInspector.resourceTreeModel; | 862 WebInspector.resourceTreeModel; |
| OLD | NEW |