#include "cc/layers/solid_color_scrollbar_layer_impl.h"
#include <algorithm>
#include <memory>
#include "base/memory/ptr_util.h"
#include "cc/trees/occlusion.h"
#include "components/viz/common/quads/solid_color_draw_quad.h"
namespace cc {
std::unique_ptr<SolidColorScrollbarLayerImpl>
SolidColorScrollbarLayerImpl::Create(LayerTreeImpl* tree_impl,
int id,
ScrollbarOrientation orientation,
int thumb_thickness,
int track_start,
bool is_left_side_vertical_scrollbar) { … }
SolidColorScrollbarLayerImpl::~SolidColorScrollbarLayerImpl() = default;
mojom::LayerType SolidColorScrollbarLayerImpl::GetLayerType() const { … }
std::unique_ptr<LayerImpl> SolidColorScrollbarLayerImpl::CreateLayerImpl(
LayerTreeImpl* tree_impl) const { … }
SolidColorScrollbarLayerImpl::SolidColorScrollbarLayerImpl(
LayerTreeImpl* tree_impl,
int id,
ScrollbarOrientation orientation,
int thumb_thickness,
int track_start,
bool is_left_side_vertical_scrollbar)
: … { … }
void SolidColorScrollbarLayerImpl::PushPropertiesTo(LayerImpl* layer) { … }
int SolidColorScrollbarLayerImpl::ThumbThickness() const { … }
int SolidColorScrollbarLayerImpl::ThumbLength() const { … }
float SolidColorScrollbarLayerImpl::TrackLength() const { … }
int SolidColorScrollbarLayerImpl::TrackStart() const { … }
bool SolidColorScrollbarLayerImpl::IsThumbResizable() const { … }
void SolidColorScrollbarLayerImpl::AppendQuads(
viz::CompositorRenderPass* render_pass,
AppendQuadsData* append_quads_data) { … }
}