Hi Mohamed,This overlaps with the work I've been doing so please sync with
me before starting any major work.

What I've found out so far is that if you have
an create a page (using WebView::Create) and have it load a page using
html that fully describes the page.
 For my tests I've been using WebFrame::GetFullPageHtml().  I know when
WebKit has constructed the page using the WebViewDelegate::DidStopLoading()
callback.  I have not investigated how to detect this when additional
resources are loaded.  Some pages for example use alternate images when you
switch them into print mode (using CSS).

The work I've been doing the past two weeks is to gradually add support for
Print Selection and Print Frame and the plan is start making these
asynchronous before changing the full page printing.  The reason is simply I
want to do this in easy steps so they are easy to backtrack and test.

Also one of the problems I've been facing with asynchronous printing is that
there is no simple way to copy the full page (DOM if you will) in WebKit.
 The Html approach is good enough for print selection and hopefully print
frame but a more in depth approach is required for full page printing.  I
suspect for this some WebKit changes are required.

Sverrir


2009/6/8 PhistucK <[email protected]>

> Can you check for any renderer HTTP requests? sort of once it is done, you
> can fire the event.(Unless it is a never ending AJAX generated page, but
> the problem persists in any mode with no timeout.)
>
> Sorry for blabbing.
>
> ☆PhistucK
>
>
>
> On Mon, Jun 8, 2009 at 09:48, Mohamed Mansour <[email protected]>wrote:
>
>> Yea, that was the first thing that came into my mind. I don't know if I am
>> looking at the right place but from what I have read before, I would need to
>> use the NotificationRegistrar and register myself to some NotificationType.
>> There isn't any notification type that says page done or anything similar.
>> The closest I seen was  DOM_OPERATION_RESPONSE or NAV_ENTRY_COMMITTED unless
>> I was looking in the wrong place.
>>
>> Its still
>> not great and the page is still white, unless I press the big ok button on 
>> the print dialog then everything renders fine.
>>
>> -- Mohamed Mansour
>>
>>
>>
>> On Mon, Jun 8, 2009 at 1:51 AM, Peter Kasting <[email protected]>wrote:
>>
>>> On Sun, Jun 7, 2009 at 10:45 PM, Mohamed Mansour <
>>> [email protected]> wrote:
>>>
>>>> My question is this, how can I ensure all the page elements are finished
>>>> loading? There seems to be no asynchronous event I could use to wait till a
>>>> page has been fully loaded. Any ideas?
>>>>
>>>
>>>  Have you tried tracing backwards from whatever stops the throbber
>>> spinning?
>>>
>>> PK
>>>
>>
>>
>>
>>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
Chromium Developers mailing list: [email protected] 
View archives, change email options, or unsubscribe: 
    http://groups.google.com/group/chromium-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to