summaryrefslogtreecommitdiffstats
path: root/ash/root_window_controller.cc
diff options
context:
space:
mode:
authordmazzoni@google.com <dmazzoni@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-11 16:44:31 +0000
committerdmazzoni@google.com <dmazzoni@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-11 16:44:31 +0000
commit681c568bdde24a8d438b6bb8b1cca07fba87ed6f (patch)
treea71f0e0fb9b660d5f752d395f0aefdc103b8b924 /ash/root_window_controller.cc
parentb699f733749d7db6dfc3225776806733f2c2c9b5 (diff)
downloadchromium_src-681c568bdde24a8d438b6bb8b1cca07fba87ed6f.zip
chromium_src-681c568bdde24a8d438b6bb8b1cca07fba87ed6f.tar.gz
chromium_src-681c568bdde24a8d438b6bb8b1cca07fba87ed6f.tar.bz2
Revert 193662 "Control visibility of the virtual keyboard."
> Control visibility of the virtual keyboard. > > Add an observer to InputMethod. This makes the InputMethod the gatherer of text input state changes, which are then distributed to interested parties. > > The KeyboardController becomes an InputMethod::Observer, and shows/hides the keyboard as appropriate. > > BUG=227128 > > Review URL: https://chromiumcodereview.appspot.com/13207003 TBR=bryeung@chromium.org git-svn-id: svn://svn.chromium.org/chrome/trunk/src@193666 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/root_window_controller.cc')
-rw-r--r--ash/root_window_controller.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/ash/root_window_controller.cc b/ash/root_window_controller.cc
index a975fa8..394922f 100644
--- a/ash/root_window_controller.cc
+++ b/ash/root_window_controller.cc
@@ -293,6 +293,8 @@ void RootWindowController::InitForPrimaryDisplay() {
if (Shell::GetInstance()->delegate()->IsUserLoggedIn())
shelf_->CreateLauncher();
+ // TODO(bryeung): Move this to CreateContainersInRootWindow when the
+ // keyboard controller will take care of deferring creation of the keyboard.
InitKeyboard();
}
@@ -511,6 +513,9 @@ void RootWindowController::InitKeyboard() {
aura::Window* keyboard_container =
keyboard_controller_->GetContainerWindow();
parent->AddChild(keyboard_container);
+ // TODO(bryeung): move this to the controller on visibility changed
+ parent->StackChildAtTop(keyboard_container);
+ keyboard_container->Show();
}
}