| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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(×tamp); | 165 ValidateEventTimeClock(×tamp); |
| 162 return timestamp; | 166 return timestamp; |
| 163 } | 167 } |
| 164 } // namespace ui | 168 } // namespace ui |
| OLD | NEW |