#ifndef UI_VIEWS_CONTROLS_SCROLLBAR_OVERLAY_SCROLL_BAR_H_
#define UI_VIEWS_CONTROLS_SCROLLBAR_OVERLAY_SCROLL_BAR_H_
#include "ui/gfx/animation/slide_animation.h"
#include "ui/views/controls/scrollbar/base_scroll_bar.h"
namespace views {
class VIEWS_EXPORT OverlayScrollBar : public BaseScrollBar {
public:
explicit OverlayScrollBar(bool horizontal);
virtual ~OverlayScrollBar();
protected:
virtual gfx::Rect GetTrackBounds() const OVERRIDE;
virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE;
virtual int GetLayoutSize() const OVERRIDE;
virtual int GetContentOverlapSize() const OVERRIDE;
virtual void OnMouseEnteredScrollView(const ui::MouseEvent& event) OVERRIDE;
virtual void OnMouseExitedScrollView(const ui::MouseEvent& event) OVERRIDE;
virtual gfx::Size GetPreferredSize() OVERRIDE;
virtual void Layout() OVERRIDE;
virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
private:
gfx::SlideAnimation animation_;
DISALLOW_COPY_AND_ASSIGN(OverlayScrollBar);
};
}
#endif