• Peter Kasting's avatar
    Use LayoutManager for OverlayScrollBar. · e17bd787
    Peter Kasting authored
    As with ScrollBarViews, this can just size the thumb extra-large and rely on
    ScrollBar::Update() to do the real sizing.  To facilitate this, override
    GetInsets() to convert GetContentsBounds() into the same thing as
    GetTrackBounds(), then use a FillLayout.
    
    Also reorders functions to match superclass order and access level.
    
    Bug: 1005568
    Change-Id: Iad7fed5501adcf301ac66f9390c2545a6e00c827
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1824028
    Commit-Queue: Peter Kasting <pkasting@chromium.org>
    Commit-Queue: Robert Liao <robliao@chromium.org>
    Auto-Submit: Peter Kasting <pkasting@chromium.org>
    Reviewed-by: default avatarRobert Liao <robliao@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#699584}
    e17bd787
overlay_scroll_bar.h 1.86 KB