Web Inspector: Add early version of file system mappings editor to settings.
authorvsevik@chromium.org <vsevik@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 18 Jan 2013 12:27:38 +0000 (12:27 +0000)
committervsevik@chromium.org <vsevik@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 18 Jan 2013 12:27:38 +0000 (12:27 +0000)
commit061f16658f2b295ad2bb158b5a299995c0744fdc
tree4d646ea3e69fa13cff401e9b678d456914a536bd
parent6da0e35a7015b59f36ab5418b4049eb5c015ef50
Web Inspector: Add early version of file system mappings editor to settings.
https://bugs.webkit.org/show_bug.cgi?id=107136

Reviewed by Pavel Feldman.

Source/WebCore:

FileMapping simplified to use only one type of entries.
Added start/stopBatchUpdates to FileSystemWorkspaceProvider for better TabbedPane performance.
Added fileSystemProject experiment for file system support and (early and ugly) file system mappings editor behind this experiment.

* English.lproj/localizedStrings.js:
* WebCore.gypi:
* inspector/front-end/FileMapping.js:
(WebInspector.FileMapping):
(WebInspector.FileMapping.prototype._entryMatchesURL):
(WebInspector.FileMapping.prototype._entryURIPrefix):
(WebInspector.FileMapping.prototype.hasMappingForURL):
(WebInspector.FileMapping.prototype._innerURIForURL):
(WebInspector.FileMapping.prototype.uriForURL):
(WebInspector.FileMapping.prototype.urlForURI):
(WebInspector.FileMapping.prototype.mappingEntries):
(WebInspector.FileMapping.prototype.setMappingEntries):
(WebInspector.FileMapping.prototype.set _loadFromSettings.get this):
(WebInspector.FileMapping.prototype.set _loadFromSettings):
(WebInspector.FileMapping.Entry):
* inspector/front-end/FileSystemWorkspaceProvider.js:
(WebInspector.FileSystemWorkspaceProvider.prototype._fileSystemRemoved):
* inspector/front-end/IsolatedFileSystemModel.js:
(WebInspector.IsolatedFileSystemModel.prototype._fileSystemAdded):
* inspector/front-end/Settings.js:
(WebInspector.ExperimentsSettings):
* inspector/front-end/SettingsScreen.js:
(WebInspector.WorkspaceSettingsTab):
(WebInspector.WorkspaceSettingsTab.prototype._createFileSystemsEditor):
(WebInspector.WorkspaceSettingsTab.prototype._createShowTextInput):
(WebInspector.WorkspaceSettingsTab.prototype._createEditTextInput):
(WebInspector.WorkspaceSettingsTab.prototype._createRemoveButton):
(WebInspector.WorkspaceSettingsTab.prototype._createAddButton):
(WebInspector.WorkspaceSettingsTab.prototype._addFileSystemRow.removeFileSystemClicked):
(WebInspector.WorkspaceSettingsTab.prototype._addFileSystemRow.fileSystemRemoved):
(WebInspector.WorkspaceSettingsTab.prototype._addFileSystemRow):
(WebInspector.WorkspaceSettingsTab.prototype._addFileSystemClicked):
(WebInspector.WorkspaceSettingsTab.prototype._fileSystemAdded):
(WebInspector.WorkspaceSettingsTab.prototype._createFileMappingEditor):
(WebInspector.WorkspaceSettingsTab.prototype._addMappingRow.removeMappingClicked):
(WebInspector.WorkspaceSettingsTab.prototype._addMappingRow):
(WebInspector.WorkspaceSettingsTab.prototype._addFileMappingClicked):
* inspector/front-end/helpScreen.css:
(.settings-tab .file-systems-editor input.file-system-path):
(.settings-tab .file-mappings-editor .workspace-settings-row input):
(.settings-tab .file-mappings-editor .workspace-settings-row input.file-mapping-url):
(#workspace-tab-content .button:hover):
(#workspace-tab-content .workspace-settings-row:hover .button):
(#workspace-tab-content .workspace-settings-row .button):
(#workspace-tab-content .workspace-settings-row .remove-button):
(#workspace-tab-content .workspace-settings-row .add-button):
(#workspace-tab-content .workspace-settings-row .file-system-add-button):
(#workspace-tab-content .workspace-settings-row .file-system-add-button:hover):
* inspector/front-end/addIcon.png: Added.

LayoutTests:

* inspector/file-mapping.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140124 268f45cc-cd09-0410-ab3c-d52691b4dbfc
12 files changed:
LayoutTests/ChangeLog
LayoutTests/inspector/file-mapping.html
Source/WebCore/ChangeLog
Source/WebCore/English.lproj/localizedStrings.js
Source/WebCore/WebCore.gypi
Source/WebCore/inspector/front-end/FileMapping.js
Source/WebCore/inspector/front-end/FileSystemWorkspaceProvider.js
Source/WebCore/inspector/front-end/Images/addIcon.png [new file with mode: 0644]
Source/WebCore/inspector/front-end/IsolatedFileSystemModel.js
Source/WebCore/inspector/front-end/Settings.js
Source/WebCore/inspector/front-end/SettingsScreen.js
Source/WebCore/inspector/front-end/helpScreen.css