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

Unified Diff: ash/mus/window_manager.cc

Issue 2837893002: Wires up InputDeviceClient for mash/mushrome (Closed)
Patch Set: comment Created 3 years, 8 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/mus/window_manager.cc
diff --git a/ash/mus/window_manager.cc b/ash/mus/window_manager.cc
index b47556ffacea7363bf53d2116f53e4f8955c8373..4372ddf6dd5e413c437144bcaf66f482961fcb28 100644
--- a/ash/mus/window_manager.cc
+++ b/ash/mus/window_manager.cc
@@ -39,6 +39,7 @@
#include "services/service_manager/public/cpp/connector.h"
#include "services/ui/common/accelerator_util.h"
#include "services/ui/common/types.h"
+#include "services/ui/public/cpp/input_devices/input_device_client.h"
#include "services/ui/public/cpp/property_type_converters.h"
#include "services/ui/public/interfaces/constants.mojom.h"
#include "services/ui/public/interfaces/window_manager.mojom.h"
@@ -109,6 +110,11 @@ void WindowManager::Init(
std::unique_ptr<aura::WindowTreeClient> window_tree_client,
const scoped_refptr<base::SequencedWorkerPool>& blocking_pool,
std::unique_ptr<ShellDelegate> shell_delegate) {
+ // Only create InputDeviceClient in MASH mode. For MUS mode WindowManager is
+ // created by chrome, which creates InputDeviceClient.
+ if (config_ == Config::MASH)
+ input_device_client_ = base::MakeUnique<ui::InputDeviceClient>();
+
blocking_pool_ = blocking_pool;
DCHECK(window_manager_client_);
DCHECK(!window_tree_client_);

Powered by Google App Engine
This is Rietveld 408576698