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

Side by Side Diff: ui/events/device_data_manager.cc

Issue 336863002: Moving input device hotplug event processing outside of ui/display (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "ui/events/device_data_manager.h" 5 #include "ui/events/device_data_manager.h"
6 6
7 #include "base/at_exit.h" 7 #include "base/at_exit.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "ui/gfx/display.h" 10 #include "ui/gfx/display.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 *y = point.y(); 69 *y = point.y();
70 } 70 }
71 } 71 }
72 72
73 int64_t DeviceDataManager::GetDisplayForTouchDevice(int touch_device_id) const { 73 int64_t DeviceDataManager::GetDisplayForTouchDevice(int touch_device_id) const {
74 if (IsTouchDeviceIdValid(touch_device_id)) 74 if (IsTouchDeviceIdValid(touch_device_id))
75 return touch_device_to_display_map_[touch_device_id]; 75 return touch_device_to_display_map_[touch_device_id];
76 return gfx::Display::kInvalidDisplayID; 76 return gfx::Display::kInvalidDisplayID;
77 } 77 }
78 78
79 std::vector<TouchscreenDevice> DeviceDataManager::GetTouchscreenDevices() {
80 return std::vector<TouchscreenDevice>();
81 }
82
83 void DeviceDataManager::AddObserver(InputDeviceEventObserver* observer) {
84 observers_.AddObserver(observer);
85 }
86
87 void DeviceDataManager::RemoveObserver(InputDeviceEventObserver* observer) {
88 observers_.RemoveObserver(observer);
89 }
90
79 } // namespace ui 91 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698