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

Unified Diff: ash/wm/lock_layout_manager_unittest.cc

Issue 1392713002: Extract content dependency from keyboard code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 2 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
Index: ash/wm/lock_layout_manager_unittest.cc
diff --git a/ash/wm/lock_layout_manager_unittest.cc b/ash/wm/lock_layout_manager_unittest.cc
index a210a9b6b54d9f41e149a4cead035668bae4e8f3..3f5ab9fcae6014b72bc531719b3e1a2c08638269 100644
--- a/ash/wm/lock_layout_manager_unittest.cc
+++ b/ash/wm/lock_layout_manager_unittest.cc
@@ -15,8 +15,8 @@
#include "ui/aura/window.h"
#include "ui/gfx/screen.h"
#include "ui/keyboard/keyboard_controller.h"
-#include "ui/keyboard/keyboard_controller_proxy.h"
#include "ui/keyboard/keyboard_switches.h"
+#include "ui/keyboard/keyboard_ui.h"
#include "ui/keyboard/keyboard_util.h"
#include "ui/views/widget/widget.h"
#include "ui/views/widget/widget_delegate.h"
@@ -91,8 +91,8 @@ class LockLayoutManagerTest : public AshTestBase {
if (show) {
keyboard->ShowKeyboard(true);
- if (keyboard->proxy()->GetKeyboardWindow()->bounds().height() == 0) {
- keyboard->proxy()->GetKeyboardWindow()->SetBounds(
+ if (keyboard->ui()->GetKeyboardWindow()->bounds().height() == 0) {
+ keyboard->ui()->GetKeyboardWindow()->SetBounds(
keyboard::FullWidthKeyboardBoundsFromRootBounds(
Shell::GetPrimaryRootWindow()->bounds(),
kVirtualKeyboardHeight));
@@ -231,8 +231,9 @@ TEST_F(LockLayoutManagerTest, KeyboardBounds) {
primary_display = Shell::GetScreen()->GetPrimaryDisplay();
screen_bounds = primary_display.bounds();
gfx::Rect target_bounds(screen_bounds);
- target_bounds.set_height(target_bounds.height() -
- keyboard->proxy()->GetKeyboardWindow()->bounds().height());
+ target_bounds.set_height(
+ target_bounds.height() -
+ keyboard->ui()->GetKeyboardWindow()->bounds().height());
EXPECT_EQ(target_bounds.ToString(), window->GetBoundsInScreen().ToString());
ShowKeyboard(false);
« no previous file with comments | « ash/wm/always_on_top_controller_unittest.cc ('k') | ash/wm/system_modal_container_layout_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698