Fix size and position of the virtual keyboard after a screen rotation.
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}
Showing
Please register or sign in to comment