On Sun, Mar 20, 2011 at 4:30 PM, Darin Adler <[email protected]> wrote:
> On Mar 20, 2011, at 4:27 PM, Darin Adler wrote:
>> On Mar 20, 2011, at 4:23 PM, Adam Barth wrote:
>>
>>> When implemented by the embedder, the SearchBox API can't really make use 
>>> of all the event-related machinery in WebCore.
>>
>> Lets see if we can export a clean way to do that. It may be too late for 
>> SearchBox, but perhaps not for future similar things browsers want to expose.
>
> We should start by figuring out what machinery is unavailable. For example, I 
> think browsers can create a custom event and send it, but maybe it’s hard to 
> add properties to that event?
>
> It may turn out that your premise—that we need to build browser features into 
> WebCore because otherwise we’ll implement something low-quality—is correct, 
> but I’m not yet convinced.

For events in particular, there's a bunch of code in WebCore that
interacts with EventTarget objects (including the implementation of
EventTarget itself).  It's not clear to me how the embedder can supply
a new subclass of EventTarget that interacts properly with this
machinery.

Adam
_______________________________________________
webkit-dev mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

Reply via email to