| 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 604 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 615 }, | 615 }, |
| 616 | 616 |
| 617 /** | 617 /** |
| 618 * @override | 618 * @override |
| 619 * @param {!WebInspector.UISourceCode} uiSourceCode | 619 * @param {!WebInspector.UISourceCode} uiSourceCode |
| 620 * @param {string} newContent | 620 * @param {string} newContent |
| 621 * @param {function(?string)} callback | 621 * @param {function(?string)} callback |
| 622 */ | 622 */ |
| 623 setFileContent: function(uiSourceCode, newContent, callback) | 623 setFileContent: function(uiSourceCode, newContent, callback) |
| 624 { | 624 { |
| 625 this._model._setScriptSnippetContent(uiSourceCode.path(), newContent); | 625 this._model._setScriptSnippetContent(uiSourceCode.url(), newContent); |
| 626 callback(""); | 626 callback(""); |
| 627 }, | 627 }, |
| 628 | 628 |
| 629 /** | 629 /** |
| 630 * @override | 630 * @override |
| 631 * @return {boolean} | 631 * @return {boolean} |
| 632 */ | 632 */ |
| 633 canRename: function() | 633 canRename: function() |
| 634 { | 634 { |
| 635 return true; | 635 return true; |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 667 this._model.deleteScriptSnippet(path); | 667 this._model.deleteScriptSnippet(path); |
| 668 }, | 668 }, |
| 669 | 669 |
| 670 __proto__: WebInspector.ContentProviderBasedProject.prototype | 670 __proto__: WebInspector.ContentProviderBasedProject.prototype |
| 671 } | 671 } |
| 672 | 672 |
| 673 /** | 673 /** |
| 674 * @type {!WebInspector.ScriptSnippetModel} | 674 * @type {!WebInspector.ScriptSnippetModel} |
| 675 */ | 675 */ |
| 676 WebInspector.scriptSnippetModel = new WebInspector.ScriptSnippetModel(WebInspect
or.workspace); | 676 WebInspector.scriptSnippetModel = new WebInspector.ScriptSnippetModel(WebInspect
or.workspace); |
| OLD | NEW |