OLD | NEW |
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/ozone/device/udev/device_manager_udev.h" | 5 #include "ui/events/ozone/device/udev/device_manager_udev.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
| 11 #include "base/message_loop/message_loop.h" |
11 #include "base/strings/stringprintf.h" | 12 #include "base/strings/stringprintf.h" |
12 #include "base/trace_event/trace_event.h" | 13 #include "base/trace_event/trace_event.h" |
13 #include "ui/events/ozone/device/device_event.h" | 14 #include "ui/events/ozone/device/device_event.h" |
14 #include "ui/events/ozone/device/device_event_observer.h" | 15 #include "ui/events/ozone/device/device_event_observer.h" |
15 | 16 |
16 namespace ui { | 17 namespace ui { |
17 | 18 |
18 namespace { | 19 namespace { |
19 | 20 |
20 const char* const kSubsystems[] = { | 21 const char* const kSubsystems[] = { |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 else if (!strcmp(action, "change")) | 185 else if (!strcmp(action, "change")) |
185 action_type = DeviceEvent::CHANGE; | 186 action_type = DeviceEvent::CHANGE; |
186 else | 187 else |
187 return nullptr; | 188 return nullptr; |
188 | 189 |
189 return base::MakeUnique<DeviceEvent>(device_type, action_type, | 190 return base::MakeUnique<DeviceEvent>(device_type, action_type, |
190 base::FilePath(path)); | 191 base::FilePath(path)); |
191 } | 192 } |
192 | 193 |
193 } // namespace ui | 194 } // namespace ui |
OLD | NEW |