| 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 * @return {string} | 90 * @return {string} |
| 91 */ | 91 */ |
| 92 type: function() { }, | 92 type: function() { }, |
| 93 | 93 |
| 94 /** | 94 /** |
| 95 * @return {string} | 95 * @return {string} |
| 96 */ | 96 */ |
| 97 displayName: function() { }, | 97 displayName: function() { }, |
| 98 | 98 |
| 99 /** | 99 /** |
| 100 * @return {string} | |
| 101 */ | |
| 102 url: function() { }, | |
| 103 | |
| 104 /** | |
| 105 * @param {!WebInspector.UISourceCode} uiSourceCode | 100 * @param {!WebInspector.UISourceCode} uiSourceCode |
| 106 * @param {function(?string)} callback | 101 * @param {function(?string)} callback |
| 107 */ | 102 */ |
| 108 requestFileContent: function(uiSourceCode, callback) { }, | 103 requestFileContent: function(uiSourceCode, callback) { }, |
| 109 | 104 |
| 110 /** | 105 /** |
| 111 * @return {boolean} | 106 * @return {boolean} |
| 112 */ | 107 */ |
| 113 canSetFileContent: function() { }, | 108 canSetFileContent: function() { }, |
| 114 | 109 |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 FileSystem: "filesystem", | 203 FileSystem: "filesystem", |
| 209 ContentScripts: "contentscripts", | 204 ContentScripts: "contentscripts", |
| 210 Service: "service" | 205 Service: "service" |
| 211 } | 206 } |
| 212 | 207 |
| 213 /** | 208 /** |
| 214 * @constructor | 209 * @constructor |
| 215 * @param {!WebInspector.Workspace} workspace | 210 * @param {!WebInspector.Workspace} workspace |
| 216 * @param {string} id | 211 * @param {string} id |
| 217 * @param {!WebInspector.projectTypes} type | 212 * @param {!WebInspector.projectTypes} type |
| 218 * @param {string} url | |
| 219 * @param {string} displayName | 213 * @param {string} displayName |
| 220 */ | 214 */ |
| 221 WebInspector.ProjectStore = function(workspace, id, type, url, displayName) | 215 WebInspector.ProjectStore = function(workspace, id, type, displayName) |
| 222 { | 216 { |
| 223 this._workspace = workspace; | 217 this._workspace = workspace; |
| 224 this._id = id; | 218 this._id = id; |
| 225 this._type = type; | 219 this._type = type; |
| 226 this._url = url; | |
| 227 this._displayName = displayName; | 220 this._displayName = displayName; |
| 228 | 221 |
| 229 /** @type {!Map.<string, !{uiSourceCode: !WebInspector.UISourceCode, index:
number}>} */ | 222 /** @type {!Map.<string, !{uiSourceCode: !WebInspector.UISourceCode, index:
number}>} */ |
| 230 this._uiSourceCodesMap = new Map(); | 223 this._uiSourceCodesMap = new Map(); |
| 231 /** @type {!Array.<!WebInspector.UISourceCode>} */ | 224 /** @type {!Array.<!WebInspector.UISourceCode>} */ |
| 232 this._uiSourceCodesList = []; | 225 this._uiSourceCodesList = []; |
| 233 | 226 |
| 234 this._project = /** @type {!WebInspector.Project} */(this); | 227 this._project = /** @type {!WebInspector.Project} */(this); |
| 235 } | 228 } |
| 236 | 229 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 247 * @return {string} | 240 * @return {string} |
| 248 */ | 241 */ |
| 249 type: function() | 242 type: function() |
| 250 { | 243 { |
| 251 return this._type; | 244 return this._type; |
| 252 }, | 245 }, |
| 253 | 246 |
| 254 /** | 247 /** |
| 255 * @return {string} | 248 * @return {string} |
| 256 */ | 249 */ |
| 257 url: function() | |
| 258 { | |
| 259 return this._url; | |
| 260 }, | |
| 261 | |
| 262 /** | |
| 263 * @return {string} | |
| 264 */ | |
| 265 displayName: function() | 250 displayName: function() |
| 266 { | 251 { |
| 267 return this._displayName; | 252 return this._displayName; |
| 268 }, | 253 }, |
| 269 | 254 |
| 270 /** | 255 /** |
| 271 * @return {!WebInspector.Workspace} | 256 * @return {!WebInspector.Workspace} |
| 272 */ | 257 */ |
| 273 workspace: function() | 258 workspace: function() |
| 274 { | 259 { |
| 275 return this._workspace; | 260 return this._workspace; |
| 276 }, | 261 }, |
| 277 | 262 |
| 278 /** | 263 /** |
| 279 * @param {string} parentPath | 264 * @param {string} url |
| 280 * @param {string} name | |
| 281 * @param {string} originURL | |
| 282 * @param {!WebInspector.ResourceType} contentType | 265 * @param {!WebInspector.ResourceType} contentType |
| 283 * @return {!WebInspector.UISourceCode} | 266 * @return {!WebInspector.UISourceCode} |
| 284 */ | 267 */ |
| 285 createUISourceCode: function(parentPath, name, originURL, contentType) | 268 createUISourceCode: function(url, contentType) |
| 286 { | 269 { |
| 287 return new WebInspector.UISourceCode(this._project, parentPath, name, or
iginURL, contentType); | 270 return new WebInspector.UISourceCode(this._project, url, contentType); |
| 288 }, | 271 }, |
| 289 | 272 |
| 290 /** | 273 /** |
| 291 * @param {!WebInspector.UISourceCode} uiSourceCode | 274 * @param {!WebInspector.UISourceCode} uiSourceCode |
| 292 * @param {boolean=} replace | 275 * @param {boolean=} replace |
| 293 * @return {boolean} | 276 * @return {boolean} |
| 294 */ | 277 */ |
| 295 addUISourceCode: function(uiSourceCode, replace) | 278 addUISourceCode: function(uiSourceCode, replace) |
| 296 { | 279 { |
| 297 var path = uiSourceCode.path(); | 280 var path = uiSourceCode.path(); |
| (...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 553 return this._hasResourceContentTrackingExtensions; | 536 return this._hasResourceContentTrackingExtensions; |
| 554 }, | 537 }, |
| 555 | 538 |
| 556 __proto__: WebInspector.Object.prototype | 539 __proto__: WebInspector.Object.prototype |
| 557 } | 540 } |
| 558 | 541 |
| 559 /** | 542 /** |
| 560 * @type {!WebInspector.Workspace} | 543 * @type {!WebInspector.Workspace} |
| 561 */ | 544 */ |
| 562 WebInspector.workspace; | 545 WebInspector.workspace; |
| OLD | NEW |