| 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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 return project; | 182 return project; |
| 183 } | 183 } |
| 184 | 184 |
| 185 /** | 185 /** |
| 186 * @param {!Common.ContentProvider} contentProvider | 186 * @param {!Common.ContentProvider} contentProvider |
| 187 * @param {?SDK.ResourceTreeFrame} frame | 187 * @param {?SDK.ResourceTreeFrame} frame |
| 188 * @param {boolean} isContentScript | 188 * @param {boolean} isContentScript |
| 189 * @param {?number} contentSize | 189 * @param {?number} contentSize |
| 190 * @return {!Workspace.UISourceCode} | 190 * @return {!Workspace.UISourceCode} |
| 191 */ | 191 */ |
| 192 addFile(contentProvider, frame, isContentScript, contentSize) { | 192 addSourceMapFile(contentProvider, frame, isContentScript, contentSize) { |
| 193 var uiSourceCode = this._createFile(contentProvider, frame, isContentScript
|| false); | 193 var uiSourceCode = this._createFile(contentProvider, frame, isContentScript
|| false); |
| 194 var metadata = typeof contentSize === 'number' ? new Workspace.UISourceCodeM
etadata(null, contentSize) : null; | 194 var metadata = typeof contentSize === 'number' ? new Workspace.UISourceCodeM
etadata(null, contentSize) : null; |
| 195 this._addUISourceCodeWithProvider(uiSourceCode, contentProvider, metadata); | 195 this._addUISourceCodeWithProvider(uiSourceCode, contentProvider, metadata); |
| 196 return uiSourceCode; | 196 return uiSourceCode; |
| 197 } | 197 } |
| 198 | 198 |
| 199 /** | 199 /** |
| 200 * @param {?SDK.ResourceTreeFrame} frame | 200 * @param {?SDK.ResourceTreeFrame} frame |
| 201 * @param {string} url | 201 * @param {string} url |
| 202 */ | 202 */ |
| (...skipping 225 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 |