• Antonio Gomes's avatar
    Introduce chromeos::TabletState · 9fed56c6
    Antonio Gomes authored
    chromeos::TabletState is the singleton that actually holds the
    information about the current TabletMode state. The state getter
    method is public, but its setter is not. The idea is that only a
    handful of classes can actually set the state, eg
    ash::TabletModeController.
    
    In the future, Lacros will also be able to create a
    chromeos::TabletState instance and set the tablet mode state
    via the (upcoming) use of `zcr_remote_shell` Exo protocol extension.
    
    BUG=1113900
    R=jamescook@chromium.org
    
    Change-Id: I2ec77e7f038095b7e4f9c776683993f6b30c409e
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2443219
    Commit-Queue: Antonio Gomes (GMT-4) <tonikitoo@igalia.com>
    Reviewed-by: default avatarJames Cook <jamescook@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#813394}
    9fed56c6
tablet_mode_controller.h 19.3 KB