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

Unified Diff: ash/shell.cc

Issue 2103053004: mash: Convert virtual keyboard system tray item to wm common types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 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/shell.h ('k') | ash/system/chromeos/virtual_keyboard/virtual_keyboard_tray.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shell.cc
diff --git a/ash/shell.cc b/ash/shell.cc
index 3133f2b2e0cbf60a50b49bacffd3dfeecfdb020b..8d57eb98b73a7304ed4cff300e8abd5c29e883ba 100644
--- a/ash/shell.cc
+++ b/ash/shell.cc
@@ -438,7 +438,8 @@ void Shell::CreateKeyboard() {
}
void Shell::DeactivateKeyboard() {
- keyboard_ui_->Hide();
+ // TODO(jamescook): Move keyboard create and hide into WmShell.
+ wm_shell_->keyboard_ui()->Hide();
if (in_mus_)
return;
if (keyboard::KeyboardController::GetInstance()) {
@@ -1052,9 +1053,9 @@ void Shell::Init(const ShellInitParams& init_params) {
touch_transformer_controller_.reset(new TouchTransformerController());
#endif // defined(OS_CHROMEOS)
- keyboard_ui_ = init_params.keyboard_factory.is_null()
- ? KeyboardUI::Create()
- : init_params.keyboard_factory.Run();
+ wm_shell_->SetKeyboardUI(init_params.keyboard_factory.is_null()
+ ? KeyboardUI::Create()
+ : init_params.keyboard_factory.Run());
window_tree_host_manager_->InitHosts();
« no previous file with comments | « ash/shell.h ('k') | ash/system/chromeos/virtual_keyboard/virtual_keyboard_tray.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698