disable overlay & bouncing scrollbars on Mac Lion

92 views
Skip to first unread message

Marshall Greenblatt

unread,
Oct 3, 2011, 7:11:39 AM10/3/11
to chromium-dev
Hi All,

I would like to add an option to disable the use of overlay scrollbars and bouncing scrollbars in Chromium's WebKit API on Mac Lion. This is to make the behavior of my native application using Chromium's WebKit API most consistent with other windows in the same application that intentionally do not support these features. This can be done by changing the return values of a few functions:

1. isScrollbarOverlayAPIAvailable() in WebKit/Source/WebCore/platform/chromium/ScrollbarOverlayUtilitiesChromiumMac.mm
2. allowVerticalStretching()/allowHorizonalStretching() in WebKit/Source/WebCore/platform/chromium/ScrollAnimatorChromiumMac.mm

What would be the right way to expose this option via the Chromium WebKit API? Would such an option be an acceptable addition to the project?

Thanks,
Marshall

Sailesh Agrawal

unread,
Oct 3, 2011, 10:54:25 AM10/3/11
to magree...@gmail.com, chromium-dev
Hi Marshall, this patch maybe helpful:

It disables or enables overlay scrollbars for unit tests. We could probably add something similar for rubber banding as well.

You'd have to extend this so that you could expose it through the Chromium WebKit API though.

Thanks,
Sailesh

--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev

Marshall Greenblatt

unread,
Oct 4, 2011, 3:19:52 AM10/4/11
to Sailesh Agrawal, chromium-dev
On Mon, Oct 3, 2011 at 4:54 PM, Sailesh Agrawal <sa...@chromium.org> wrote:

Thanks for the pointer. Definitely useful as a basis for what I'm trying to do.
 

Nico Weber

unread,
Oct 5, 2011, 5:18:11 PM10/5/11
to magree...@gmail.com, Sailesh Agrawal, chromium-dev
FWIW, I'd recommend to not disable this. People expect this behavior in Lion.

Nico
Reply all
Reply to author
Forward
0 new messages