| 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 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 288 url: function() | 288 url: function() |
| 289 { | 289 { |
| 290 return this._url; | 290 return this._url; |
| 291 }, | 291 }, |
| 292 | 292 |
| 293 /** | 293 /** |
| 294 * @return {boolean} | 294 * @return {boolean} |
| 295 */ | 295 */ |
| 296 isServiceProject: function() | 296 isServiceProject: function() |
| 297 { | 297 { |
| 298 return this._projectDelegate.type() === WebInspector.projectTypes.Debugg
er || this._projectDelegate.type() === WebInspector.projectTypes.Formatter || th
is._projectDelegate.type() === WebInspector.projectTypes.LiveEdit; | 298 return this._projectDelegate.type() === WebInspector.projectTypes.Debugg
er || this._projectDelegate.type() === WebInspector.projectTypes.Formatter || th
is._projectDelegate.type() === WebInspector.projectTypes.LiveEdit || |
| 299 this._projectDelegate.type() === WebInspector.projectTypes.Service; |
| 299 }, | 300 }, |
| 300 | 301 |
| 301 /** | 302 /** |
| 302 * @param {!WebInspector.FileDescriptor} fileDescriptor | 303 * @param {!WebInspector.FileDescriptor} fileDescriptor |
| 303 */ | 304 */ |
| 304 _addFile: function(fileDescriptor) | 305 _addFile: function(fileDescriptor) |
| 305 { | 306 { |
| 306 var path = fileDescriptor.parentPath ? fileDescriptor.parentPath + "/" +
fileDescriptor.name : fileDescriptor.name; | 307 var path = fileDescriptor.parentPath ? fileDescriptor.parentPath + "/" +
fileDescriptor.name : fileDescriptor.name; |
| 307 var uiSourceCode = this.uiSourceCode(path); | 308 var uiSourceCode = this.uiSourceCode(path); |
| 308 if (uiSourceCode) | 309 if (uiSourceCode) |
| (...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 560 /** | 561 /** |
| 561 * @enum {string} | 562 * @enum {string} |
| 562 */ | 563 */ |
| 563 WebInspector.projectTypes = { | 564 WebInspector.projectTypes = { |
| 564 Debugger: "debugger", | 565 Debugger: "debugger", |
| 565 Formatter: "formatter", | 566 Formatter: "formatter", |
| 566 LiveEdit: "liveedit", | 567 LiveEdit: "liveedit", |
| 567 Network: "network", | 568 Network: "network", |
| 568 Snippets: "snippets", | 569 Snippets: "snippets", |
| 569 FileSystem: "filesystem", | 570 FileSystem: "filesystem", |
| 570 ContentScripts: "contentscripts" | 571 ContentScripts: "contentscripts", |
| 572 Service: "service" |
| 571 } | 573 } |
| 572 | 574 |
| 573 /** | 575 /** |
| 574 * @constructor | 576 * @constructor |
| 575 * @extends {WebInspector.Object} | 577 * @extends {WebInspector.Object} |
| 576 * @param {!WebInspector.FileSystemMapping} fileSystemMapping | 578 * @param {!WebInspector.FileSystemMapping} fileSystemMapping |
| 577 */ | 579 */ |
| 578 WebInspector.Workspace = function(fileSystemMapping) | 580 WebInspector.Workspace = function(fileSystemMapping) |
| 579 { | 581 { |
| 580 this._fileSystemMapping = fileSystemMapping; | 582 this._fileSystemMapping = fileSystemMapping; |
| (...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 843 this.addEventListener(WebInspector.Workspace.Events.UISourceCodeAdded, l
istener, this); | 845 this.addEventListener(WebInspector.Workspace.Events.UISourceCodeAdded, l
istener, this); |
| 844 }, | 846 }, |
| 845 | 847 |
| 846 __proto__: WebInspector.Object.prototype | 848 __proto__: WebInspector.Object.prototype |
| 847 } | 849 } |
| 848 | 850 |
| 849 /** | 851 /** |
| 850 * @type {!WebInspector.Workspace} | 852 * @type {!WebInspector.Workspace} |
| 851 */ | 853 */ |
| 852 WebInspector.workspace; | 854 WebInspector.workspace; |
| OLD | NEW |