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

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

Issue 2805793002: ozone: evdev: Add gamepad support (Closed)
Patch Set: Support Gamepad in Ozone. Created 3 years, 7 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 <errno.h> 5 #include <errno.h>
6 #include <linux/input.h> 6 #include <linux/input.h>
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "ui/events/ozone/evdev/event_converter_evdev.h" 9 #include "ui/events/ozone/evdev/event_converter_evdev.h"
10 10
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 } 94 }
95 95
96 bool EventConverterEvdev::HasTouchscreen() const { 96 bool EventConverterEvdev::HasTouchscreen() const {
97 return false; 97 return false;
98 } 98 }
99 99
100 bool EventConverterEvdev::HasPen() const { 100 bool EventConverterEvdev::HasPen() const {
101 return false; 101 return false;
102 } 102 }
103 103
104 bool EventConverterEvdev::HasGamepad() const {
105 return false;
106 }
107
104 bool EventConverterEvdev::HasCapsLockLed() const { 108 bool EventConverterEvdev::HasCapsLockLed() const {
105 return false; 109 return false;
106 } 110 }
107 111
108 gfx::Size EventConverterEvdev::GetTouchscreenSize() const { 112 gfx::Size EventConverterEvdev::GetTouchscreenSize() const {
109 NOTREACHED(); 113 NOTREACHED();
110 return gfx::Size(); 114 return gfx::Size();
111 } 115 }
112 116
113 int EventConverterEvdev::GetTouchPoints() const { 117 int EventConverterEvdev::GetTouchPoints() const {
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 159
156 base::TimeTicks EventConverterEvdev::TimeTicksFromInputEvent( 160 base::TimeTicks EventConverterEvdev::TimeTicksFromInputEvent(
157 const input_event& event) { 161 const input_event& event) {
158 base::TimeTicks timestamp = 162 base::TimeTicks timestamp =
159 ui::EventTimeStampFromSeconds(event.time.tv_sec) + 163 ui::EventTimeStampFromSeconds(event.time.tv_sec) +
160 base::TimeDelta::FromMicroseconds(event.time.tv_usec); 164 base::TimeDelta::FromMicroseconds(event.time.tv_usec);
161 ValidateEventTimeClock(&timestamp); 165 ValidateEventTimeClock(&timestamp);
162 return timestamp; 166 return timestamp;
163 } 167 }
164 } // namespace ui 168 } // namespace ui
OLDNEW
« no previous file with comments | « ui/events/ozone/evdev/event_converter_evdev.h ('k') | ui/events/ozone/evdev/event_converter_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698