ash: Position power button menu next to power button.
doc: go/add-power-button-location changes in this cl: - Add a switch kAshPowerButtonPosition with value to store the related power button position info that read at ChromeOS side. - Parse the value of the switch in PowerButtonController. - Get the menu bounds origins in different screen orientations according to the position info in PowerButtonMenuScreenView. This will help to set the bounds of the menu in each screen orientation. - Get the menu animation direction and transform distance according to the position info in PowerButtonMenuView. We need to minus the animation transform when setting the bounds of the menu before showing the menu. - Add PowerButtonControllerWithPositionTest*. Bug: 818331 Change-Id: I0a1191072b85db59ed2d1d20e5ce25266a357e95 Reviewed-on: https://chromium-review.googlesource.com/963644 Commit-Queue: min c <minch@chromium.org> Reviewed-by:Dan Erat <derat@chromium.org> Reviewed-by:
Qiang Xu <warx@google.com> Cr-Commit-Position: refs/heads/master@{#545130}
Showing
This diff is collapsed.
Please register or sign in to comment