• shrike's avatar
    [Mac] Update tab close button when user drags outside · 40f734ce
    shrike authored
    When clicking inside a button and dragging the mouse out of the button's
    bounds, a button should update its appearance to show that its action
    will not fire if the user releases the mouse. This cl fixes a problem
    with the tab close button where it would always show the mouse down
    state, even if you clicked and dragged outside of it.
    
    This cl also does a little refactoring, moving common init-time code to
    a commonInit method (like its HoverCloseButton subclass).
    
    R=avi@chromium.org
    BUG=647757
    
    Review-Url: https://codereview.chromium.org/2898343002
    Cr-Commit-Position: refs/heads/master@{#476463}
    40f734ce
hover_button.h 1.62 KB