#ifndef UI_VIEWS_CONTROLS_SCROLLBAR_SCROLL_BAR_VIEWS_H_
#define UI_VIEWS_CONTROLS_SCROLLBAR_SCROLL_BAR_VIEWS_H_
#include "base/memory/raw_ptr.h"
#include "ui/base/metadata/metadata_header_macros.h"
#include "ui/views/controls/button/button.h"
#include "ui/views/controls/scrollbar/scroll_bar.h"
#include "ui/views/view.h"
namespace gfx {
class Canvas;
}
namespace views {
class VIEWS_EXPORT ScrollBarViews : public ScrollBar {
METADATA_HEADER(ScrollBarViews, ScrollBar)
public:
explicit ScrollBarViews(Orientation orientation = Orientation::kHorizontal);
ScrollBarViews(const ScrollBarViews&) = delete;
ScrollBarViews& operator=(const ScrollBarViews&) = delete;
~ScrollBarViews() override;
static int GetVerticalScrollBarWidth(const ui::NativeTheme* theme);
protected:
void OnPaint(gfx::Canvas* canvas) override;
int GetThickness() const override;
gfx::Rect GetTrackBounds() const override;
private:
raw_ptr<Button> prev_button_;
raw_ptr<Button> next_button_;
ui::NativeTheme::Part part_;
ui::NativeTheme::State state_;
};
}
#endif