[webkit-dev] extending webkit
wang gang
wulfgang.dev at gmail.com
Mon Mar 31 03:40:10 PDT 2008
Hi, Darin
Thanks for your reply.
Facing the myriad of source files in webkit, I am really a little bit
lost! Could you tell me which files to start looking at?
2008/3/25, Darin Adler <darin at apple.com>:
>
> On Mar 19, 2008, at 10:50 PM, wang gang wrote:
>
> > Is there a way to extend webkit so as to enable the browser or
> > widgets (like the ones on Mac) to access the native functionalities
> > of the machine?
>
> Sure, if you're developing the program using WebKit. The
> JavaScriptCore API can be used to add new objects and functions to
> JavaScript.
>
> Safari does this on Mac OS X.
>
> > scenario 1: in the browser, a piece of js code can invoke certain
> > apis to make phone calls or send/receive sms on a mobile phone which
> > has webkit ported and served as the base of the browser.
> > scenario 2: a widget reads from the local PIM database on the
> > phone and shows contact or calendar info.
> >
> > The basic idea is to provide necessary apis to be used by js code
> > which can then access local data just as it does in getting remote
> > info (like in ajax).
>
>
> You can indeed do this with WebKit.
>
> The details of how to do it depend on how you've done the WebKit port
> to your platform.
>
> -- Darin
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.webkit.org/pipermail/webkit-dev/attachments/20080331/3e6aad72/attachment.html
More information about the webkit-dev
mailing list