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

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

Issue 685793002: Move all event related devices from ui/events/ to ui/events/devices/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@internal-touchscreens
Patch Set: fix ozone Created 6 years, 1 month 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 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/devices/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/events/input_device_event_observer.h" 10 #include "ui/events/devices/input_device_event_observer.h"
11 #include "ui/gfx/display.h" 11 #include "ui/gfx/display.h"
12 #include "ui/gfx/geometry/point3_f.h" 12 #include "ui/gfx/geometry/point3_f.h"
13 13
14 namespace ui { 14 namespace ui {
15 15
16 namespace { 16 namespace {
17 17
18 bool InputDeviceEquals(const ui::InputDevice& a, const ui::InputDevice& b) { 18 bool InputDeviceEquals(const ui::InputDevice& a, const ui::InputDevice& b) {
19 return a.id == b.id; 19 return a.id == b.id;
20 } 20 }
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 151
152 void DeviceDataManager::AddObserver(InputDeviceEventObserver* observer) { 152 void DeviceDataManager::AddObserver(InputDeviceEventObserver* observer) {
153 observers_.AddObserver(observer); 153 observers_.AddObserver(observer);
154 } 154 }
155 155
156 void DeviceDataManager::RemoveObserver(InputDeviceEventObserver* observer) { 156 void DeviceDataManager::RemoveObserver(InputDeviceEventObserver* observer) {
157 observers_.RemoveObserver(observer); 157 observers_.RemoveObserver(observer);
158 } 158 }
159 159
160 } // namespace ui 160 } // namespace ui
OLDNEW
« no previous file with comments | « ui/events/devices/device_data_manager.h ('k') | ui/events/devices/device_hotplug_event_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698