| 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 PageReloadRequested: "PageReloadRequested", | 74 PageReloadRequested: "PageReloadRequested", |
| 75 WillReloadPage: "WillReloadPage", | 75 WillReloadPage: "WillReloadPage", |
| 76 InspectedURLChanged: "InspectedURLChanged", | 76 InspectedURLChanged: "InspectedURLChanged", |
| 77 SecurityOriginAdded: "SecurityOriginAdded", | 77 SecurityOriginAdded: "SecurityOriginAdded", |
| 78 SecurityOriginRemoved: "SecurityOriginRemoved", | 78 SecurityOriginRemoved: "SecurityOriginRemoved", |
| 79 ScreencastFrame: "ScreencastFrame", | 79 ScreencastFrame: "ScreencastFrame", |
| 80 ScreencastVisibilityChanged: "ScreencastVisibilityChanged", | 80 ScreencastVisibilityChanged: "ScreencastVisibilityChanged", |
| 81 ColorPicked: "ColorPicked" | 81 ColorPicked: "ColorPicked" |
| 82 } | 82 } |
| 83 | 83 |
| 84 /** |
| 85 * @param {!WebInspector.Target} target |
| 86 * @return {?WebInspector.ResourceTreeModel} |
| 87 */ |
| 88 WebInspector.ResourceTreeModel.fromTarget = function(target) |
| 89 { |
| 90 return /** @type {?WebInspector.ResourceTreeModel} */ (target.model(WebInspe
ctor.ResourceTreeModel)); |
| 91 } |
| 84 | 92 |
| 85 /** | 93 /** |
| 86 * @return {!Array.<!WebInspector.ResourceTreeFrame>} | 94 * @return {!Array.<!WebInspector.ResourceTreeFrame>} |
| 87 */ | 95 */ |
| 88 WebInspector.ResourceTreeModel.frames = function() | 96 WebInspector.ResourceTreeModel.frames = function() |
| 89 { | 97 { |
| 90 var result = []; | 98 var result = []; |
| 91 for (var target of WebInspector.targetManager.targets()) | 99 for (var target of WebInspector.targetManager.targets()) |
| 92 result = result.concat(target.resourceTreeModel._frames.valuesArray()); | 100 result = result.concat(target.resourceTreeModel._frames.valuesArray()); |
| 93 return result; | 101 return result; |
| (...skipping 891 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 985 | 993 |
| 986 /** | 994 /** |
| 987 * @override | 995 * @override |
| 988 */ | 996 */ |
| 989 navigationRequested: function() | 997 navigationRequested: function() |
| 990 { | 998 { |
| 991 // Frontend is not interested in interstitials. | 999 // Frontend is not interested in interstitials. |
| 992 } | 1000 } |
| 993 | 1001 |
| 994 } | 1002 } |
| OLD | NEW |