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

Side by Side Diff: ui/events/ozone/evdev/event_converter_evdev_impl.cc

Issue 2695593009: Use the location where FileDescriptorWatcher is created to track the libevent handlers (Closed)
Patch Set: fix mac. Created 3 years, 10 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
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/evdev/event_converter_evdev_impl.h" 5 #include "ui/events/ozone/evdev/event_converter_evdev_impl.h"
6 6
7 #include <errno.h> 7 #include <errno.h>
8 #include <linux/input.h> 8 #include <linux/input.h>
9 #include <stddef.h> 9 #include <stddef.h>
10 10
(...skipping 30 matching lines...) Expand all
41 path, 41 path,
42 id, 42 id,
43 devinfo.device_type(), 43 devinfo.device_type(),
44 devinfo.name(), 44 devinfo.name(),
45 devinfo.vendor_id(), 45 devinfo.vendor_id(),
46 devinfo.product_id()), 46 devinfo.product_id()),
47 input_device_fd_(std::move(fd)), 47 input_device_fd_(std::move(fd)),
48 has_keyboard_(devinfo.HasKeyboard()), 48 has_keyboard_(devinfo.HasKeyboard()),
49 has_touchpad_(devinfo.HasTouchpad()), 49 has_touchpad_(devinfo.HasTouchpad()),
50 has_caps_lock_led_(devinfo.HasLedEvent(LED_CAPSL)), 50 has_caps_lock_led_(devinfo.HasLedEvent(LED_CAPSL)),
51 controller_(FROM_HERE),
51 cursor_(cursor), 52 cursor_(cursor),
52 dispatcher_(dispatcher) {} 53 dispatcher_(dispatcher) {}
53 54
54 EventConverterEvdevImpl::~EventConverterEvdevImpl() { 55 EventConverterEvdevImpl::~EventConverterEvdevImpl() {
55 DCHECK(!enabled_); 56 DCHECK(!enabled_);
56 } 57 }
57 58
58 void EventConverterEvdevImpl::OnFileCanReadWithoutBlocking(int fd) { 59 void EventConverterEvdevImpl::OnFileCanReadWithoutBlocking(int fd) {
59 TRACE_EVENT1("evdev", "EventConverterEvdevImpl::OnFileCanReadWithoutBlocking", 60 TRACE_EVENT1("evdev", "EventConverterEvdevImpl::OnFileCanReadWithoutBlocking",
60 "fd", fd); 61 "fd", fd);
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 dispatcher_->DispatchMouseMoveEvent( 252 dispatcher_->DispatchMouseMoveEvent(
252 MouseMoveEventParams(input_device_.id, EF_NONE, cursor_->GetLocation(), 253 MouseMoveEventParams(input_device_.id, EF_NONE, cursor_->GetLocation(),
253 PointerDetails(EventPointerType::POINTER_TYPE_MOUSE), 254 PointerDetails(EventPointerType::POINTER_TYPE_MOUSE),
254 TimeTicksFromInputEvent(input))); 255 TimeTicksFromInputEvent(input)));
255 256
256 x_offset_ = 0; 257 x_offset_ = 0;
257 y_offset_ = 0; 258 y_offset_ = 0;
258 } 259 }
259 260
260 } // namespace ui 261 } // namespace ui
OLDNEW
« no previous file with comments | « ui/events/ozone/evdev/event_converter_evdev.cc ('k') | ui/events/ozone/evdev/tablet_event_converter_evdev.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698