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

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

Issue 851853002: It is time. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Trying to reup because the last upload failed. Created 5 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 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
OLDNEW
« no previous file with comments | « ui/events/ozone/evdev/event_converter_evdev.h ('k') | ui/events/ozone/evdev/event_device_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698