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

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

Issue 2805793002: ozone: evdev: Add gamepad support (Closed)
Patch Set: Created 3 years, 8 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 } 96 }
97 97
98 bool EventConverterEvdev::HasTouchscreen() const { 98 bool EventConverterEvdev::HasTouchscreen() const {
99 return false; 99 return false;
100 } 100 }
101 101
102 bool EventConverterEvdev::HasPen() const { 102 bool EventConverterEvdev::HasPen() const {
103 return false; 103 return false;
104 } 104 }
105 105
106 bool EventConverterEvdev::HasGamepad() const {
107 return false;
108 }
109
106 bool EventConverterEvdev::HasCapsLockLed() const { 110 bool EventConverterEvdev::HasCapsLockLed() const {
107 return false; 111 return false;
108 } 112 }
109 113
110 gfx::Size EventConverterEvdev::GetTouchscreenSize() const { 114 gfx::Size EventConverterEvdev::GetTouchscreenSize() const {
111 NOTREACHED(); 115 NOTREACHED();
112 return gfx::Size(); 116 return gfx::Size();
113 } 117 }
114 118
115 int EventConverterEvdev::GetTouchPoints() const { 119 int EventConverterEvdev::GetTouchPoints() const {
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 161
158 base::TimeTicks EventConverterEvdev::TimeTicksFromInputEvent( 162 base::TimeTicks EventConverterEvdev::TimeTicksFromInputEvent(
159 const input_event& event) { 163 const input_event& event) {
160 base::TimeTicks timestamp = 164 base::TimeTicks timestamp =
161 ui::EventTimeStampFromSeconds(event.time.tv_sec) + 165 ui::EventTimeStampFromSeconds(event.time.tv_sec) +
162 base::TimeDelta::FromMicroseconds(event.time.tv_usec); 166 base::TimeDelta::FromMicroseconds(event.time.tv_usec);
163 ValidateEventTimeClock(&timestamp); 167 ValidateEventTimeClock(&timestamp);
164 return timestamp; 168 return timestamp;
165 } 169 }
166 } // namespace ui 170 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698