Bug 54135

Summary: Web Inspector: define interface per domain in Inspector.idl.
Product: WebKit Reporter: Pavel Feldman <pfeldman>
Component: Web Inspector (Deprecated)Assignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: abarth, apavlov, bweinstein, dglazkov, eric, joepeck, keishi, loislo, pfeldman, pmuellr, rik, timothy, webkit.review.bot, yurys
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Bug Depends on:    
Bug Blocks: 54112    
Attachments:
Description Flags
Patch yurys: review+

Pavel Feldman
Reported 2011-02-09 12:32:25 PST
Inspector.idl should look like: interface [Conditional=INSPECTOR] DOM { void start(); void stop(); void getChildNodes(in long nodeId); void pushNodeToFrontend(in Object objectId, out Value result); ... [notify] void childNodeInserted(out long parentId, out long prevId, out Object node); [notify] void childNodeRemoved(out long parentId, out long id); }; interface [Conditional=INSPECTOR] CSS { void setPropertyText(in Object styleId, in long propertyIndex, in String text, in boolean overwrite, out Value style); ... void querySelectorAll(in long documentId, in String selector, out Array result); }; interface [Conditional=INSPECTOR] Timeline { void start(); void stop(); [notify] void timelineProfilerWasStarted(); ... [notify] void addRecordToTimeline(out Object record); }; I.e. interface name defines domain, functions within domain have unique names. Patch to follow.
Attachments
Patch (47.32 KB, patch)
2011-02-10 05:54 PST, Pavel Feldman
yurys: review+
Patrick Mueller
Comment 1 2011-02-09 14:58:47 PST
Looks good to me. But haven't looked at the hit to my parser yet :-) Here's another thing we could do, to handle [notify] methods. Split notify methods into a separate interface, named [OriginalInterfaceName]Notify. That's what my parsing actually does; for instance, the IDL in the description would have the following interfaces: DOM DOMNotify CSS Timeline TimelineNotify But it's not a big deal to me.
Pavel Feldman
Comment 2 2011-02-10 05:54:25 PST
WebKit Review Bot
Comment 3 2011-02-10 05:59:45 PST
Pavel Feldman
Comment 4 2011-02-10 06:03:37 PST
WebKit Review Bot
Comment 5 2011-02-10 06:10:53 PST
http://trac.webkit.org/changeset/78212 might have broken Chromium Linux Release
Note You need to log in before you can comment on or make changes to this bug.