• Ahmed Fakhry's avatar
    Fix caption buttons ink drop highlight issue · 8711c1c8
    Ahmed Fakhry authored
    The ink drop highlight lingers behind when the window and the
    caption buttons are growing as a result of maximizing the window.
    Sometimes it even sticks in the wrong place forever until the mouse
    is moved.
    
    This CL fixes the issue by painting the hover highlight in such
    a way that simulates the AutoHighlightMode::SHOW_ON_RIPPLE mode.
    This guarantees the highlight is always painted at the center of
    button.
    
    BUG=840901
    
    Change-Id: I6096fef6605c262ca81c8526fea029e7dc459179
    Reviewed-on: https://chromium-review.googlesource.com/1053805Reviewed-by: default avatarScott Violet <sky@chromium.org>
    Commit-Queue: Ahmed Fakhry <afakhry@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#557692}
    8711c1c8
frame_caption_button.cc 10.8 KB