Bug 89961

Summary: Web Inspector: Add DirectoryContentView for FileSystemView
Product: WebKit Reporter: Taiju Tsuiki <tzik>
Component: Web Inspector (Deprecated)Assignee: Taiju Tsuiki <tzik>
Status: RESOLVED FIXED    
Severity: Normal CC: apavlov, bweinstein, joepeck, keishi, loislo, pfeldman, pmuellr, rik, timothy, webkit.review.bot, yurys
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Bug Depends on: 73301, 87856    
Bug Blocks: 68203, 90361    
Attachments:
Description Flags
Screenshot
none
Patch
none
Patch
none
Patch none

Description Taiju Tsuiki 2012-06-26 02:03:43 PDT
Created attachment 149487 [details]
Screenshot

After FileSystemView landed, I'd like to add a view to show details of directory contents.
This patch adds DirectoryContentView based on DataGrid, showing name, URL, type and modification time.
Comment 1 Taiju Tsuiki 2012-06-26 02:05:58 PDT
Created attachment 149489 [details]
Patch
Comment 2 Vsevolod Vlasov 2012-06-29 01:06:42 PDT
Comment on attachment 149489 [details]
Patch

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

> Source/WebCore/inspector/front-end/DirectoryContentView.js:60
> +WebInspector.DirectoryContentView.columnIndices = {

We prefer indexes in inspector code.

> Source/WebCore/inspector/front-end/DirectoryContentView.js:61
> +    NAME: 0,

Name

> Source/WebCore/inspector/front-end/DirectoryContentView.js:63
> +    TYPE: 2,

Type

> Source/WebCore/inspector/front-end/DirectoryContentView.js:64
> +    SIZE: 3,

Size

> Source/WebCore/inspector/front-end/DirectoryContentView.js:65
> +    MTIME: 4

ModificationTime

> Source/WebCore/inspector/front-end/DirectoryContentView.js:100
> +        if ("size" in metadata)

Isn't size always available?

> Source/WebCore/inspector/front-end/FileSystemView.js:98
> +            } else {

else
    return
Comment 3 Taiju Tsuiki 2012-07-01 21:57:31 PDT
Created attachment 150357 [details]
Patch
Comment 4 Taiju Tsuiki 2012-07-01 23:56:40 PDT
Comment on attachment 149489 [details]
Patch

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

>> Source/WebCore/inspector/front-end/DirectoryContentView.js:60
>> +WebInspector.DirectoryContentView.columnIndices = {
> 
> We prefer indexes in inspector code.

Done

>> Source/WebCore/inspector/front-end/DirectoryContentView.js:61
>> +    NAME: 0,
> 
> Name

Done

>> Source/WebCore/inspector/front-end/DirectoryContentView.js:63
>> +    TYPE: 2,
> 
> Type

Done

>> Source/WebCore/inspector/front-end/DirectoryContentView.js:64
>> +    SIZE: 3,
> 
> Size

Done

>> Source/WebCore/inspector/front-end/DirectoryContentView.js:65
>> +    MTIME: 4
> 
> ModificationTime

Done

>> Source/WebCore/inspector/front-end/DirectoryContentView.js:100
>> +        if ("size" in metadata)
> 
> Isn't size always available?

No, it's not available for directories.

>> Source/WebCore/inspector/front-end/FileSystemView.js:98
>> +            } else {
> 
> else
>     return

Done
Comment 5 Taiju Tsuiki 2012-07-02 00:08:32 PDT
Created attachment 150366 [details]
Patch
Comment 6 WebKit Review Bot 2012-07-02 05:08:09 PDT
Comment on attachment 150366 [details]
Patch

Clearing flags on attachment: 150366

Committed r121671: <http://trac.webkit.org/changeset/121671>
Comment 7 WebKit Review Bot 2012-07-02 05:08:14 PDT
All reviewed patches have been landed.  Closing bug.