Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(69)

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/snippets/ScriptSnippetModel.js

Issue 1564113003: DevTools: merge uisourcecode's url-alike members. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698