Changeset 121675 in webkit
- Timestamp:
- Jul 2, 2012 6:10:11 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r121674 r121675 1 2012-07-02 Taiju Tsuiki <tzik@chromium.org> 2 3 Web Inspector: Add refresh button to FileSystemView status bar 4 https://bugs.webkit.org/show_bug.cgi?id=90244 5 6 Reviewed by Vsevolod Vlasov. 7 8 * http/tests/inspector/filesystem/directory-tree.html: 9 1 10 2012-07-02 Zan Dobersek <zandobersek@gmail.com> 2 11 -
trunk/LayoutTests/http/tests/inspector/filesystem/directory-tree.html
r121542 r121675 53 53 fileSystemItem.select(); 54 54 fileSystemView = fileSystemItem._fileSystemView; 55 directoryTree = fileSystemView. directoryTree;55 directoryTree = fileSystemView._directoryTree; 56 56 57 57 InspectorTest.callOnRequestCompleted(testStep.shift()); -
trunk/Source/WebCore/ChangeLog
r121673 r121675 1 2012-07-02 Taiju Tsuiki <tzik@chromium.org> 2 3 Web Inspector: Add refresh button to FileSystemView status bar 4 https://bugs.webkit.org/show_bug.cgi?id=90244 5 6 Reviewed by Vsevolod Vlasov. 7 8 * inspector/front-end/FileSystemView.js: 9 (WebInspector.FileSystemView): 10 (WebInspector.FileSystemView.prototype.get statusBarItems): 11 (WebInspector.FileSystemView.prototype.showView): 12 (WebInspector.FileSystemView.prototype._refresh): 13 (WebInspector.FileSystemView.EntryTreeElement.prototype._directoryContentReceived): 14 1 15 2012-06-22 Vsevolod Vlasov <vsevik@chromium.org> 2 16 -
trunk/Source/WebCore/inspector/front-end/FileSystemView.js
r121671 r121675 41 41 42 42 var directoryTreeElement = this.element.createChild("ol", "filesystem-directory-tree"); 43 this. directoryTree = new TreeOutline(directoryTreeElement);43 this._directoryTree = new TreeOutline(directoryTreeElement); 44 44 this.sidebarElement.appendChild(directoryTreeElement); 45 45 this.sidebarElement.addStyleClass("outline-disclosure"); … … 48 48 var rootItem = new WebInspector.FileSystemView.EntryTreeElement(this, fileSystem.root); 49 49 rootItem.expanded = true; 50 this. directoryTree.appendChild(rootItem);50 this._directoryTree.appendChild(rootItem); 51 51 this._visibleView = null; 52 53 this._refreshButton = new WebInspector.StatusBarButton(WebInspector.UIString("Refresh"), "refresh-storage-status-bar-item"); 54 this._refreshButton.visible = true; 55 this._refreshButton.addEventListener("click", this._refresh, this); 52 56 } 53 57 54 58 WebInspector.FileSystemView.prototype = { 59 get statusBarItems() 60 { 61 return [this._refreshButton.element]; 62 }, 63 55 64 /** 56 65 * @param {WebInspector.View} view … … 64 73 this._visibleView = view; 65 74 view.show(this.mainElement); 75 }, 76 77 _refresh: function() 78 { 79 this._directoryTree.children[0].refresh(); 66 80 } 67 81 } … … 139 153 140 154 if (order === 0) { 141 if (oldChild._entry.isDirectory && oldChild.expanded)142 oldChild. refresh();155 if (oldChild._entry.isDirectory) 156 oldChild.shouldRefreshChildren = true; 143 157 ++newEntryIndex; 144 158 ++oldChildIndex;
Note: See TracChangeset
for help on using the changeset viewer.