#ifndef UI_VIEWS_CONTROLS_SCROLLBAR_BASE_SCROLL_BAR_BUTTON_H_
#define UI_VIEWS_CONTROLS_SCROLLBAR_BASE_SCROLL_BAR_BUTTON_H_
#include "ui/views/controls/button/custom_button.h"
#include "ui/views/repeat_controller.h"
#if defined(OS_LINUX)
#include "ui/gfx/screen.h"
#endif
namespace views {
class VIEWS_EXPORT BaseScrollBarButton : public CustomButton {
public:
explicit BaseScrollBarButton(ButtonListener* listener);
virtual ~BaseScrollBarButton();
protected:
virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE;
virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE;
virtual void OnMouseCaptureLost() OVERRIDE;
private:
void RepeaterNotifyClick();
RepeatController repeater_;
DISALLOW_COPY_AND_ASSIGN(BaseScrollBarButton);
};
}
#endif