cros: remove TabletPowerButtonController::ShouldHandlePowerButtonEvents
changes: (1) Since |tablet_controller_| is created OnAccelerometerUpdate, itself is enough to represent ShouldHandlePowerButtonEvents(). (2) Remove IsTabletModeSupported() in PowerButtonDisplayController. It is used on stylus removed. Nowadays, stylus is configured on convertible only. Even for clamshell device with stylus, SetDisplayForcedOff(false) should be OK since it will be a no-op because of early return. TEST=covered by tests Bug: none Change-Id: I0dd883d9bf97e1c24c1b9acd5e1856b630f97fec Reviewed-on: https://chromium-review.googlesource.com/702919Reviewed-by:Dan Erat <derat@chromium.org> Commit-Queue: Qiang(Joe) Xu <warx@chromium.org> Cr-Commit-Position: refs/heads/master@{#506942}
Showing
Please register or sign in to comment