• kevers's avatar
    Fix size and position of the virtual keyboard after a screen rotation. · 0e450495
    kevers authored
    This regression was introduced by commit #295268, which fixed the z-order of the virtual keyboards with respect to context menus.  That change pushed the virtual keyboard container deeper in the window hierarchy such that it no longer receives size change notifications after a screen rotation.
    
    This patch introduces a custom layout manager on the virtual keyboard parent container to propagate the size change.  The virtual keyboard container is created or destroyed as the feature is enabled or disabled.  The parent container serves as a placeholder in the proper z-order.  The window hierarchy is: root -> lock screen related container -> VK parent container -> VK container -> VK.
    
    BUG=417612
    TEST=VirtualKeyboardRootWindowControllerTest.DisplayRotation
    
    Review URL: https://codereview.chromium.org/617553002
    
    Cr-Commit-Position: refs/heads/master@{#297430}
    0e450495
virtual_keyboard_container_layout_manager.cc 1.55 KB