Changeset 122104 in webkit
- Timestamp:
- Jul 9, 2012 5:33:48 AM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 1 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r122103 r122104 1 2012-07-09 Taiju Tsuiki <tzik@chromium.org> 2 3 Web Inspector: Add FileContentView for FileSystemView 4 https://bugs.webkit.org/show_bug.cgi?id=90529 5 6 Adding FileContentView to Inspector. 7 This class provides preview of text files in FileSystem. 8 9 Reviewed by Vsevolod Vlasov. 10 11 * WebCore.gypi: 12 * WebCore.vcproj/WebCore.vcproj: 13 * inspector/compile-front-end.py: 14 * inspector/front-end/FileContentView.js: Added. 15 * inspector/front-end/FileSystemView.js: 16 (WebInspector.FileSystemView.prototype.get visibleView): 17 (WebInspector.FileSystemView.EntryTreeElement.prototype.onselect): 18 (WebInspector.FileSystemView.EntryTreeElement.prototype._directoryContentReceived): 19 (WebInspector.FileSystemView.EntryTreeElement.prototype.refresh): 20 * inspector/front-end/WebKit.qrc: 21 * inspector/front-end/inspector.html: 22 1 23 2012-07-09 Carlos Garcia Campos <cgarcia@igalia.com> 2 24 -
trunk/Source/WebCore/WebCore.gypi
r121900 r122104 6280 6280 'inspector/front-end/ExtensionServer.js', 6281 6281 'inspector/front-end/FileManager.js', 6282 'inspector/front-end/FileContentView.js', 6282 6283 'inspector/front-end/FileSystemModel.js', 6283 6284 'inspector/front-end/FileSystemView.js', -
trunk/Source/WebCore/WebCore.vcproj/WebCore.vcproj
r121900 r122104 74923 74923 </File> 74924 74924 <File 74925 RelativePath="..\inspector\front-end\FileContentView.js" 74926 > 74927 </File> 74928 <File 74925 74929 RelativePath="..\inspector\front-end\FileManager.js" 74926 74930 > -
trunk/Source/WebCore/inspector/compile-front-end.py
r121850 r122104 213 213 "DirectoryContentView.js", 214 214 "DOMStorageItemsView.js", 215 "FileContentView.js", 215 216 "FileSystemView.js", 216 217 "IndexedDBViews.js", -
trunk/Source/WebCore/inspector/front-end/FileSystemView.js
r122101 r122104 66 66 67 67 /** 68 * @type {WebInspector.View} 69 */ 70 get visibleView() 71 { 72 return this._visibleView; 73 }, 74 75 /** 68 76 * @param {WebInspector.View} view 69 77 */ … … 112 120 if (this._entry.isDirectory) 113 121 this._view = new WebInspector.DirectoryContentView(); 114 else 115 return; 122 else { 123 var file = /** @type {WebInspector.FileSystemModel.File} */ this._entry; 124 this._view = new WebInspector.FileContentView(file); 125 } 116 126 } 117 127 this._fileSystemView.showView(this._view); … … 158 168 if (oldChild._entry.isDirectory) 159 169 oldChild.shouldRefreshChildren = true; 170 else 171 oldChild.refresh(); 172 160 173 ++newEntryIndex; 161 174 ++oldChildIndex; … … 182 195 refresh: function() 183 196 { 184 if (!this._entry.isDirectory) 185 return; 186 this._entry.requestDirectoryContent(this._directoryContentReceived.bind(this)); 197 if (!this._entry.isDirectory) { 198 if (this._view && this._view === this._fileSystemView.visibleView) { 199 var fileContentView = /** @type {WebInspector.FileContentView} */ this._view; 200 fileContentView.refresh(); 201 } 202 } else 203 this._entry.requestDirectoryContent(this._directoryContentReceived.bind(this)); 187 204 } 188 205 } -
trunk/Source/WebCore/inspector/front-end/WebKit.qrc
r121850 r122104 58 58 <file>ExtensionRegistryStub.js</file> 59 59 <file>ExtensionServer.js</file> 60 <file>FileContentView.js</file> 60 61 <file>FileManager.js</file> 61 62 <file>FileSystemModel.js</file> -
trunk/Source/WebCore/inspector/front-end/inspector.html
r121911 r122104 163 163 <script type="text/javascript" src="SourceJavaScriptTokenizer.js"></script> 164 164 <script type="text/javascript" src="DirectoryContentView.js"></script> 165 <script type="text/javascript" src="FileContentView.js"></script> 165 166 <script type="text/javascript" src="FileSystemModel.js"></script> 166 167 <script type="text/javascript" src="FileSystemView.js"></script>
Note: See TracChangeset
for help on using the changeset viewer.