Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(120)

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/workspace/IsolatedFileSystemManager.js

Issue 2303663003: DevTools: fix hosted mode (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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;
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698