The UI is going to be in JavaScript with callbacks from the DOMUI page same
as NTP, Downloads, History, etc... Therefore in render_view.cc, I need to
 replace the WebFrame with the DOMUI (I think). I don't want to introduce my
own set of methods that exposes this, that is why I am asking for some
thoughts, on the right approach.
How do you recommend making print preview to work? The UI team's mockup was
visioning a domui that handles the print preview/settings. Should we open a
new tab for print preview, or should we use the same tab? In either case,
how can I pass data, in particular the Bitmap image that is created in
RenderView to the DOMUI page so I can view it.

Any help is appreciated.

- Mohamed

On Wed, Sep 16, 2009 at 12:06 AM, Brett Wilson <[email protected]> wrote:

> On Tue, Sep 15, 2009 at 7:31 PM, Mohamed Mansour
> <[email protected]> wrote:
> > Hi all,
> > I am having trouble trying to figure out how I could replace the contents
> of
> > a specific WebFrame while I am in RenderView with a custom DOMUI page
> that I
> > have created.
> > Here is a scenario:
> >
> > User visits http://www.google.com
> > User waits till page is done loading
> > User selects Options > Print Preview
> > The current page will be replaced with a custom PrintPreview DOMUI page
> > (print:http://www.google.com)  where I would be passing some Data such
> as a
> > vector of bytes (image) from RenderView to PrintPreviewDOMUI
> >
> > I have created the DOMUI page and made sure it works, and created the
> bitmap
> > and encoded it with JPEGEncoder, but I am clueless on how the connection
> > would be from RenderView to DOMUI.
> > Any assistance is appreciated. The reason why I want to replace the
> current
> > contents is because print preview depends on what is exactly visible at
> that
> > time. Unless there is a better way.
> > Thanks in advance!
>
> Is the code you're writing in C++ or JS?
>
> Brett
>

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

Reply via email to