| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 FrameDetached: "FrameDetached", | 59 FrameDetached: "FrameDetached", |
| 60 MainFrameNavigated: "MainFrameNavigated", | 60 MainFrameNavigated: "MainFrameNavigated", |
| 61 MainFrameCreatedOrNavigated: "MainFrameCreatedOrNavigated", | 61 MainFrameCreatedOrNavigated: "MainFrameCreatedOrNavigated", |
| 62 ResourceAdded: "ResourceAdded", | 62 ResourceAdded: "ResourceAdded", |
| 63 WillLoadCachedResources: "WillLoadCachedResources", | 63 WillLoadCachedResources: "WillLoadCachedResources", |
| 64 CachedResourcesLoaded: "CachedResourcesLoaded", | 64 CachedResourcesLoaded: "CachedResourcesLoaded", |
| 65 DOMContentLoaded: "DOMContentLoaded", | 65 DOMContentLoaded: "DOMContentLoaded", |
| 66 Load: "Load", | 66 Load: "Load", |
| 67 InspectedURLChanged: "InspectedURLChanged", | 67 InspectedURLChanged: "InspectedURLChanged", |
| 68 SecurityOriginAdded: "SecurityOriginAdded", | 68 SecurityOriginAdded: "SecurityOriginAdded", |
| 69 SecurityOriginRemoved: "SecurityOriginRemoved" | 69 SecurityOriginRemoved: "SecurityOriginRemoved", |
| 70 ScreencastFrame: "ScreencastFrame", |
| 70 } | 71 } |
| 71 | 72 |
| 72 WebInspector.ResourceTreeModel.prototype = { | 73 WebInspector.ResourceTreeModel.prototype = { |
| 73 _fetchResourceTree: function() | 74 _fetchResourceTree: function() |
| 74 { | 75 { |
| 75 /** @type {!Object.<string, !WebInspector.ResourceTreeFrame>} */ | 76 /** @type {!Object.<string, !WebInspector.ResourceTreeFrame>} */ |
| 76 this._frames = {}; | 77 this._frames = {}; |
| 77 delete this._cachedResourcesProcessed; | 78 delete this._cachedResourcesProcessed; |
| 78 PageAgent.getResourceTree(this._processCachedResources.bind(this)); | 79 PageAgent.getResourceTree(this._processCachedResources.bind(this)); |
| 79 }, | 80 }, |
| (...skipping 620 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 700 { | 701 { |
| 701 }, | 702 }, |
| 702 | 703 |
| 703 javascriptDialogClosed: function() | 704 javascriptDialogClosed: function() |
| 704 { | 705 { |
| 705 }, | 706 }, |
| 706 | 707 |
| 707 scriptsEnabled: function(isEnabled) | 708 scriptsEnabled: function(isEnabled) |
| 708 { | 709 { |
| 709 WebInspector.settings.javaScriptDisabled.set(!isEnabled); | 710 WebInspector.settings.javaScriptDisabled.set(!isEnabled); |
| 711 }, |
| 712 |
| 713 /** |
| 714 * @param {string} data |
| 715 */ |
| 716 screencastFrame: function(data) |
| 717 { |
| 718 this._resourceTreeModel.dispatchEventToListeners(WebInspector.ResourceTr
eeModel.EventTypes.ScreencastFrame, data); |
| 710 } | 719 } |
| 711 } | 720 } |
| 712 | 721 |
| 713 /** | 722 /** |
| 714 * @type {WebInspector.ResourceTreeModel} | 723 * @type {WebInspector.ResourceTreeModel} |
| 715 */ | 724 */ |
| 716 WebInspector.resourceTreeModel = null; | 725 WebInspector.resourceTreeModel = null; |
| OLD | NEW |