DescriptionFix 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
Committed: https://crrev.com/0e450495d30494943c2773c108b9234a00272a94
Cr-Commit-Position: refs/heads/master@{#297430}
Patch Set 1 #
Total comments: 5
Patch Set 2 : Fix nits. #Patch Set 3 : #Patch Set 4 : Disable display rotation test on Windows. #
Messages
Total messages: 11 (4 generated)
|