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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 delete this._pendingFileSystemRequests; | 121 delete this._pendingFileSystemRequests; |
122 }, | 122 }, |
123 | 123 |
124 /** | 124 /** |
125 * @param {string} errorMessage | 125 * @param {string} errorMessage |
126 * @param {!WebInspector.IsolatedFileSystemManager.FileSystem} fileSystem | 126 * @param {!WebInspector.IsolatedFileSystemManager.FileSystem} fileSystem |
127 */ | 127 */ |
128 _fileSystemAdded: function(errorMessage, fileSystem) | 128 _fileSystemAdded: function(errorMessage, fileSystem) |
129 { | 129 { |
130 var fileSystemPath; | 130 var fileSystemPath; |
131 if (errorMessage) | 131 if (errorMessage) { |
132 WebInspector.console.showErrorMessage(errorMessage) | 132 WebInspector.messageSink.addErrorMessage(errorMessage, true); |
133 else if (fileSystem) { | 133 } else { |
134 this._innerAddFileSystem(fileSystem); | 134 this._innerAddFileSystem(fileSystem); |
135 fileSystemPath = fileSystem.fileSystemPath; | 135 fileSystemPath = fileSystem.fileSystemPath; |
136 } | 136 } |
137 }, | 137 }, |
138 | 138 |
139 /** | 139 /** |
140 * @param {string} fileSystemPath | 140 * @param {string} fileSystemPath |
141 */ | 141 */ |
142 _fileSystemRemoved: function(fileSystemPath) | 142 _fileSystemRemoved: function(fileSystemPath) |
143 { | 143 { |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 fileSystemAdded: function(errorMessage, fileSystem) | 218 fileSystemAdded: function(errorMessage, fileSystem) |
219 { | 219 { |
220 this._IsolatedFileSystemManager._fileSystemAdded(errorMessage, fileSyste
m); | 220 this._IsolatedFileSystemManager._fileSystemAdded(errorMessage, fileSyste
m); |
221 } | 221 } |
222 } | 222 } |
223 | 223 |
224 /** | 224 /** |
225 * @type {!WebInspector.IsolatedFileSystemDispatcher} | 225 * @type {!WebInspector.IsolatedFileSystemDispatcher} |
226 */ | 226 */ |
227 WebInspector.isolatedFileSystemDispatcher; | 227 WebInspector.isolatedFileSystemDispatcher; |
OLD | NEW |