Don't you still need to engage some of webkit's code to ensure that space is
made for the resizer (when there is only a vertical scrollbar)?
-Darin


On Sun, Dec 14, 2008 at 10:27 PM, Marc-Andre Decoste <[email protected]> wrote:

> Salut Darin,
>
>    I know, I have investigated that route, but the webkit code for the
> resizer is very tied to HTML tag rendering, so I had a hard time finding how
> to reuse it. Also, since I realized that I couldn't reuse it in the same way
> when I get to draw over bottom shelves like the download shelf, I concluded
> that it would be better to do it on our own...
>
>    I have it all working when it is over the download shelf now, and
> looking at the status bubble as suggested by Jo, I see that it has to create
> its own window to set the status view as the content of that window... I
> think this would be a little overkill for a resize corner, but if it is the
> only way to do it over the tab content... so be it... Unless someone else
> has another suggestion?
>
> Thanks!
>
> BYE
> MAD
>
>
> On Sat, Dec 13, 2008 at 11:37 PM, Darin Fisher <[email protected]> wrote:
>
>> By the way, WebKit has support for drawing the resizer.  So, if you are
>> trying to add a resizer to windows that display web content, you might want
>> to just enable the feature in WebKit (or at least the rendering portion of
>> it).
>> -Darin
>>
>>
>> On Fri, Dec 12, 2008 at 1: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
-~----------~----~----~----~------~----~------~--~---

Reply via email to