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

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

Issue 1523193002: DevTools: merge UISourceCode's parentPath, name, originURL and uri. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebaselined Created 5 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/workspace/UISourceCode.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/workspace/Workspace.js
diff --git a/third_party/WebKit/Source/devtools/front_end/workspace/Workspace.js b/third_party/WebKit/Source/devtools/front_end/workspace/Workspace.js
index 6b3ef8b1e1dd7bdf023b1c99debf2a45013e3288..a5f0c67000bc85d08d2f6e4d05460c27c9e740b2 100644
--- a/third_party/WebKit/Source/devtools/front_end/workspace/Workspace.js
+++ b/third_party/WebKit/Source/devtools/front_end/workspace/Workspace.js
@@ -97,11 +97,6 @@ WebInspector.Project.prototype = {
displayName: function() { },
/**
- * @return {string}
- */
- url: function() { },
-
- /**
* @param {!WebInspector.UISourceCode} uiSourceCode
* @param {function(?string)} callback
*/
@@ -215,15 +210,13 @@ WebInspector.projectTypes = {
* @param {!WebInspector.Workspace} workspace
* @param {string} id
* @param {!WebInspector.projectTypes} type
- * @param {string} url
* @param {string} displayName
*/
-WebInspector.ProjectStore = function(workspace, id, type, url, displayName)
+WebInspector.ProjectStore = function(workspace, id, type, displayName)
{
this._workspace = workspace;
this._id = id;
this._type = type;
- this._url = url;
this._displayName = displayName;
/** @type {!Map.<string, !{uiSourceCode: !WebInspector.UISourceCode, index: number}>} */
@@ -254,14 +247,6 @@ WebInspector.ProjectStore.prototype = {
/**
* @return {string}
*/
- url: function()
- {
- return this._url;
- },
-
- /**
- * @return {string}
- */
displayName: function()
{
return this._displayName;
@@ -276,15 +261,13 @@ WebInspector.ProjectStore.prototype = {
},
/**
- * @param {string} parentPath
- * @param {string} name
- * @param {string} originURL
+ * @param {string} url
* @param {!WebInspector.ResourceType} contentType
* @return {!WebInspector.UISourceCode}
*/
- createUISourceCode: function(parentPath, name, originURL, contentType)
+ createUISourceCode: function(url, contentType)
{
- return new WebInspector.UISourceCode(this._project, parentPath, name, originURL, contentType);
+ return new WebInspector.UISourceCode(this._project, url, contentType);
},
/**
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/workspace/UISourceCode.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698