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

Unified Diff: ui/views/mus/window_manager_connection.cc

Issue 2058853002: Enable InputDeviceServer/InputDeviceClient in mash. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojo_device
Patch Set: Check for DDM existence. 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 | « ui/views/mus/window_manager_connection.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/mus/window_manager_connection.cc
diff --git a/ui/views/mus/window_manager_connection.cc b/ui/views/mus/window_manager_connection.cc
index f824f55c718ad9059dbc8857a97cacd9a92ffd01..e4f34c0b5d0a6c9d86e58f92ce99885bd051eb27 100644
--- a/ui/views/mus/window_manager_connection.cc
+++ b/ui/views/mus/window_manager_connection.cc
@@ -16,7 +16,6 @@
#include "components/mus/public/interfaces/window_tree.mojom.h"
#include "services/shell/public/cpp/connection.h"
#include "services/shell/public/cpp/connector.h"
-#include "ui/events/devices/device_data_manager.h"
#include "ui/views/mus/clipboard_mus.h"
#include "ui/views/mus/native_widget_mus.h"
#include "ui/views/mus/screen_mus.h"
@@ -104,9 +103,7 @@ void WindowManagerConnection::RemovePointerWatcher(PointerWatcher* watcher) {
WindowManagerConnection::WindowManagerConnection(
shell::Connector* connector,
const shell::Identity& identity)
- : connector_(connector),
- identity_(identity),
- created_device_data_manager_(false) {
+ : connector_(connector), identity_(identity) {
lazy_tls_ptr.Pointer()->Set(this);
client_.reset(new mus::WindowTreeClient(this, nullptr, nullptr));
client_->ConnectViaWindowTreeFactory(connector_);
@@ -118,14 +115,6 @@ WindowManagerConnection::WindowManagerConnection(
clipboard->Init(connector);
ui::Clipboard::SetClipboardForCurrentThread(std::move(clipboard));
- if (!ui::DeviceDataManager::HasInstance()) {
- // TODO(sad): We should have a DeviceDataManager implementation that talks
- // to a mojo service to learn about the input-devices on the system.
- // http://crbug.com/601981
- ui::DeviceDataManager::CreateInstance();
- created_device_data_manager_ = true;
- }
-
ViewsDelegate::GetInstance()->set_native_widget_factory(base::Bind(
&WindowManagerConnection::CreateNativeWidgetMus,
base::Unretained(this),
@@ -137,8 +126,6 @@ WindowManagerConnection::~WindowManagerConnection() {
// we are still valid.
client_.reset();
ui::Clipboard::DestroyClipboardForCurrentThread();
- if (created_device_data_manager_)
- ui::DeviceDataManager::DeleteInstance();
lazy_tls_ptr.Pointer()->Set(nullptr);
if (ViewsDelegate::GetInstance()) {
« no previous file with comments | « ui/views/mus/window_manager_connection.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698