| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "ui/events/ozone/evdev/event_converter_evdev.h" | |
| 6 | |
| 7 #include "base/files/file_path.h" | |
| 8 #include "base/logging.h" | |
| 9 #include "base/message_loop/message_loop.h" | |
| 10 | |
| 11 namespace ui { | |
| 12 | |
| 13 EventConverterEvdev::EventConverterEvdev(int fd, | |
| 14 const base::FilePath& path, | |
| 15 int id) | |
| 16 : fd_(fd), path_(path), id_(id) { | |
| 17 } | |
| 18 | |
| 19 EventConverterEvdev::~EventConverterEvdev() { | |
| 20 Stop(); | |
| 21 } | |
| 22 | |
| 23 void EventConverterEvdev::Start() { | |
| 24 base::MessageLoopForUI::current()->WatchFileDescriptor( | |
| 25 fd_, true, base::MessagePumpLibevent::WATCH_READ, &controller_, this); | |
| 26 } | |
| 27 | |
| 28 void EventConverterEvdev::Stop() { | |
| 29 controller_.StopWatchingFileDescriptor(); | |
| 30 } | |
| 31 | |
| 32 void EventConverterEvdev::OnFileCanWriteWithoutBlocking(int fd) { | |
| 33 NOTREACHED(); | |
| 34 } | |
| 35 | |
| 36 bool EventConverterEvdev::HasTouchscreen() const { | |
| 37 return false; | |
| 38 } | |
| 39 | |
| 40 gfx::Size EventConverterEvdev::GetTouchscreenSize() const { | |
| 41 NOTREACHED(); | |
| 42 return gfx::Size(); | |
| 43 } | |
| 44 | |
| 45 } // namespace ui | |
| OLD | NEW |