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

Side by Side Diff: ash/shell.cc

Issue 1992443002: Add Mojo IPC based input-device service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cleanup_ddm
Patch Set: Updated. 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ash/shell.h" 5 #include "ash/shell.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 1091 matching lines...) Expand 10 before | Expand all | Expand 10 after
1102 #if defined(OS_CHROMEOS) 1102 #if defined(OS_CHROMEOS)
1103 // Create the LogoutConfirmationController after the SystemTrayDelegate. 1103 // Create the LogoutConfirmationController after the SystemTrayDelegate.
1104 logout_confirmation_controller_.reset(new LogoutConfirmationController( 1104 logout_confirmation_controller_.reset(new LogoutConfirmationController(
1105 base::Bind(&SystemTrayDelegate::SignOut, 1105 base::Bind(&SystemTrayDelegate::SignOut,
1106 base::Unretained(system_tray_delegate_.get())))); 1106 base::Unretained(system_tray_delegate_.get()))));
1107 1107
1108 // Create TouchTransformerController before 1108 // Create TouchTransformerController before
1109 // WindowTreeHostManager::InitDisplays() 1109 // WindowTreeHostManager::InitDisplays()
1110 // since TouchTransformerController listens on 1110 // since TouchTransformerController listens on
1111 // WindowTreeHostManager::Observer::OnDisplaysInitialized(). 1111 // WindowTreeHostManager::Observer::OnDisplaysInitialized().
1112 touch_transformer_controller_.reset(new TouchTransformerController()); 1112 if (!in_mus_)
1113 touch_transformer_controller_.reset(new TouchTransformerController());
1113 #endif // defined(OS_CHROMEOS) 1114 #endif // defined(OS_CHROMEOS)
1114 1115
1115 keyboard_ui_ = init_params.keyboard_factory.is_null() 1116 keyboard_ui_ = init_params.keyboard_factory.is_null()
1116 ? KeyboardUI::Create() 1117 ? KeyboardUI::Create()
1117 : init_params.keyboard_factory.Run(); 1118 : init_params.keyboard_factory.Run();
1118 1119
1119 window_tree_host_manager_->InitHosts(); 1120 window_tree_host_manager_->InitHosts();
1120 1121
1121 #if defined(OS_CHROMEOS) 1122 #if defined(OS_CHROMEOS)
1122 // Needs to be created after InitDisplays() since it may cause the virtual 1123 // Needs to be created after InitDisplays() since it may cause the virtual
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
1250 1251
1251 void Shell::OnWindowActivated( 1252 void Shell::OnWindowActivated(
1252 aura::client::ActivationChangeObserver::ActivationReason reason, 1253 aura::client::ActivationChangeObserver::ActivationReason reason,
1253 aura::Window* gained_active, 1254 aura::Window* gained_active,
1254 aura::Window* lost_active) { 1255 aura::Window* lost_active) {
1255 if (gained_active) 1256 if (gained_active)
1256 target_root_window_ = gained_active->GetRootWindow(); 1257 target_root_window_ = gained_active->GetRootWindow();
1257 } 1258 }
1258 1259
1259 } // namespace ash 1260 } // namespace ash
OLDNEW
« no previous file with comments | « no previous file | ash/sysui/manifest.json » ('j') | components/mus/input_devices/public/interfaces/input_devices.mojom » ('J')

Powered by Google App Engine
This is Rietveld 408576698