Changeset 121671 in webkit
- Timestamp:
- Jul 2, 2012 5:07:51 AM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 1 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r121668 r121671 1 2012-07-02 Taiju Tsuiki <tzik@chromium.org> 2 3 Web Inspector: Add DirectoryContentView for FileSystemView 4 https://bugs.webkit.org/show_bug.cgi?id=89961 5 6 Reviewed by Vsevolod Vlasov. 7 8 * WebCore.gypi: 9 * WebCore.vcproj/WebCore.vcproj: 10 * inspector/compile-front-end.py: 11 * inspector/front-end/DirectoryContentView.js: Added. 12 * inspector/front-end/FileSystemView.js: 13 (WebInspector.FileSystemView): 14 (WebInspector.FileSystemView.EntryTreeElement.prototype.onattach): 15 (WebInspector.FileSystemView.EntryTreeElement.prototype.onselect): 16 (WebInspector.FileSystemView.EntryTreeElement.prototype._directoryContentReceived): 17 * inspector/front-end/WebKit.qrc: 18 * inspector/front-end/inspector.html: 19 1 20 2012-07-02 Christophe Dumez <christophe.dumez@intel.com> 2 21 -
trunk/Source/WebCore/WebCore.gypi
r121610 r121671 6257 6257 'inspector/front-end/DebuggerScriptMapping.js', 6258 6258 'inspector/front-end/Dialog.js', 6259 'inspector/front-end/DirectoryContentView.js', 6259 6260 'inspector/front-end/DOMAgent.js', 6260 6261 'inspector/front-end/DOMBreakpointsSidebarPane.js', -
trunk/Source/WebCore/WebCore.vcproj/WebCore.vcproj
r121542 r121671 74851 74851 </File> 74852 74852 <File 74853 RelativePath="..\inspector\front-end\DirectoryContentView.js" 74854 > 74855 </File> 74856 <File 74853 74857 RelativePath="..\inspector\front-end\DOMAgent.js" 74854 74858 > -
trunk/Source/WebCore/inspector/compile-front-end.py
r121542 r121671 211 211 "DatabaseQueryView.js", 212 212 "DatabaseTableView.js", 213 "DirectoryContentView.js", 213 214 "DOMStorageItemsView.js", 214 215 "FileSystemView.js", -
trunk/Source/WebCore/inspector/front-end/FileSystemView.js
r121542 r121671 38 38 WebInspector.SplitView.call(this, WebInspector.SplitView.SidebarPosition.Left, "FileSystemViewSidebarWidth"); 39 39 this.element.addStyleClass("file-system-view"); 40 this.element.addStyleClass("storage-view"); 40 41 41 42 var directoryTreeElement = this.element.createChild("ol", "filesystem-directory-tree"); … … 87 88 var selection = this.listItemElement.createChild("div", "selection"); 88 89 this.listItemElement.insertBefore(selection, this.listItemElement.firstChild); 90 }, 89 91 90 this.listItemElement.addEventListener("contextmenu", this._handleContextMenuEvent.bind(this), true); 92 onselect: function() 93 { 94 if (!this._view) { 95 if (this._entry.isDirectory) 96 this._view = new WebInspector.DirectoryContentView(); 97 else 98 return; 99 } 100 this._fileSystemView.showView(this._view); 101 this.refresh(); 91 102 }, 92 103 … … 94 105 { 95 106 this.refresh(); 96 },97 98 _handleContextMenuEvent: function(event)99 {100 if (!this._entry.isDirectory)101 return;102 103 var contextMenu = new WebInspector.ContextMenu();104 contextMenu.appendItem(WebInspector.UIString("Refresh"), this.refresh.bind(this));105 contextMenu.show(event);106 107 }, 107 108 … … 124 125 125 126 entries.sort(WebInspector.FileSystemModel.Entry.compare); 127 if (this._view) 128 this._view.showEntries(entries); 129 126 130 var oldChildren = this.children.slice(0); 127 131 -
trunk/Source/WebCore/inspector/front-end/WebKit.qrc
r121542 r121671 41 41 <file>DebuggerScriptMapping.js</file> 42 42 <file>Dialog.js</file> 43 <file>DirectoryContentView.js</file> 43 44 <file>DOMAgent.js</file> 44 45 <file>DOMBreakpointsSidebarPane.js</file> -
trunk/Source/WebCore/inspector/front-end/inspector.html
r121542 r121671 162 162 <script type="text/javascript" src="SourceHTMLTokenizer.js"></script> 163 163 <script type="text/javascript" src="SourceJavaScriptTokenizer.js"></script> 164 <script type="text/javascript" src="DirectoryContentView.js"></script> 164 165 <script type="text/javascript" src="FileSystemModel.js"></script> 165 166 <script type="text/javascript" src="FileSystemView.js"></script>
Note: See TracChangeset
for help on using the changeset viewer.