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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 if (resourceTreeModel) { | 80 if (resourceTreeModel) { |
81 this._eventListeners.push( | 81 this._eventListeners.push( |
82 resourceTreeModel.addEventListener(SDK.ResourceTreeModel.Events.Resour
ceAdded, this._resourceAdded, this), | 82 resourceTreeModel.addEventListener(SDK.ResourceTreeModel.Events.Resour
ceAdded, this._resourceAdded, this), |
83 resourceTreeModel.addEventListener( | 83 resourceTreeModel.addEventListener( |
84 SDK.ResourceTreeModel.Events.FrameWillNavigate, this._frameWillNav
igate, this), | 84 SDK.ResourceTreeModel.Events.FrameWillNavigate, this._frameWillNav
igate, this), |
85 resourceTreeModel.addEventListener( | 85 resourceTreeModel.addEventListener( |
86 SDK.ResourceTreeModel.Events.MainFrameNavigated, this._mainFrameNa
vigated, this), | 86 SDK.ResourceTreeModel.Events.MainFrameNavigated, this._mainFrameNa
vigated, this), |
87 resourceTreeModel.addEventListener(SDK.ResourceTreeModel.Events.FrameD
etached, this._frameDetached, this)); | 87 resourceTreeModel.addEventListener(SDK.ResourceTreeModel.Events.FrameD
etached, this._frameDetached, this)); |
88 } | 88 } |
89 | 89 |
90 var debuggerModel = SDK.DebuggerModel.fromTarget(target); | 90 var debuggerModel = target.model(SDK.DebuggerModel); |
91 if (debuggerModel) { | 91 if (debuggerModel) { |
92 this._eventListeners.push( | 92 this._eventListeners.push( |
93 debuggerModel.addEventListener(SDK.DebuggerModel.Events.ParsedScriptSo
urce, this._parsedScriptSource, this), | 93 debuggerModel.addEventListener(SDK.DebuggerModel.Events.ParsedScriptSo
urce, this._parsedScriptSource, this), |
94 debuggerModel.addEventListener( | 94 debuggerModel.addEventListener( |
95 SDK.DebuggerModel.Events.FailedToParseScriptSource, this._parsedSc
riptSource, this)); | 95 SDK.DebuggerModel.Events.FailedToParseScriptSource, this._parsedSc
riptSource, this)); |
96 } | 96 } |
97 var cssModel = target.model(SDK.CSSModel); | 97 var cssModel = target.model(SDK.CSSModel); |
98 if (cssModel) { | 98 if (cssModel) { |
99 this._eventListeners.push( | 99 this._eventListeners.push( |
100 cssModel.addEventListener(SDK.CSSModel.Events.StyleSheetAdded, this._s
tyleSheetAdded, this), | 100 cssModel.addEventListener(SDK.CSSModel.Events.StyleSheetAdded, this._s
tyleSheetAdded, this), |
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
428 return workspace.uiSourceCode(Bindings.NetworkProject.projectId(header.targe
t(), frame, false), url); | 428 return workspace.uiSourceCode(Bindings.NetworkProject.projectId(header.targe
t(), frame, false), url); |
429 } | 429 } |
430 }; | 430 }; |
431 | 431 |
432 Bindings.NetworkProject._networkProjectSymbol = Symbol('networkProject'); | 432 Bindings.NetworkProject._networkProjectSymbol = Symbol('networkProject'); |
433 Bindings.NetworkProject._resourceSymbol = Symbol('resource'); | 433 Bindings.NetworkProject._resourceSymbol = Symbol('resource'); |
434 Bindings.NetworkProject._scriptSymbol = Symbol('script'); | 434 Bindings.NetworkProject._scriptSymbol = Symbol('script'); |
435 Bindings.NetworkProject._styleSheetSymbol = Symbol('styleSheet'); | 435 Bindings.NetworkProject._styleSheetSymbol = Symbol('styleSheet'); |
436 Bindings.NetworkProject._targetSymbol = Symbol('target'); | 436 Bindings.NetworkProject._targetSymbol = Symbol('target'); |
437 Bindings.NetworkProject._frameSymbol = Symbol('frame'); | 437 Bindings.NetworkProject._frameSymbol = Symbol('frame'); |
OLD | NEW |