• Peter Boström's avatar
    Use highlight path for DownloadItemView · 0e982e20
    Peter Boström authored
    Moves color derivation to GetInkDropBaseColor() and removes ripple and
    highlight overrides. This change also makes use of the newer FocusRing
    class instead of using a FocusableBorder. FocusRing automatically
    follows the highlight path and has a more consistent style with the rest
    of the UI.
    
    This change also removes an override of AddInkDropLayer which clipped
    the layer to the view bounds. This is not required for this ink drop as
    it only paints within the highlight path which is within the view
    bounds.
    
    Bug: chromium:888204
    Change-Id: I7b388f1fe52aea6b14c32d27c0f39d5e2cff527e
    Reviewed-on: https://chromium-review.googlesource.com/c/1279289Reviewed-by: default avatarBret Sepulveda <bsep@chromium.org>
    Commit-Queue: Peter Boström <pbos@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#599761}
    0e982e20
download_item_view.cc 41.2 KB