#include "ui/views/controls/scrollbar/scroll_bar_button.h"
#include <utility>
#include "base/functional/bind.h"
#include "base/time/tick_clock.h"
#include "third_party/abseil-cpp/absl/types/variant.h"
#include "ui/base/metadata/metadata_impl_macros.h"
#include "ui/display/screen.h"
#include "ui/events/base_event_utils.h"
#include "ui/events/event_constants.h"
#include "ui/gfx/canvas.h"
#include "ui/gfx/geometry/rect.h"
namespace views {
ScrollBarButton::ScrollBarButton(PressedCallback callback,
Type type,
const base::TickClock* tick_clock)
: … { … }
ScrollBarButton::~ScrollBarButton() = default;
gfx::Size ScrollBarButton::CalculatePreferredSize(
const SizeBounds& ) const { … }
bool ScrollBarButton::OnMousePressed(const ui::MouseEvent& event) { … }
void ScrollBarButton::OnMouseReleased(const ui::MouseEvent& event) { … }
void ScrollBarButton::OnMouseCaptureLost() { … }
void ScrollBarButton::OnThemeChanged() { … }
void ScrollBarButton::PaintButtonContents(gfx::Canvas* canvas) { … }
ui::NativeTheme::ExtraParams ScrollBarButton::GetNativeThemeParams() const { … }
ui::NativeTheme::Part ScrollBarButton::GetNativeThemePart() const { … }
ui::NativeTheme::State ScrollBarButton::GetNativeThemeState() const { … }
void ScrollBarButton::RepeaterNotifyClick() { … }
BEGIN_METADATA(…)
}