Port Views MenuButton Pressed Lock Logic to Cocoa BrowserActionButton
Before this change, when the user clicks on the button to dismiss the Extension Popup, the popup would dismiss and destroy. Next, the incoming mouse-up would note that the popup is already gone and show the popup. We want the popup to stay closed if it was dismissed by clicking the action button. The Views Browser doesn't have this problem because MenuButton tracks the last time the locked state was released and suppresses any activation if it occurs too soon. This change simply carries similar logic from Views MenuButton to Cocoa BrowserActionButton. BUG=825866 Change-Id: I089f0ab8658277ae8cbf71e2813e62aeb3c5505f Reviewed-on: https://chromium-review.googlesource.com/991596Reviewed-by:Elly Fong-Jones <ellyjones@chromium.org> Commit-Queue: Robert Liao <robliao@chromium.org> Cr-Commit-Position: refs/heads/master@{#547755}
Showing
Please register or sign in to comment