ash: Start pre-shutdown animation if long press power button
when menu is already shown. - Don't dismiss the menu if pressing power button when menu is already shown. Wait for 650ms to start the pre-shutdown animation and request focus for 'power off' item instead. - Turn screen off for convertible device / in tablet mode if "ModeSpecificPowerButton" is set when menu is not fully shown or second press before starting the pre-shutdown animation. Test=PowerButtonControllerTest* Bug: 826057 Change-Id: I1f906e2bcf5d91960180742bf558c00784fbaa1e Reviewed-on: https://chromium-review.googlesource.com/1011590 Commit-Queue: Min Chen <minch@chromium.org> Reviewed-by:Qiang Xu <warx@google.com> Reviewed-by:
Dan Erat <derat@chromium.org> Cr-Commit-Position: refs/heads/master@{#550785}
Showing
Please register or sign in to comment