| Index: third_party/WebKit/Source/WebKit/chromium/src/WebScrollbarImpl.h
|
| ===================================================================
|
| --- third_party/WebKit/Source/WebKit/chromium/src/WebScrollbarImpl.h (revision 92367)
|
| +++ third_party/WebKit/Source/WebKit/chromium/src/WebScrollbarImpl.h (working copy)
|
| @@ -31,24 +31,39 @@
|
| #ifndef WebScrollbarImpl_h
|
| #define WebScrollbarImpl_h
|
|
|
| -#include "ScrollableArea.h"
|
| #include "WebScrollbar.h"
|
|
|
| #include <wtf/RefPtr.h>
|
| +#include <wtf/Vector.h>
|
|
|
| namespace WebCore {
|
| +class IntPoint;
|
| +class IntRect;
|
| class Scrollbar;
|
| }
|
|
|
| namespace WebKit {
|
|
|
| -class WebScrollbarImpl : public WebScrollbar,
|
| - public WebCore::ScrollableArea {
|
| +class WebScrollbarGroupImpl;
|
| +
|
| +class WebScrollbarImpl : public WebScrollbar {
|
| public:
|
| - WebScrollbarImpl(WebScrollbarClient*, Orientation orientation);
|
| + WebScrollbarImpl(WebScrollbarClient*,
|
| + WebScrollbarGroup*,
|
| + Orientation orientation);
|
| ~WebScrollbarImpl();
|
|
|
| + void setScrollOffset(int scrollOffset);
|
| + void invalidateScrollbarRect(const WebCore::IntRect&);
|
| + void getTickmarks(Vector<WebCore::IntRect>&) const;
|
| + WebCore::IntPoint convertFromContainingViewToScrollbar(const WebCore::IntPoint& parentPoint) const;
|
| + void scrollbarStyleChanged();
|
| +
|
| + int scrollOffset() { return m_scrollOffset; }
|
| + WebCore::Scrollbar* scrollbar() { return m_scrollbar.get(); }
|
| +
|
| // WebKit::WebScrollbar methods
|
| + virtual bool isOverlay();
|
| virtual void setLocation(const WebRect&);
|
| virtual int value() const;
|
| virtual void setValue(int position);
|
| @@ -57,24 +72,6 @@
|
| virtual void paint(WebCanvas*, const WebRect&);
|
| virtual bool handleInputEvent(const WebInputEvent&);
|
|
|
| - // WebCore::ScrollableArea methods
|
| - virtual int scrollSize(WebCore::ScrollbarOrientation) const;
|
| - virtual int scrollPosition(WebCore::Scrollbar*) const;
|
| - virtual void setScrollOffset(const WebCore::IntPoint&);
|
| - virtual void invalidateScrollbarRect(WebCore::Scrollbar*, const WebCore::IntRect&);
|
| - virtual void invalidateScrollCornerRect(const WebCore::IntRect&);
|
| - virtual bool isActive() const;
|
| - virtual ScrollableArea* enclosingScrollableArea() const;
|
| - virtual WebCore::IntRect scrollCornerRect() const { return WebCore::IntRect(); }
|
| - virtual bool isScrollCornerVisible() const;
|
| - virtual void getTickmarks(Vector<WebCore::IntRect>&) const;
|
| - virtual WebCore::Scrollbar* horizontalScrollbar() const;
|
| - virtual WebCore::Scrollbar* verticalScrollbar() const;
|
| - virtual int visibleHeight() const;
|
| - virtual int visibleWidth() const;
|
| - virtual WebCore::IntSize contentsSize() const;
|
| - virtual WebCore::IntSize overhangAmount() const;
|
| -
|
| private:
|
| bool onMouseDown(const WebInputEvent& event);
|
| bool onMouseUp(const WebInputEvent& event);
|
| @@ -84,6 +81,7 @@
|
| bool onKeyDown(const WebInputEvent& event);
|
|
|
| WebScrollbarClient* m_client;
|
| + WebScrollbarGroupImpl* m_group;
|
|
|
| int m_scrollOffset;
|
| RefPtr<WebCore::Scrollbar> m_scrollbar;
|
|
|