Bug 109433 - Web Inspector: WebInspector.Project refactorings.
Summary: Web Inspector: WebInspector.Project refactorings.
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Vsevolod Vlasov
Depends on:
Reported: 2013-02-11 07:15 PST by Vsevolod Vlasov
Modified: 2013-02-11 07:52 PST (History)
8 users (show)

See Also:

Patch (64.81 KB, patch)
2013-02-11 07:19 PST, Vsevolod Vlasov
apavlov: review+
apavlov: commit-queue-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Vsevolod Vlasov 2013-02-11 07:15:38 PST
This change prepares Workspace and Project to migration to project-per-domain mode for network based projects.
Renamed WebInspector.WorkspaceProvider to WebInspector.ProjectDelegate.
Renamed Project.name() to Project.id() and delegated it to project delegate.
Added Project.displayName() method that is delegated to project delegate..
SimpleWorkspaceProvider is now responsible for creation of SimpleWorkspaceDelegates and isolates various mappings from Project/ProjectDelegate concept.
UISourceCode is now created based on path in the project.
UISourceCode uri is now calculated based on project and path (right now uri is equal to path).
Comment 1 Vsevolod Vlasov 2013-02-11 07:19:21 PST
Created attachment 187568 [details]
Comment 2 Alexander Pavlov (apavlov) 2013-02-11 07:35:13 PST
Comment on attachment 187568 [details]

View in context: https://bugs.webkit.org/attachment.cgi?id=187568&action=review

> Source/WebCore/ChangeLog:11
> +        Added Project.displayName() method that is delegated to project delegate..

Duplicate trailing .

> Source/WebCore/inspector/front-end/UISourceCode.js:106
> +        return this._path; 

Trailing whitespace

> Source/WebCore/inspector/front-end/Workspace.js:166
> +    type: function() 

Trailing whitespace

> Source/WebCore/inspector/front-end/Workspace.js:223
> +        return this._uiSourceCodes[path];

return ... || null; for the @return type conformance.
Comment 3 Vsevolod Vlasov 2013-02-11 07:52:25 PST
Committed r142474: <http://trac.webkit.org/changeset/142474>