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

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: tweak 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
Index: ash/shell.cc
diff --git a/ash/shell.cc b/ash/shell.cc
index 7ca36a929f4c7d1b25204bcb72c67e968dc42b39..0c36f98b96e09a71baad1798e9373dfa537bfd4b 100644
--- a/ash/shell.cc
+++ b/ash/shell.cc
@@ -440,7 +440,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()) {
@@ -1069,9 +1070,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();

Powered by Google App Engine
This is Rietveld 408576698