| 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 } | 89 } |
| 90 | 90 |
| 91 bool EventConverterEvdev::HasTouchpad() const { | 91 bool EventConverterEvdev::HasTouchpad() const { |
| 92 return false; | 92 return false; |
| 93 } | 93 } |
| 94 | 94 |
| 95 bool EventConverterEvdev::HasTouchscreen() const { | 95 bool EventConverterEvdev::HasTouchscreen() const { |
| 96 return false; | 96 return false; |
| 97 } | 97 } |
| 98 | 98 |
| 99 bool EventConverterEvdev::HasPen() const { |
| 100 return false; |
| 101 } |
| 102 |
| 99 bool EventConverterEvdev::HasCapsLockLed() const { | 103 bool EventConverterEvdev::HasCapsLockLed() const { |
| 100 return false; | 104 return false; |
| 101 } | 105 } |
| 102 | 106 |
| 103 gfx::Size EventConverterEvdev::GetTouchscreenSize() const { | 107 gfx::Size EventConverterEvdev::GetTouchscreenSize() const { |
| 104 NOTREACHED(); | 108 NOTREACHED(); |
| 105 return gfx::Size(); | 109 return gfx::Size(); |
| 106 } | 110 } |
| 107 | 111 |
| 108 int EventConverterEvdev::GetTouchPoints() const { | 112 int EventConverterEvdev::GetTouchPoints() const { |
| (...skipping 29 matching lines...) Expand all Loading... |
| 138 Stop(); | 142 Stop(); |
| 139 } else if (written != sizeof(events)) { | 143 } else if (written != sizeof(events)) { |
| 140 LOG(ERROR) << "short write setting leds for " << path_.value(); | 144 LOG(ERROR) << "short write setting leds for " << path_.value(); |
| 141 Stop(); | 145 Stop(); |
| 142 } | 146 } |
| 143 } | 147 } |
| 144 | 148 |
| 145 void EventConverterEvdev::SetTouchEventLoggingEnabled(bool enabled) { | 149 void EventConverterEvdev::SetTouchEventLoggingEnabled(bool enabled) { |
| 146 } | 150 } |
| 147 | 151 |
| 152 void EventConverterEvdev::SetPalmSuppressionCallback( |
| 153 const base::Callback<void(bool)>& callback) {} |
| 154 |
| 148 base::TimeTicks EventConverterEvdev::TimeTicksFromInputEvent( | 155 base::TimeTicks EventConverterEvdev::TimeTicksFromInputEvent( |
| 149 const input_event& event) { | 156 const input_event& event) { |
| 150 return ui::EventTimeStampFromSeconds(event.time.tv_sec) + | 157 return ui::EventTimeStampFromSeconds(event.time.tv_sec) + |
| 151 base::TimeDelta::FromMicroseconds(event.time.tv_usec); | 158 base::TimeDelta::FromMicroseconds(event.time.tv_usec); |
| 152 } | 159 } |
| 153 } // namespace ui | 160 } // namespace ui |
| OLD | NEW |