#ifndef WebScrollbarThemeClientImpl_h
#define WebScrollbarThemeClientImpl_h
#include "platform/PlatformExport.h"
#include "platform/scroll/ScrollbarThemeClient.h"
#include "public/platform/WebScrollbar.h"
#include "wtf/Noncopyable.h"
namespace WebCore {
class ScrollView;
class PLATFORM_EXPORT WebScrollbarThemeClientImpl : public ScrollbarThemeClient {
WTF_MAKE_NONCOPYABLE(WebScrollbarThemeClientImpl);
public:
WebScrollbarThemeClientImpl(blink::WebScrollbar*);
virtual ~WebScrollbarThemeClientImpl();
virtual int x() const OVERRIDE;
virtual int y() const OVERRIDE;
virtual int width() const OVERRIDE;
virtual int height() const OVERRIDE;
virtual IntSize size() const OVERRIDE;
virtual IntPoint location() const OVERRIDE;
virtual Widget* parent() const OVERRIDE;
virtual Widget* root() const OVERRIDE;
virtual void setFrameRect(const IntRect&) OVERRIDE;
virtual IntRect frameRect() const OVERRIDE;
virtual void invalidate() OVERRIDE;
virtual void invalidateRect(const IntRect&) OVERRIDE;
virtual ScrollbarOverlayStyle scrollbarOverlayStyle() const OVERRIDE;
virtual void getTickmarks(Vector<IntRect>&) const OVERRIDE;
virtual bool isScrollableAreaActive() const OVERRIDE;
virtual bool isScrollViewScrollbar() const OVERRIDE;
virtual IntPoint convertFromContainingWindow(const IntPoint&) OVERRIDE;
virtual bool isCustomScrollbar() const OVERRIDE;
virtual ScrollbarOrientation orientation() const OVERRIDE;
virtual bool isLeftSideVerticalScrollbar() const OVERRIDE;
virtual int value() const OVERRIDE;
virtual float currentPos() const OVERRIDE;
virtual int visibleSize() const OVERRIDE;
virtual int totalSize() const OVERRIDE;
virtual int maximum() const OVERRIDE;
virtual ScrollbarControlSize controlSize() const OVERRIDE;
virtual ScrollbarPart pressedPart() const OVERRIDE;
virtual ScrollbarPart hoveredPart() const OVERRIDE;
virtual void styleChanged() OVERRIDE;
virtual bool enabled() const OVERRIDE;
virtual void setEnabled(bool) OVERRIDE;
virtual bool isOverlayScrollbar() const OVERRIDE;
virtual bool isAlphaLocked() const OVERRIDE;
virtual void setIsAlphaLocked(bool) OVERRIDE;
private:
blink::WebScrollbar* m_scrollbar;
};
}
#endif