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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/workspace/Workspace.js

Issue 2695123004: DevTools: Only provide static script content to UISourceCode (Closed)
Patch Set: Return null original for snippets Created 3 years, 10 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 */ 97 */
98 requestMetadata(uiSourceCode) {}, 98 requestMetadata(uiSourceCode) {},
99 99
100 /** 100 /**
101 * @param {!Workspace.UISourceCode} uiSourceCode 101 * @param {!Workspace.UISourceCode} uiSourceCode
102 * @param {function(?string)} callback 102 * @param {function(?string)} callback
103 */ 103 */
104 requestFileContent(uiSourceCode, callback) {}, 104 requestFileContent(uiSourceCode, callback) {},
105 105
106 /** 106 /**
107 * @param {!Workspace.UISourceCode} uiSourceCode
108 * @return {!Promise<?string>}
109 */
110 requestOriginalFileContent(uiSourceCode) {},
111
112 /**
107 * @return {boolean} 113 * @return {boolean}
108 */ 114 */
109 canSetFileContent() {}, 115 canSetFileContent() {},
110 116
111 /** 117 /**
112 * @param {!Workspace.UISourceCode} uiSourceCode 118 * @param {!Workspace.UISourceCode} uiSourceCode
113 * @param {string} newContent 119 * @param {string} newContent
114 * @param {function(?string)} callback 120 * @param {function(?string)} callback
115 */ 121 */
116 setFileContent(uiSourceCode, newContent, callback) {}, 122 setFileContent(uiSourceCode, newContent, callback) {},
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
457 WorkingCopyCommitted: Symbol('WorkingCopyCommitted'), 463 WorkingCopyCommitted: Symbol('WorkingCopyCommitted'),
458 WorkingCopyCommittedByUser: Symbol('WorkingCopyCommittedByUser'), 464 WorkingCopyCommittedByUser: Symbol('WorkingCopyCommittedByUser'),
459 ProjectAdded: Symbol('ProjectAdded'), 465 ProjectAdded: Symbol('ProjectAdded'),
460 ProjectRemoved: Symbol('ProjectRemoved') 466 ProjectRemoved: Symbol('ProjectRemoved')
461 }; 467 };
462 468
463 /** 469 /**
464 * @type {!Workspace.Workspace} 470 * @type {!Workspace.Workspace}
465 */ 471 */
466 Workspace.workspace; 472 Workspace.workspace;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698