Re: [webkit-dev] Canvas API in Webkit
Hi Dont really know for which platform/port of webkit u want to do this. If its a gtk port u can use a cairo for doing the same . If its s60 (if at all u r experimenting) then using CFbsBitmapDevice context u can create a memory bitmap and then draw it onto graphics context. Webkit also does same kind of operation when it renders its contents on webview. So webkit already does it ... u just need to find way to manipulate. Please correct me if i am wrong on this :) Thanks & Regards Niilesh On Sat, Dec 27, 2008 at 9:49 AM, Lucius Fox wrote: > > > On Thu, Dec 25, 2008 at 12:09 PM, Darin Adler wrote: >> >> On Dec 24, 2008, at 7:48 PM, Lucius Fox wrote: >> >>> Thanks. I think Safari has a 'history' feature or Nokia S60 browser which >>> shows each url in history as a preview image. >> >> Not the desktop version of Safari, but yes, the mobile Safari has >> something like this. I think the Nokia browser does too. >> >>> Can you please tell me how if that is true and how is that implement? >> >> Well, those browsers aren't open source, so there's no real way for you to >> find out how they implemented the feature. >> >> I think it's safe to assume that they draw the web pages into a bitmap and >> then shrink the image. > > Thank you. Can you please tell me how can i find example of how to 'draw > the web pages into a bitmap'? > > Thank you again. > >> >> It certainly has nothing to do with the HTML element in either >> case. >> >>-- Darin >> > > > ___ > webkit-dev mailing list > webkit-dev@lists.webkit.org > http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev > > ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
Re: [webkit-dev] Canvas API in Webkit
On Thu, Dec 25, 2008 at 12:09 PM, Darin Adler wrote: > On Dec 24, 2008, at 7:48 PM, Lucius Fox wrote: > > Thanks. I think Safari has a 'history' feature or Nokia S60 browser which >> shows each url in history as a preview image. >> > > Not the desktop version of Safari, but yes, the mobile Safari has something > like this. I think the Nokia browser does too. > > Can you please tell me how if that is true and how is that implement? >> > > Well, those browsers aren't open source, so there's no real way for you to > find out how they implemented the feature. > > I think it's safe to assume that they draw the web pages into a bitmap and > then shrink the image. > Thank you. Can you please tell me how can i find example of how to 'draw the web pages into a bitmap'? Thank you again. > It certainly has nothing to do with the HTML element in either > case. > >-- Darin > > ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
Re: [webkit-dev] Canvas API in Webkit
> Well, those browsers aren't open source, so there's no real way for you to > find out how they implemented the feature. > > I think it's safe to assume that they draw the web pages into a bitmap and > then shrink the image. > > It certainly has nothing to do with the HTML element in either > case. > >-- Darin The function below indicates that s60 browser is using a bitmap to implement the history feature. void CHistoryController::UpdateHistoryEntryThumbnailL(const CFbsBitmap* aBitmap); http://trac.webkit.org/browser/S60/trunk/HistoryProvider/inc/HistoryController.h#L190 Zalan. ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
Re: [webkit-dev] Canvas API in Webkit
On Dec 24, 2008, at 7:48 PM, Lucius Fox wrote: Thanks. I think Safari has a 'history' feature or Nokia S60 browser which shows each url in history as a preview image. Not the desktop version of Safari, but yes, the mobile Safari has something like this. I think the Nokia browser does too. Can you please tell me how if that is true and how is that implement? Well, those browsers aren't open source, so there's no real way for you to find out how they implemented the feature. I think it's safe to assume that they draw the web pages into a bitmap and then shrink the image. It certainly has nothing to do with the HTML element in either case. -- Darin ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
Re: [webkit-dev] Canvas API in Webkit
Thanks. I think Safari has a 'history' feature or Nokia S60 browser which shows each url in history as a preview image'. Can you please tell me how if that is true and how is that implement? On Sun, Dec 14, 2008 at 6:46 PM, Justin Haygood wrote: > The HTML Canvas element was invented by Apple for Safari/WebKit :) > > - Original Message - > *From:* Lucius Fox > *To:* webkit-dev@lists.webkit.org > *Sent:* Sunday, December 14, 2008 5:24 PM > *Subject:* [webkit-dev] Canvas API in Webkit > > Hi, > > Mozilla has a Canvas API which allow extension developer to paint the web > page content to a surface. So that extension tab preview is possible: > > http://ted.mielczarek.org/code/mozilla/tabpreview/ > > Is that the same kind of api in webkit? If yes, can you please tell me > where i can find example? > > Thank you. > > -- > > ___ > webkit-dev mailing list > webkit-dev@lists.webkit.org > http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev > > ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
Re: [webkit-dev] Canvas API in Webkit
You might be interested in Ariya's experiments with tab preview: http://ariya.blogspot.com/2008/07/be-my-mirror-my-sword-and-shield.html http://ariya.blogspot.com/2008/08/seas-would-rise-when-i-gave-words.html Anthony. Le 14 déc. 08 à 23:24, Lucius Fox a écrit : Hi, Mozilla has a Canvas API which allow extension developer to paint the web page content to a surface. So that extension tab preview is possible: http://ted.mielczarek.org/code/mozilla/tabpreview/ Is that the same kind of api in webkit? If yes, can you please tell me where i can find example? Thank you. ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
Re: [webkit-dev] Canvas API in WebKit
On Dec 14, 2008, at 2:24 PM, Lucius Fox wrote: Is that the same kind of api in webkit? No, we don't have API for drawing web page content to the canvas graphics context. That sounds like a good idea for an extension for canvas. I hope someone adds it to WebKit at some point. -- Darin ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
Re: [webkit-dev] Canvas API in Webkit
The HTML Canvas element was invented by Apple for Safari/WebKit :) - Original Message - From: Lucius Fox To: webkit-dev@lists.webkit.org Sent: Sunday, December 14, 2008 5:24 PM Subject: [webkit-dev] Canvas API in Webkit Hi, Mozilla has a Canvas API which allow extension developer to paint the web page content to a surface. So that extension tab preview is possible: http://ted.mielczarek.org/code/mozilla/tabpreview/ Is that the same kind of api in webkit? If yes, can you please tell me where i can find example? Thank you. -- ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
[webkit-dev] Canvas API in Webkit
Hi, Mozilla has a Canvas API which allow extension developer to paint the web page content to a surface. So that extension tab preview is possible: http://ted.mielczarek.org/code/mozilla/tabpreview/ Is that the same kind of api in webkit? If yes, can you please tell me where i can find example? Thank you. ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev