InRegionScrollableArea.h [plain text]
#ifndef InRegionScrollableArea_h
#define InRegionScrollableArea_h
#include "IntRect.h"
#include <interaction/ScrollViewBase.h>
namespace WebCore {
class Document;
class LayerWebKitThread;
class Node;
class RenderLayer;
}
namespace BlackBerry {
namespace WebKit {
class WebPagePrivate;
class InRegionScrollableArea : public Platform::ScrollViewBase {
public:
InRegionScrollableArea();
InRegionScrollableArea(WebPagePrivate*, WebCore::RenderLayer*);
virtual ~InRegionScrollableArea();
void setVisibleWindowRect(const WebCore::IntRect&);
Platform::IntRect visibleWindowRect() const;
WebCore::RenderLayer* layer() const;
WebCore::Document* document() const;
WebCore::LayerWebKitThread* cachedScrollableLayer() const;
WebCore::Node* cachedScrollableNode() const;
private:
WebPagePrivate* m_webPage;
WebCore::RenderLayer* m_layer;
WebCore::Document* m_document;
RefPtr<WebCore::LayerWebKitThread> m_cachedCompositedScrollableLayer;
RefPtr<WebCore::Node> m_cachedNonCompositedScrollableNode;
bool m_hasWindowVisibleRectCalculated;
};
}
}
#endif