#include "cc/layers/nine_patch_thumb_scrollbar_layer_impl.h"
#include <memory>
#include <vector>
#include "base/memory/ptr_util.h"
#include "cc/trees/layer_tree_impl.h"
#include "components/viz/common/quads/solid_color_draw_quad.h"
#include "components/viz/common/quads/texture_draw_quad.h"
namespace cc {
std::unique_ptr<NinePatchThumbScrollbarLayerImpl>
NinePatchThumbScrollbarLayerImpl::Create(LayerTreeImpl* tree_impl,
int id,
ScrollbarOrientation orientation,
bool is_left_side_vertical_scrollbar) { … }
NinePatchThumbScrollbarLayerImpl::NinePatchThumbScrollbarLayerImpl(
LayerTreeImpl* tree_impl,
int id,
ScrollbarOrientation orientation,
bool is_left_side_vertical_scrollbar)
: … { … }
NinePatchThumbScrollbarLayerImpl::~NinePatchThumbScrollbarLayerImpl() = default;
mojom::LayerType NinePatchThumbScrollbarLayerImpl::GetLayerType() const { … }
std::unique_ptr<LayerImpl> NinePatchThumbScrollbarLayerImpl::CreateLayerImpl(
LayerTreeImpl* tree_impl) const { … }
void NinePatchThumbScrollbarLayerImpl::PushPropertiesTo(LayerImpl* layer) { … }
bool NinePatchThumbScrollbarLayerImpl::WillDraw(
DrawMode draw_mode,
viz::ClientResourceProvider* resource_provider) { … }
void NinePatchThumbScrollbarLayerImpl::AppendQuads(
viz::CompositorRenderPass* render_pass,
AppendQuadsData* append_quads_data) { … }
void NinePatchThumbScrollbarLayerImpl::AppendThumbQuads(
viz::CompositorRenderPass* render_pass,
AppendQuadsData* append_quads_data,
viz::SharedQuadState* shared_quad_state) { … }
void NinePatchThumbScrollbarLayerImpl::AppendTrackAndButtonsQuads(
viz::CompositorRenderPass* render_pass,
AppendQuadsData* append_quads_data,
viz::SharedQuadState* shared_quad_state) { … }
void NinePatchThumbScrollbarLayerImpl::SetThumbThickness(int thumb_thickness) { … }
int NinePatchThumbScrollbarLayerImpl::ThumbThickness() const { … }
void NinePatchThumbScrollbarLayerImpl::SetThumbLength(int thumb_length) { … }
int NinePatchThumbScrollbarLayerImpl::ThumbLength() const { … }
void NinePatchThumbScrollbarLayerImpl::SetTrackStart(int track_start) { … }
int NinePatchThumbScrollbarLayerImpl::TrackStart() const { … }
void NinePatchThumbScrollbarLayerImpl::SetTrackLength(int track_length) { … }
void NinePatchThumbScrollbarLayerImpl::SetImageBounds(const gfx::Size& bounds) { … }
void NinePatchThumbScrollbarLayerImpl::SetAperture(const gfx::Rect& aperture) { … }
float NinePatchThumbScrollbarLayerImpl::TrackLength() const { … }
bool NinePatchThumbScrollbarLayerImpl::IsThumbResizable() const { … }
}