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

Unified Diff: ash/wm/workspace/workspace_layout_manager_unittest.cc

Issue 506133002: Fixes moving fully occluded windows when the a11y keyboard shows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@window-resize
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/wm/workspace/workspace_layout_manager.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/workspace/workspace_layout_manager_unittest.cc
diff --git a/ash/wm/workspace/workspace_layout_manager_unittest.cc b/ash/wm/workspace/workspace_layout_manager_unittest.cc
index 9291477308894e3668ef90404d56c0bc3742cd3f..ea7e5df76d3c0b1bebd4a9c4122d717b1b553219 100644
--- a/ash/wm/workspace/workspace_layout_manager_unittest.cc
+++ b/ash/wm/workspace/workspace_layout_manager_unittest.cc
@@ -1139,6 +1139,21 @@ TEST_F(WorkspaceLayoutManagerKeyboardTest, AdjustWindowForA11yKeyboard) {
HideKeyboard();
EXPECT_EQ(small_window_bound.ToString(), window->bounds().ToString());
+ gfx::Rect occluded_window_bounds(50,
+ keyboard_bounds.y() + keyboard_bounds.height()/2, 50,
+ keyboard_bounds.height()/2);
+ window->SetBounds(occluded_window_bounds);
+ EXPECT_EQ(occluded_window_bounds.ToString(),
+ occluded_window_bounds.ToString());
+ ShowKeyboard();
+ EXPECT_EQ(gfx::Rect(50,
+ keyboard_bounds.y() - keyboard_bounds.height()/2,
+ occluded_window_bounds.width(),
+ occluded_window_bounds.height()).ToString(),
+ window->bounds().ToString());
+ HideKeyboard();
+ EXPECT_EQ(occluded_window_bounds.ToString(), window->bounds().ToString());
+
Blur(&text_input_client);
}
« no previous file with comments | « ash/wm/workspace/workspace_layout_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698