Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(78)

Issue 617553002: Fix size and position of the virtual keyboard after a screen rotation. (Closed)

Created:
6 years, 2 months ago by kevers
Modified:
6 years, 2 months ago
Reviewers:
James Cook
CC:
chromium-reviews, kalyank, sadrul, ben+ash_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

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 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. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+105 lines, -0 lines) Patch
M ash/ash.gyp View 1 chunk +2 lines, -0 lines 0 comments Download
M ash/root_window_controller.cc View 2 chunks +4 lines, -0 lines 0 comments Download
M ash/root_window_controller_unittest.cc View 1 2 3 1 chunk +22 lines, -0 lines 0 comments Download
A ash/wm/virtual_keyboard_container_layout_manager.h View 1 1 chunk +33 lines, -0 lines 0 comments Download
A ash/wm/virtual_keyboard_container_layout_manager.cc View 1 1 chunk +44 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (4 generated)
kevers
Hi James, Can you please take a look at this CL.
6 years, 2 months ago (2014-09-29 20:54:24 UTC) #2
James Cook
LGTM with nits https://codereview.chromium.org/617553002/diff/1/ash/root_window_controller_unittest.cc File ash/root_window_controller_unittest.cc (right): https://codereview.chromium.org/617553002/diff/1/ash/root_window_controller_unittest.cc#newcode956 ash/root_window_controller_unittest.cc:956: ASSERT_EQ("0,0 800x600", keyboard_container->bounds().ToString()); nit: EXPECT_EQ since ...
6 years, 2 months ago (2014-09-29 21:38:00 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/617553002/40001
6 years, 2 months ago (2014-09-30 13:42:04 UTC) #5
commit-bot: I haz the power
Try jobs failed on following builders: win8_chromium_rel on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_rel/builds/15054)
6 years, 2 months ago (2014-09-30 14:58:44 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/617553002/60001
6 years, 2 months ago (2014-09-30 15:23:15 UTC) #9
commit-bot: I haz the power
Committed patchset #4 (id:60001) as 747fa7e146666c212b402871e4c6be1faa339c77
6 years, 2 months ago (2014-09-30 16:02:39 UTC) #10
commit-bot: I haz the power
6 years, 2 months ago (2014-09-30 16:03:17 UTC) #11
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/0e450495d30494943c2773c108b9234a00272a94
Cr-Commit-Position: refs/heads/master@{#297430}

Powered by Google App Engine
This is Rietveld 408576698