[webkit-dev] c++ webkit

Ryosuke Niwa rniwa at webkit.org
Thu Oct 14 09:33:24 PDT 2010


This mailing list is for the development of WebKit itself.  You probably
want to post this on webkit-help at lists.webkit.org instead.

- Ryosuke

On Thu, Oct 14, 2010 at 9:07 AM, Mohammed Rashad <mohammedrashadkm at gmail.com
> wrote:

> Hi all,
> I am new to list . I had a javascript code which display a map.
> How could I make the code work from my c++ application. How to embed webkit
> code in c++.
>
>
>
>   <head>
>     <title>OpenLayers Example</title>
>     <script src="../lib/OpenLayers.js"></script>
>     <script type="text/javascript">
>         function init(){
>            var map = new OpenLayers.Map('map');
>             var ol_wms = new OpenLayers.Layer.WMS( "OpenLayers WMS", "
> http://labs.metacarta.com/wms/vmap0",  {layers: 'basic'} );
>             map.addLayers([ol_wms]);
>              map.zoomToMaxExtent();
>         }
>     </script>
>   </head>
>   <body onload="init()">
>       <div id="map" class="smallmap"></div>
>   </body>
>
>
>
> How to call the function init() from a c++ application and how to display
> the image generated from code.
> How can I load a javascript class.
> and use it in my c++ desktop application
> OpenLayers.js contains the class OpenLayers.Map
>
> Anyone please provide some code if possible. Also please give some links on
> porting webkit to a desktop gui toolkit like gtk
>
> --
> Rashad
>
> _______________________________________________
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20101014/b2ae98e5/attachment.html>


More information about the webkit-dev mailing list