[webkit-help] Writing programs against Win32 WebKit & WinCE WebKit
Adam Roben
aroben at apple.com
Fri Feb 17 08:38:29 PST 2012
On Feb 17, 2012, at 11:34 AM, Philip Sharpe <phil at ikanosconsulting.com> wrote:
> I’ve been looking into using WebKit but I’m slightly confused on exactly how to use the WebKit libraries. The Apple docs (the only ones according to the web-site) suggest you create a WebView object as the ‘master’ object. However the WebView header file (WebView.h) seems to be missing from the Win32 build. Looking at the example applications I believe the following is true:
>
> Win32:
> Create an instance of the IWebView interface with the WebKitCreateInstance function (found in WebKit/WebKitCOMAPI.h) and use the interface as if it were the WebView object.
> WinCE:
> Create an instance of the WebView object and use as appropriate.
>
> I presume there is no easy way to use the WebView class on Win32? This would help with cross platform code :)
The documentation on developer.apple.com is referring to the Cocoa WebKit API that is exposed by WebKit.framework on OS X. There is no Cocoa on Windows, so the API is not going to be identical between the two platforms.
However, the Windows COM API is meant to mimic the Cocoa API as much as possible. You'll find lots of similarities between IWebView on Windows and WebView on OS X. It shouldn't be too hard to write a wrapper around the two that exposes a single interface.
-Adam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-help/attachments/20120217/4c156982/attachment.html>
More information about the webkit-help
mailing list