Salut again, a little update. I got the drawing of my view to work within the download shelf, and I think I found why I couldn't get it to work as a child of the content_container_. This latter parent view seem to only be able to draw TabContents objects...
So I'll try to make the resizer object a TabContents object, hoping that it will still be able to draw itself on top of the download shelf... To be continued... BYE MAD On Fri, Dec 12, 2008 at 4:32 PM, Marc-Andre Decoste <[email protected]> wrote: > Salut, > > I'm working on the resize corner view and am having a little trouble > getting it to work. I tried to use the sample code provided in > http://dev.chromium.org/developers/design-documents/views-windowing, by > doing as follows: > > > - in BrowserView::Init(), I create a label view and add it as a child > of the contents_container_ > - in BrowserView::Layout(), I get the parent of the label, as well as > the preferred size of the label and then do as follows: > label->SetBounds((parent_view->width() - ps.width() )/ 2, > (parent_view->height() - ps.height()) / 2, > ps.width(), ps.height()); > - Then I run with a break point in Label::Paint() and it seems to do as > it is told except... > I don't see the Hello World text drawn anywhere... > - I also tried my own BrowserResizerView class which also has mouse > event overrides and they never get called, only the Paint override which > seems to be painting on a /dev/nul canvas... > > What am I doing wrong? Do we have more detailed documentation about > this, or is > http://dev.chromium.org/developers/design-documents/chromeviews the only > source of info we currently have? > > Thanks! > > BYE > MAD > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Chromium-dev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/chromium-dev?hl=en -~----------~----~----~----~------~----~------~--~---
