• Joe Downing's avatar
    Restore cursor visibility state after CRD disconnects · 592195c4
    Joe Downing authored
    The core use case being addressed is the case where a user connects
    to a CrOS device in Kiosk mode which is used as signage (no user
    interaction).  In this scenario, the mouse cursor becomes visible when
    we inject mouse input and remains visible after we disconnect.
    
    This change checks the cursor visibility prior to any input injection
    and then hides the cursor when the input injector is torn down.
    
    
    Bug: 1072886
    Change-Id: I7e534ffbb3a078b0f90f5d79bdf2212fb2769f11
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2258780
    Commit-Queue: Joe Downing <joedow@chromium.org>
    Commit-Queue: Jamie Walch <jamiewalch@chromium.org>
    Auto-Submit: Joe Downing <joedow@chromium.org>
    Reviewed-by: default avatarJamie Walch <jamiewalch@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#781399}
    592195c4
input_injector_chromeos.cc 8.19 KB