[webkit-dev] write function in FrameLoaderClient.cpp

Julien Chaffraix julien.chaffraix at gmail.com
Tue Feb 3 03:39:52 PST 2009


Hi,

> Can I implement the function:
>
> bool WebFrameLoaderClient::hasWebView() const
> {
>    return [m_webFrame.get() webView] != nil;
> }
> written in "WebKit/WebKit/mac/WebCoreSupport/WebFrameLoaderClient.mm"
>
> and write it in
> WebKit / WebCore / loader / FrameLoaderClient.cpp?

This method lies in the WebKit/ directory and is thus platform
dependent: WebView & WebFrame are platform-specific classes that wrap
WebCore's. WebCore holds the cross-platform code of WebKit so it does
not make sense to taint it with platform-specific code.
You should implement this method in your platform FrameLoaderClient
implementation.

Regards,
Julien


More information about the webkit-dev mailing list