• ananta's avatar
    Widen the keyboard detection logic on Windows 8 touch devices and detect slate... · 6c49583d
    ananta authored
    Widen the keyboard detection logic on Windows 8 touch devices and detect slate mode to force OSK on.
    
    Changes in this patch as below:-
    
    1. We now check if the device is docked and avoid displaying the OSK in this case.
    
    2. Check the auto rotation state of the device via the
       GetAutoRotationState API. If auto rotation is disabled
       or not supported we can safely assume that a keyboard
       is present on the system.
    
    3. Allow ACPI\* device names in the keyboard device name matching code.
    
    4. Detect if the device is in slate mode, i.e. the keyboard is flipped. We need to display
       the OSK in this case.
    
    BUG=335735
    
    Review URL: https://codereview.chromium.org/988883003
    
    Cr-Commit-Position: refs/heads/master@{#319826}
    6c49583d
win_util.cc 18 KB