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

Side by Side Diff: Source/devtools/front_end/sdk/IsolatedFileSystemManager.js

Issue 396993003: DevTools: get rid of WebInspector.cssModel, use target models instead (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 128
129 /** 129 /**
130 * @param {!WebInspector.Event} event 130 * @param {!WebInspector.Event} event
131 */ 131 */
132 _onFileSystemAdded: function(event) 132 _onFileSystemAdded: function(event)
133 { 133 {
134 var errorMessage = /** @type {string} */ (event.data["errorMessage"]); 134 var errorMessage = /** @type {string} */ (event.data["errorMessage"]);
135 var fileSystem = /** @type {!WebInspector.IsolatedFileSystemManager.File System} */ (event.data["fileSystem"]); 135 var fileSystem = /** @type {!WebInspector.IsolatedFileSystemManager.File System} */ (event.data["fileSystem"]);
136 var fileSystemPath; 136 var fileSystemPath;
137 if (errorMessage) { 137 if (errorMessage) {
138 WebInspector.console.addErrorMessage(errorMessage, true); 138 WebInspector.console.error(errorMessage, true);
139 } else { 139 } else {
140 this._innerAddFileSystem(fileSystem); 140 this._innerAddFileSystem(fileSystem);
141 fileSystemPath = fileSystem.fileSystemPath; 141 fileSystemPath = fileSystem.fileSystemPath;
142 } 142 }
143 }, 143 },
144 144
145 /** 145 /**
146 * @param {!WebInspector.Event} event 146 * @param {!WebInspector.Event} event
147 */ 147 */
148 _onFileSystemRemoved: function(event) 148 _onFileSystemRemoved: function(event)
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 callback(this._isolatedFileSystem(fileSystemPath)); 191 callback(this._isolatedFileSystem(fileSystemPath));
192 }, 192 },
193 193
194 __proto__: WebInspector.Object.prototype 194 __proto__: WebInspector.Object.prototype
195 } 195 }
196 196
197 /** 197 /**
198 * @type {!WebInspector.IsolatedFileSystemManager} 198 * @type {!WebInspector.IsolatedFileSystemManager}
199 */ 199 */
200 WebInspector.isolatedFileSystemManager; 200 WebInspector.isolatedFileSystemManager;
OLDNEW
« no previous file with comments | « Source/devtools/front_end/sdk/ConsoleModel.js ('k') | Source/devtools/front_end/sdk/LiveEditSupport.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698