| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 this._pendingReloadOptions = null; | 56 this._pendingReloadOptions = null; |
| 57 this._reloadSuspensionCount = 0; | 57 this._reloadSuspensionCount = 0; |
| 58 this._isInterstitialShowing = false; | 58 this._isInterstitialShowing = false; |
| 59 } | 59 } |
| 60 | 60 |
| 61 /** | 61 /** |
| 62 * @param {!SDK.Target} target | 62 * @param {!SDK.Target} target |
| 63 * @return {?SDK.ResourceTreeModel} | 63 * @return {?SDK.ResourceTreeModel} |
| 64 */ | 64 */ |
| 65 static fromTarget(target) { | 65 static fromTarget(target) { |
| 66 return /** @type {?SDK.ResourceTreeModel} */ (target.model(SDK.ResourceTreeM
odel)); | 66 return target.model(SDK.ResourceTreeModel); |
| 67 } | 67 } |
| 68 | 68 |
| 69 /** | 69 /** |
| 70 * @return {!Array.<!SDK.ResourceTreeFrame>} | 70 * @return {!Array.<!SDK.ResourceTreeFrame>} |
| 71 */ | 71 */ |
| 72 static frames() { | 72 static frames() { |
| 73 var result = []; | 73 var result = []; |
| 74 for (var target of SDK.targetManager.targets(SDK.Target.Capability.DOM)) | 74 for (var target of SDK.targetManager.targets(SDK.Target.Capability.DOM)) |
| 75 result = result.concat(SDK.ResourceTreeModel.fromTarget(target)._frames.va
luesArray()); | 75 result = result.concat(SDK.ResourceTreeModel.fromTarget(target)._frames.va
luesArray()); |
| 76 return result; | 76 return result; |
| (...skipping 802 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 879 this._resourceTreeModel.dispatchEventToListeners(SDK.ResourceTreeModel.Event
s.InterstitialHidden); | 879 this._resourceTreeModel.dispatchEventToListeners(SDK.ResourceTreeModel.Event
s.InterstitialHidden); |
| 880 } | 880 } |
| 881 | 881 |
| 882 /** | 882 /** |
| 883 * @override | 883 * @override |
| 884 */ | 884 */ |
| 885 navigationRequested() { | 885 navigationRequested() { |
| 886 // Frontend is not interested in when navigations are requested. | 886 // Frontend is not interested in when navigations are requested. |
| 887 } | 887 } |
| 888 }; | 888 }; |
| OLD | NEW |