#ifndef CC_INPUT_SCROLLBAR_H_
#define CC_INPUT_SCROLLBAR_H_
#include "cc/base/cc_export.h"
#include "ui/gfx/point.h"
#include "ui/gfx/rect.h"
class SkCanvas;
namespace cc {
enum ScrollbarOrientation { HORIZONTAL, VERTICAL };
enum ScrollDirection { SCROLL_BACKWARD, SCROLL_FORWARD };
enum ScrollbarPart { THUMB, TRACK };
class Scrollbar {
public:
virtual ~Scrollbar() {}
virtual ScrollbarOrientation Orientation() const = 0;
virtual bool IsLeftSideVerticalScrollbar() const = 0;
virtual gfx::Point Location() const = 0;
virtual bool IsOverlay() const = 0;
virtual bool HasThumb() const = 0;
virtual int ThumbThickness() const = 0;
virtual int ThumbLength() const = 0;
virtual gfx::Rect TrackRect() const = 0;
virtual void PaintPart(SkCanvas* canvas,
ScrollbarPart part,
const gfx::Rect& content_rect) = 0;
};
}
#endif