| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef UI_EVENTS_OZONE_EVDEV_SCOPED_INPUT_DEVICE_H_ |
| 6 #define UI_EVENTS_OZONE_EVDEV_SCOPED_INPUT_DEVICE_H_ |
| 7 |
| 8 #include "base/scoped_generic.h" |
| 9 |
| 10 namespace ui { |
| 11 namespace internal { |
| 12 |
| 13 struct ScopedInputDeviceCloseTraits { |
| 14 static int InvalidValue() { return -1; } |
| 15 static void Free(int fd); |
| 16 }; |
| 17 |
| 18 } // namespace internal |
| 19 |
| 20 typedef base::ScopedGeneric<int, internal::ScopedInputDeviceCloseTraits> |
| 21 ScopedInputDevice; |
| 22 |
| 23 } // namespace ui |
| 24 |
| 25 #endif // UI_EVENTS_OZONE_EVDEV_SCOPED_INPUT_DEVICE_H_ |
| OLD | NEW |