| 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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 { | 149 { |
| 150 var entry = /** @type {!WebInspector.FileSystemMapping.Entry} */ (event.
data); | 150 var entry = /** @type {!WebInspector.FileSystemMapping.Entry} */ (event.
data); |
| 151 if (this._fileSystemPath !== entry.fileSystemPath) | 151 if (this._fileSystemPath !== entry.fileSystemPath) |
| 152 return; | 152 return; |
| 153 delete this._entries[entry.urlPrefix]; | 153 delete this._entries[entry.urlPrefix]; |
| 154 if (this._fileMappingsList.itemForId(entry.urlPrefix)) | 154 if (this._fileMappingsList.itemForId(entry.urlPrefix)) |
| 155 this._fileMappingsList.removeItem(entry.urlPrefix); | 155 this._fileMappingsList.removeItem(entry.urlPrefix); |
| 156 this._resize(); | 156 this._resize(); |
| 157 }, | 157 }, |
| 158 | 158 |
| 159 /** |
| 160 * @param {string} itemId |
| 161 * @param {string} columnId |
| 162 * @return {string} |
| 163 */ |
| 159 _fileMappingValuesProvider: function(itemId, columnId) | 164 _fileMappingValuesProvider: function(itemId, columnId) |
| 160 { | 165 { |
| 161 if (!itemId) | 166 if (!itemId) |
| 162 return ""; | 167 return ""; |
| 163 var entry = this._entries[itemId]; | 168 var entry = this._entries[itemId]; |
| 164 switch (columnId) { | 169 switch (columnId) { |
| 165 case "url": | 170 case "url": |
| 166 return entry.urlPrefix; | 171 return entry.urlPrefix; |
| 167 case "path": | 172 case "path": |
| 168 return entry.pathPrefix; | 173 return entry.pathPrefix; |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 { | 278 { |
| 274 var entry = /** @type {!WebInspector.FileSystemMapping.ExcludedFolderEnt
ry} */ (event.data); | 279 var entry = /** @type {!WebInspector.FileSystemMapping.ExcludedFolderEnt
ry} */ (event.data); |
| 275 var fileSystemPath = entry.fileSystemPath; | 280 var fileSystemPath = entry.fileSystemPath; |
| 276 if (!fileSystemPath || this._fileSystemPath !== fileSystemPath) | 281 if (!fileSystemPath || this._fileSystemPath !== fileSystemPath) |
| 277 return; | 282 return; |
| 278 delete this._excludedFolderEntries[entry.path]; | 283 delete this._excludedFolderEntries[entry.path]; |
| 279 if (this._excludedFolderList.itemForId(entry.path)) | 284 if (this._excludedFolderList.itemForId(entry.path)) |
| 280 this._excludedFolderList.removeItem(entry.path); | 285 this._excludedFolderList.removeItem(entry.path); |
| 281 }, | 286 }, |
| 282 | 287 |
| 288 /** |
| 289 * @param {string} itemId |
| 290 * @param {string} columnId |
| 291 * @return {string} |
| 292 */ |
| 283 _excludedFolderValueProvider: function(itemId, columnId) | 293 _excludedFolderValueProvider: function(itemId, columnId) |
| 284 { | 294 { |
| 285 return itemId; | 295 return itemId; |
| 286 }, | 296 }, |
| 287 | 297 |
| 288 /** | 298 /** |
| 289 * @param {?string} itemId | 299 * @param {?string} itemId |
| 290 * @param {!Object} data | 300 * @param {!Object} data |
| 291 */ | 301 */ |
| 292 _excludedFolderValidate: function(itemId, data) | 302 _excludedFolderValidate: function(itemId, data) |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 386 { | 396 { |
| 387 WebInspector.Dialog.hide(); | 397 WebInspector.Dialog.hide(); |
| 388 }, | 398 }, |
| 389 | 399 |
| 390 onEnter: function() | 400 onEnter: function() |
| 391 { | 401 { |
| 392 }, | 402 }, |
| 393 | 403 |
| 394 __proto__: WebInspector.DialogDelegate.prototype | 404 __proto__: WebInspector.DialogDelegate.prototype |
| 395 } | 405 } |
| OLD | NEW |