Commit 6c1428b8 authored by Philip Rogers's avatar Philip Rogers Committed by Commit Bot

Add documentation to the cc scrollbar layer classes

Bug: 1058834
Change-Id: I9fbb4ad17f40860e7864cc01693bfc0bb911a3c6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2099342Reviewed-by: default avatarXianzhu Wang <wangxianzhu@chromium.org>
Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#749400}
parent ebbf927e
...@@ -14,7 +14,9 @@ ...@@ -14,7 +14,9 @@
namespace cc { namespace cc {
// For composited overlay scrollbars with nine-patch thumb. For overlay // For composited overlay scrollbars with nine-patch thumb. For overlay
// scrollbars whose thumb is not nine-patch, use PaintedScrollbarLayer. // scrollbars whose thumb is not nine-patch, use PaintedScrollbarLayer or
// SolidColorScrollbarLayer. In practice, this is used for non-custom
// overlay scrollbars on Win/Linux.
class CC_EXPORT PaintedOverlayScrollbarLayer : public ScrollbarLayerBase { class CC_EXPORT PaintedOverlayScrollbarLayer : public ScrollbarLayerBase {
public: public:
std::unique_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) override; std::unique_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) override;
......
...@@ -13,6 +13,10 @@ ...@@ -13,6 +13,10 @@
namespace cc { namespace cc {
// Generic scrollbar layer for cases not covered by PaintedOverlayScrollbarLayer
// or SolidColorScrollbarLayer. This is not used for CSS-styled scrollbars. In
// practice, this is used for overlay and non-overlay scrollbars on MacOS, as
// well as non-overlay scrollbars on Win/Linux.
class CC_EXPORT PaintedScrollbarLayer : public ScrollbarLayerBase { class CC_EXPORT PaintedScrollbarLayer : public ScrollbarLayerBase {
public: public:
std::unique_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) override; std::unique_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) override;
......
...@@ -11,6 +11,8 @@ ...@@ -11,6 +11,8 @@
namespace cc { namespace cc {
// A solid color scrollbar that can be fully drawn on the impl thread. In
// practice, this is used for overlay scrollbars on Android.
class CC_EXPORT SolidColorScrollbarLayer : public ScrollbarLayerBase { class CC_EXPORT SolidColorScrollbarLayer : public ScrollbarLayerBase {
public: public:
std::unique_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) override; std::unique_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) override;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment