| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 | 44 |
| 45 WebInspector.NetworkUISourceCodeProvider.prototype = { | 45 WebInspector.NetworkUISourceCodeProvider.prototype = { |
| 46 /** | 46 /** |
| 47 * @param {!WebInspector.Target} target | 47 * @param {!WebInspector.Target} target |
| 48 */ | 48 */ |
| 49 targetAdded: function(target) | 49 targetAdded: function(target) |
| 50 { | 50 { |
| 51 target.resourceTreeModel.addEventListener(WebInspector.ResourceTreeModel
.EventTypes.ResourceAdded, this._resourceAdded, this); | 51 target.resourceTreeModel.addEventListener(WebInspector.ResourceTreeModel
.EventTypes.ResourceAdded, this._resourceAdded, this); |
| 52 target.resourceTreeModel.addEventListener(WebInspector.ResourceTreeModel
.EventTypes.MainFrameNavigated, this._mainFrameNavigated, this); | 52 target.resourceTreeModel.addEventListener(WebInspector.ResourceTreeModel
.EventTypes.MainFrameNavigated, this._mainFrameNavigated, this); |
| 53 target.debuggerModel.addEventListener(WebInspector.DebuggerModel.Events.
ParsedScriptSource, this._parsedScriptSource, this); | 53 target.debuggerModel.addEventListener(WebInspector.DebuggerModel.Events.
ParsedScriptSource, this._parsedScriptSource, this); |
| 54 target.debuggerModel.addEventListener(WebInspector.DebuggerModel.Events.
FailedToParseScriptSource, this._parsedScriptSource, this); |
| 54 target.cssModel.addEventListener(WebInspector.CSSStyleModel.Events.Style
SheetAdded, this._styleSheetAdded, this); | 55 target.cssModel.addEventListener(WebInspector.CSSStyleModel.Events.Style
SheetAdded, this._styleSheetAdded, this); |
| 55 }, | 56 }, |
| 56 | 57 |
| 57 /** | 58 /** |
| 58 * @param {!WebInspector.Target} target | 59 * @param {!WebInspector.Target} target |
| 59 */ | 60 */ |
| 60 targetRemoved: function(target) | 61 targetRemoved: function(target) |
| 61 { | 62 { |
| 62 // FIXME: add workspace cleanup here. | 63 // FIXME: add workspace cleanup here. |
| 63 target.resourceTreeModel.removeEventListener(WebInspector.ResourceTreeMo
del.EventTypes.ResourceAdded, this._resourceAdded, this); | 64 target.resourceTreeModel.removeEventListener(WebInspector.ResourceTreeMo
del.EventTypes.ResourceAdded, this._resourceAdded, this); |
| 64 target.resourceTreeModel.removeEventListener(WebInspector.ResourceTreeMo
del.EventTypes.MainFrameNavigated, this._mainFrameNavigated, this); | 65 target.resourceTreeModel.removeEventListener(WebInspector.ResourceTreeMo
del.EventTypes.MainFrameNavigated, this._mainFrameNavigated, this); |
| 65 target.debuggerModel.removeEventListener(WebInspector.DebuggerModel.Even
ts.ParsedScriptSource, this._parsedScriptSource, this); | 66 target.debuggerModel.removeEventListener(WebInspector.DebuggerModel.Even
ts.ParsedScriptSource, this._parsedScriptSource, this); |
| 67 target.debuggerModel.removeEventListener(WebInspector.DebuggerModel.Even
ts.FailedToParseScriptSource, this._parsedScriptSource, this); |
| 66 target.cssModel.removeEventListener(WebInspector.CSSStyleModel.Events.St
yleSheetAdded, this._styleSheetAdded, this); | 68 target.cssModel.removeEventListener(WebInspector.CSSStyleModel.Events.St
yleSheetAdded, this._styleSheetAdded, this); |
| 67 }, | 69 }, |
| 68 | 70 |
| 69 /** | 71 /** |
| 70 * @param {!WebInspector.Target} target | 72 * @param {!WebInspector.Target} target |
| 71 */ | 73 */ |
| 72 _populate: function(target) | 74 _populate: function(target) |
| 73 { | 75 { |
| 74 /** | 76 /** |
| 75 * @param {!WebInspector.ResourceTreeFrame} frame | 77 * @param {!WebInspector.ResourceTreeFrame} frame |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 } | 268 } |
| 267 | 269 |
| 268 this._resource.searchInContent(query, caseSensitive, isRegex, callback); | 270 this._resource.searchInContent(query, caseSensitive, isRegex, callback); |
| 269 } | 271 } |
| 270 } | 272 } |
| 271 | 273 |
| 272 /** | 274 /** |
| 273 * @type {!WebInspector.NetworkWorkspaceBinding} | 275 * @type {!WebInspector.NetworkWorkspaceBinding} |
| 274 */ | 276 */ |
| 275 WebInspector.networkWorkspaceBinding; | 277 WebInspector.networkWorkspaceBinding; |
| OLD | NEW |