| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 474 return WebInspector.resourceTypes.Other; | 474 return WebInspector.resourceTypes.Other; |
| 475 }, | 475 }, |
| 476 | 476 |
| 477 populate: function() | 477 populate: function() |
| 478 { | 478 { |
| 479 this._fileSystem.requestFilesRecursive("", this._addFile.bind(this)); | 479 this._fileSystem.requestFilesRecursive("", this._addFile.bind(this)); |
| 480 }, | 480 }, |
| 481 | 481 |
| 482 /** | 482 /** |
| 483 * @param {string} path | 483 * @param {string} path |
| 484 * @param {function()=} callback |
| 484 */ | 485 */ |
| 485 refresh: function(path) | 486 refresh: function(path, callback) |
| 486 { | 487 { |
| 487 this._fileSystem.requestFilesRecursive(path, this._addFile.bind(this)); | 488 this._fileSystem.requestFilesRecursive(path, this._addFile.bind(this), c
allback); |
| 488 }, | 489 }, |
| 489 | 490 |
| 490 /** | 491 /** |
| 491 * @param {string} path | 492 * @param {string} path |
| 492 */ | 493 */ |
| 493 excludeFolder: function(path) | 494 excludeFolder: function(path) |
| 494 { | 495 { |
| 495 this._fileSystemWorkspaceBinding._isolatedFileSystemManager.mapping().ad
dExcludedFolder(this._fileSystem.path(), path); | 496 this._fileSystemWorkspaceBinding._isolatedFileSystemManager.mapping().ad
dExcludedFolder(this._fileSystem.path(), path); |
| 496 }, | 497 }, |
| 497 | 498 |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 579 dispose: function() | 580 dispose: function() |
| 580 { | 581 { |
| 581 this._workspace.removeProject(this._projectId); | 582 this._workspace.removeProject(this._projectId); |
| 582 } | 583 } |
| 583 } | 584 } |
| 584 | 585 |
| 585 /** | 586 /** |
| 586 * @type {!WebInspector.FileSystemWorkspaceBinding} | 587 * @type {!WebInspector.FileSystemWorkspaceBinding} |
| 587 */ | 588 */ |
| 588 WebInspector.fileSystemWorkspaceBinding; | 589 WebInspector.fileSystemWorkspaceBinding; |
| OLD | NEW |