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

Unified Diff: ash/wm/always_on_top_controller_unittest.cc

Issue 1008453002: Allow javascript change the virtual keyboard window size and position freely in FLOATING mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: format Created 5 years, 8 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/root_window_controller_unittest.cc ('k') | ash/wm/lock_layout_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/always_on_top_controller_unittest.cc
diff --git a/ash/wm/always_on_top_controller_unittest.cc b/ash/wm/always_on_top_controller_unittest.cc
index 535ed5ff2a6f14744a127e946a14b36368415e08..f2db7e01663e6f7da5b85c096c9e5580bda83932 100644
--- a/ash/wm/always_on_top_controller_unittest.cc
+++ b/ash/wm/always_on_top_controller_unittest.cc
@@ -79,8 +79,8 @@ TEST_F(VirtualKeyboardAlwaysOnTopControllerTest, NotifyKeyboardBoundsChanged) {
keyboard_container->AddChild(keyboard_window);
keyboard_window->set_owned_by_parent(false);
const int kKeyboardHeight = 200;
- gfx::Rect keyboard_bounds = keyboard::KeyboardBoundsFromWindowBounds(
- keyboard_container->bounds(), kKeyboardHeight);
+ gfx::Rect keyboard_bounds = keyboard::FullWidthKeyboardBoundsFromRootBounds(
+ root_window->bounds(), kKeyboardHeight);
keyboard_window->SetBounds(keyboard_bounds);
keyboard_window->Show();
keyboard_controller->NotifyKeyboardBoundsChanging(keyboard_bounds);
« no previous file with comments | « ash/root_window_controller_unittest.cc ('k') | ash/wm/lock_layout_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698