• Qiang Xu's avatar
    cros: remove TabletPowerButtonController::ShouldHandlePowerButtonEvents · a2195917
    Qiang Xu authored
    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: default avatarDan Erat <derat@chromium.org>
    Commit-Queue: Qiang(Joe) Xu <warx@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#506942}
    a2195917
power_button_controller.cc 9.54 KB