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

Side by Side Diff: ui/events/ozone/evdev/scoped_input_device.h

Issue 2639043002: Fix double-close in EventConverterEvdevImpl (Closed)
Patch Set: remove base::debug::Alias Created 3 years, 11 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
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698