• Peter Boström's avatar
    Use FocusRing RoundRects to match toolbar inkdrops · 38410b62
    Peter Boström authored
    Creates a SkPath that matches the inkdrop shape and use that as the
    focus ring.
    
    In the future, hopefully the inkdrop shape can be generated from the
    same path so that they are forced to stay in sync. For now though they
    are less separate as the focus ring shape is generated using the same
    insets as the inkdrop.
    
    This focus ring is installed for ToolbarButton, BrowserAppMenuButton and
    ToolbarActionView (all are visibly toolbar buttons).
    
    Bug: chromium:862925
    Change-Id: I898d2d9c6a9e058e9f84aff37615ebf3ab41cee7
    Reviewed-on: https://chromium-review.googlesource.com/1139221Reviewed-by: default avatarElly Fong-Jones <ellyjones@chromium.org>
    Commit-Queue: Peter Boström <pbos@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#575653}
    38410b62
toolbar_action_view.cc 14.3 KB