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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/bindings/ContentProviderBasedProject.js

Issue 2417083002: DevTools: introduce WI.UISourceCode.requestMetadata() (Closed)
Patch Set: normalize test + address nit Created 4 years, 2 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) 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 * @param {function(?string)} callback 52 * @param {function(?string)} callback
53 */ 53 */
54 requestFileContent: function(uiSourceCode, callback) 54 requestFileContent: function(uiSourceCode, callback)
55 { 55 {
56 var contentProvider = this._contentProviders[uiSourceCode.url()]; 56 var contentProvider = this._contentProviders[uiSourceCode.url()];
57 contentProvider.requestContent().then(callback); 57 contentProvider.requestContent().then(callback);
58 }, 58 },
59 59
60 /** 60 /**
61 * @override 61 * @override
62 * @param {!WebInspector.UISourceCode} uiSourceCode
63 * @return {!Promise<?WebInspector.UISourceCodeMetadata>}
64 */
65 requestMetadata: function(uiSourceCode)
66 {
67 return Promise.resolve(/** @type {?WebInspector.UISourceCodeMetadata} */ (null));
68 },
69
70 /**
71 * @override
62 * @return {boolean} 72 * @return {boolean}
63 */ 73 */
64 canSetFileContent: function() 74 canSetFileContent: function()
65 { 75 {
66 return false; 76 return false;
67 }, 77 },
68 78
69 /** 79 /**
70 * @override 80 * @override
71 * @param {!WebInspector.UISourceCode} uiSourceCode 81 * @param {!WebInspector.UISourceCode} uiSourceCode
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 }, 311 },
302 312
303 dispose: function() 313 dispose: function()
304 { 314 {
305 this._contentProviders = {}; 315 this._contentProviders = {};
306 this.removeProject(); 316 this.removeProject();
307 }, 317 },
308 318
309 __proto__: WebInspector.ProjectStore.prototype 319 __proto__: WebInspector.ProjectStore.prototype
310 } 320 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698