| 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 531 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 542 { | 542 { |
| 543 return ""; | 543 return ""; |
| 544 }, | 544 }, |
| 545 | 545 |
| 546 /** | 546 /** |
| 547 * @override | 547 * @override |
| 548 * @return {!WebInspector.ResourceType} | 548 * @return {!WebInspector.ResourceType} |
| 549 */ | 549 */ |
| 550 contentType: function() | 550 contentType: function() |
| 551 { | 551 { |
| 552 return WebInspector.resourceTypes.Script; | 552 return WebInspector.resourceTypes.Snippet; |
| 553 }, | 553 }, |
| 554 | 554 |
| 555 /** | 555 /** |
| 556 * @override | 556 * @override |
| 557 * @return {!Promise<?string>} | 557 * @return {!Promise<?string>} |
| 558 */ | 558 */ |
| 559 requestContent: function() | 559 requestContent: function() |
| 560 { | 560 { |
| 561 return Promise.resolve(/** @type {?string} */(this._snippet.content)); | 561 return Promise.resolve(/** @type {?string} */(this._snippet.content)); |
| 562 }, | 562 }, |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 668 this._model.deleteScriptSnippet(url); | 668 this._model.deleteScriptSnippet(url); |
| 669 }, | 669 }, |
| 670 | 670 |
| 671 __proto__: WebInspector.ContentProviderBasedProject.prototype | 671 __proto__: WebInspector.ContentProviderBasedProject.prototype |
| 672 } | 672 } |
| 673 | 673 |
| 674 /** | 674 /** |
| 675 * @type {!WebInspector.ScriptSnippetModel} | 675 * @type {!WebInspector.ScriptSnippetModel} |
| 676 */ | 676 */ |
| 677 WebInspector.scriptSnippetModel = new WebInspector.ScriptSnippetModel(WebInspect
or.workspace); | 677 WebInspector.scriptSnippetModel = new WebInspector.ScriptSnippetModel(WebInspect
or.workspace); |
| OLD | NEW |