| 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 508 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 519 { | 519 { |
| 520 var errorMessage = WebInspector.IsolatedFileSystem.errorMessage(erro
r); | 520 var errorMessage = WebInspector.IsolatedFileSystem.errorMessage(erro
r); |
| 521 console.error(errorMessage + " when requesting entry '" + path + "'"
); | 521 console.error(errorMessage + " when requesting entry '" + path + "'"
); |
| 522 callback([]); | 522 callback([]); |
| 523 } | 523 } |
| 524 }, | 524 }, |
| 525 | 525 |
| 526 _saveExcludedFolders: function() | 526 _saveExcludedFolders: function() |
| 527 { | 527 { |
| 528 var settingValue = this._excludedFoldersSetting.get(); | 528 var settingValue = this._excludedFoldersSetting.get(); |
| 529 settingValue[this._path] = Array.from(this._excludedFolders.values()); | 529 settingValue[this._path] = this._excludedFolders.valuesArray(); |
| 530 this._excludedFoldersSetting.set(settingValue); | 530 this._excludedFoldersSetting.set(settingValue); |
| 531 }, | 531 }, |
| 532 | 532 |
| 533 /** | 533 /** |
| 534 * @param {string} path | 534 * @param {string} path |
| 535 */ | 535 */ |
| 536 addExcludedFolder: function(path) | 536 addExcludedFolder: function(path) |
| 537 { | 537 { |
| 538 this._excludedFolders.add(path); | 538 this._excludedFolders.add(path); |
| 539 this._saveExcludedFolders(); | 539 this._saveExcludedFolders(); |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 610 /** | 610 /** |
| 611 * @param {!WebInspector.Progress} progress | 611 * @param {!WebInspector.Progress} progress |
| 612 */ | 612 */ |
| 613 indexContent: function(progress) | 613 indexContent: function(progress) |
| 614 { | 614 { |
| 615 progress.setTotalWork(1); | 615 progress.setTotalWork(1); |
| 616 var requestId = this._manager.registerProgress(progress); | 616 var requestId = this._manager.registerProgress(progress); |
| 617 InspectorFrontendHost.indexPath(requestId, this._embedderPath); | 617 InspectorFrontendHost.indexPath(requestId, this._embedderPath); |
| 618 } | 618 } |
| 619 } | 619 } |
| OLD | NEW |