[Webkit-unassigned] [Bug 177419] New: Web Inspector: Create ResourceCollectionContentView and make CollectionContentView easier to extend

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Sep 24 10:42:00 PDT 2017


https://bugs.webkit.org/show_bug.cgi?id=177419

            Bug ID: 177419
           Summary: Web Inspector: Create ResourceCollectionContentView
                    and make CollectionContentView easier to extend
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: All
                OS: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Web Inspector
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: mattbaker at apple.com
                CC: inspector-bugzilla-changes at group.apple.com

Summary:
Create ResourceCollectionContentView and make CollectionContentView easier to extend.

CollectionContentView should be generic, work with any represented object Collection, and not perform any type checking. It should just map items to ContentViews using the provided ContentView constructor.

class CollectionContentView extends ContentView
{
    constructor(collection, contentViewConstructor, title)

    // Public

    addContentViewForItem(item)
    removeContentViewForItem(item)

    // Protected

    contentViewAdded(contentView)
    selectedItemChanged(previousSelection, selectedItem)
}

Subclasses can override `contentViewAdded` and `selectedItemChanged` to add behavior, such as toggling CSS classes or calling WI.showRepresentedObject.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170924/78ae6ca6/attachment.html>


More information about the webkit-unassigned mailing list