| 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 } | 85 } |
| 86 | 86 |
| 87 WebInspector.IsolatedFileSystemManager.prototype = { | 87 WebInspector.IsolatedFileSystemManager.prototype = { |
| 88 /** | 88 /** |
| 89 * @return {!Promise<!Array<!WebInspector.IsolatedFileSystem>>} | 89 * @return {!Promise<!Array<!WebInspector.IsolatedFileSystem>>} |
| 90 */ | 90 */ |
| 91 _requestFileSystems: function() | 91 _requestFileSystems: function() |
| 92 { | 92 { |
| 93 var fulfill; | 93 var fulfill; |
| 94 var promise = new Promise(f => fulfill = f); | 94 var promise = new Promise(f => fulfill = f); |
| 95 InspectorFrontendHost.events.addEventListener(InspectorFrontendHostAPI.E
vents.FileSystemsLoaded, onFileSystemsLoaded, this); |
| 95 InspectorFrontendHost.requestFileSystems(); | 96 InspectorFrontendHost.requestFileSystems(); |
| 96 InspectorFrontendHost.events.addEventListener(InspectorFrontendHostAPI.E
vents.FileSystemsLoaded, onFileSystemsLoaded, this); | |
| 97 return promise; | 97 return promise; |
| 98 | 98 |
| 99 /** | 99 /** |
| 100 * @param {!WebInspector.Event} event | 100 * @param {!WebInspector.Event} event |
| 101 * @this {WebInspector.IsolatedFileSystemManager} | 101 * @this {WebInspector.IsolatedFileSystemManager} |
| 102 */ | 102 */ |
| 103 function onFileSystemsLoaded(event) | 103 function onFileSystemsLoaded(event) |
| 104 { | 104 { |
| 105 var fileSystems = /** @type {!Array.<!WebInspector.IsolatedFileSyste
mManager.FileSystem>} */ (event.data); | 105 var fileSystems = /** @type {!Array.<!WebInspector.IsolatedFileSyste
mManager.FileSystem>} */ (event.data); |
| 106 var promises = []; | 106 var promises = []; |
| (...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 353 this._callbacks.delete(requestId); | 353 this._callbacks.delete(requestId); |
| 354 }, | 354 }, |
| 355 | 355 |
| 356 __proto__: WebInspector.Object.prototype | 356 __proto__: WebInspector.Object.prototype |
| 357 } | 357 } |
| 358 | 358 |
| 359 /** | 359 /** |
| 360 * @type {!WebInspector.IsolatedFileSystemManager} | 360 * @type {!WebInspector.IsolatedFileSystemManager} |
| 361 */ | 361 */ |
| 362 WebInspector.isolatedFileSystemManager; | 362 WebInspector.isolatedFileSystemManager; |
| OLD | NEW |