InRegionScrollableArea.h [plain text]
#ifndef InRegionScrollableArea_h
#define InRegionScrollableArea_h
#include <BlackBerryPlatformPrimitives.h>
#include <interaction/ScrollViewBase.h>
namespace WebCore {
class RenderLayer;
}
namespace BlackBerry {
namespace WebKit {
class WebPagePrivate;
class InRegionScrollableArea : public Platform::ScrollViewBase {
public:
InRegionScrollableArea();
InRegionScrollableArea(WebPagePrivate*, WebCore::RenderLayer*);
WebCore::RenderLayer* layer() const;
private:
Platform::IntPoint calculateMinimumScrollPosition(const Platform::IntSize& viewportSize, float overscrollLimitFactor) const;
Platform::IntPoint calculateMaximumScrollPosition(const Platform::IntSize& viewportSize, const Platform::IntSize& contentsSize, float overscrollLimitFactor) const;
WebPagePrivate* m_webPage;
WebCore::RenderLayer* m_layer;
};
}
}
#endif