[webkit-help] cannot allocate an object of abstract type

prince goyal prince.goyal at gmail.com
Mon Jul 16 20:26:17 PDT 2012


Hi,

As WebCore::ChromeClient contains pure virtual function, it must override
all the pure virtual functions.
You can provide default definition as of now for compilation as provided
for other functions:

For example:

bool ChromeClient::hasOpenedPopup() const
{
    notImplemented();
    return false;
}

I believe that it will resolve the compilation error.

Thanks,
Prince Goyal


On Tue, Jul 17, 2012 at 12:30 AM, <webkit-help-request at lists.webkit.org>wrote:

> Send webkit-help mailing list submissions to
>         webkit-help at lists.webkit.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         http://lists.webkit.org/mailman/listinfo/webkit-help
> or, via email, send a message with subject or body 'help' to
>         webkit-help-request at lists.webkit.org
>
> You can reach the person managing the list at
>         webkit-help-owner at lists.webkit.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of webkit-help digest..."
>
>
> Today's Topics:
>
>    1. cannot allocate an object of abstract type
>       ?WebKit::ChromeClient? (rahul tyagi)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 16 Jul 2012 10:52:26 +0530
> From: rahul tyagi <rahultyagi.ait at gmail.com>
> To: webkit-help at lists.webkit.org
> Subject: [webkit-help] cannot allocate an object of abstract type
>         ?WebKit::ChromeClient?
> Message-ID:
>         <CAEx5rF9B8Qe7LjFYxtSj9DRTqNewp=
> GcDqMinb24juXcHPpPgQ at mail.gmail.com>
> Content-Type: text/plain; charset="windows-1252"
>
> Hi,
> I am using nightly build "r121554" on Ubuntu 12.04. While compilation
> in release mode i am getting the following error :
>
> Source/WebKit/gtk/webkit/webkitwebview.cpp: In function ?void
> webkit_web_view_init(WebKitWebView*)?:
> Source/WebKit/gtk/webkit/webkitwebview.cpp:3609:64: error: cannot
> allocate an object of abstract type ?WebKit::ChromeClient?
> ./Source/WebKit/gtk/WebCoreSupport/ChromeClientGtk.h:43:11: note:
> because the following virtual functions are pure within
> ?WebKit::ChromeClient?:
> ./Source/WebCore/page/ChromeClient.h:232:42: note:     virtual
> WTF::PassOwnPtr<WebCore::ColorChooser>
> WebCore::ChromeClient::createColorChooser(WebCore::ColorChooserClient*,
> const WebCore::Color&)
> make[1]: ***
> [Source/WebKit/gtk/webkit/libwebkitgtk_3_0_la-webkitwebview.lo]
> Error 1
>
>
> I have tried other verions also but getting the same error. Thanks in
> advance for any of your suggestions and help.
>
>
>
> *
> RAHUL TYAGI
>
> *
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.webkit.org/pipermail/webkit-help/attachments/20120716/a1c9b182/attachment-0001.html
> >
>
> ------------------------------
>
> _______________________________________________
> webkit-help mailing list
> webkit-help at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo/webkit-help
>
>
> End of webkit-help Digest, Vol 37, Issue 5
> ******************************************
>



-- 
Thanks & Regards,
Prince Goyal
07838653397
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-help/attachments/20120717/7ed4019b/attachment.html>


More information about the webkit-help mailing list