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

Unified Diff: chrome/browser/ui/virtual_keyboard/virtual_keyboard_manager.cc

Issue 8375018: aura: Move the keyboard correctly in the proper container. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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
« no previous file with comments | « chrome/browser/ui/views/dom_view.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/virtual_keyboard/virtual_keyboard_manager.cc
diff --git a/chrome/browser/ui/virtual_keyboard/virtual_keyboard_manager.cc b/chrome/browser/ui/virtual_keyboard/virtual_keyboard_manager.cc
index e69f2b8f6c0ff36eafb72abd78921534963f39d4..2844e6b22b183f794fe9c68e98690cddc6663f03 100644
--- a/chrome/browser/ui/virtual_keyboard/virtual_keyboard_manager.cc
+++ b/chrome/browser/ui/virtual_keyboard/virtual_keyboard_manager.cc
@@ -184,11 +184,12 @@ KeyboardWidget::KeyboardWidget()
params.keep_on_top = true;
params.transparent = true;
params.bounds = GetKeyboardPosition(keyboard_height_);
+ Init(params);
#if defined(USE_AURA)
- params.parent = aura_shell::Shell::GetInstance()->GetContainer(
- aura_shell::internal::kShellWindowId_MenusAndTooltipsContainer);
+ aura_shell::Shell::GetInstance()->GetContainer(
+ aura_shell::internal::kShellWindowId_MenusAndTooltipsContainer)->
+ AddChild(GetNativeView());
#endif
- Init(params);
// Setup the DOM view to host the keyboard.
Profile* profile = ProfileManager::GetDefaultProfile();
« no previous file with comments | « chrome/browser/ui/views/dom_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698