| 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 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 303 callback(result); | 303 callback(result); |
| 304 return; | 304 return; |
| 305 } | 305 } |
| 306 var index = result.indexOf(','); | 306 var index = result.indexOf(','); |
| 307 callback(result.substring(index + 1)); | 307 callback(result.substring(index + 1)); |
| 308 } | 308 } |
| 309 } | 309 } |
| 310 | 310 |
| 311 /** | 311 /** |
| 312 * @override | 312 * @override |
| 313 * @param {!Workspace.UISourceCode} uiSourceCode |
| 314 * @return {!Promise<?string>} |
| 315 */ |
| 316 requestOriginalFileContent(uiSourceCode) { |
| 317 return Promise.resolve(/** @type {?string} **/ (null)); |
| 318 } |
| 319 |
| 320 |
| 321 /** |
| 322 * @override |
| 313 * @return {boolean} | 323 * @return {boolean} |
| 314 */ | 324 */ |
| 315 canSetFileContent() { | 325 canSetFileContent() { |
| 316 return true; | 326 return true; |
| 317 } | 327 } |
| 318 | 328 |
| 319 /** | 329 /** |
| 320 * @override | 330 * @override |
| 321 * @param {!Workspace.UISourceCode} uiSourceCode | 331 * @param {!Workspace.UISourceCode} uiSourceCode |
| 322 * @param {string} newContent | 332 * @param {string} newContent |
| (...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 582 uiSourceCode[Persistence.FileSystemWorkspaceBinding._metadata] = null; | 592 uiSourceCode[Persistence.FileSystemWorkspaceBinding._metadata] = null; |
| 583 uiSourceCode.checkContentUpdated(); | 593 uiSourceCode.checkContentUpdated(); |
| 584 } | 594 } |
| 585 | 595 |
| 586 dispose() { | 596 dispose() { |
| 587 this.removeProject(); | 597 this.removeProject(); |
| 588 } | 598 } |
| 589 }; | 599 }; |
| 590 | 600 |
| 591 Persistence.FileSystemWorkspaceBinding._metadata = Symbol('FileSystemWorkspaceBi
nding.Metadata'); | 601 Persistence.FileSystemWorkspaceBinding._metadata = Symbol('FileSystemWorkspaceBi
nding.Metadata'); |
| OLD | NEW |