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

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

Issue 2263693003: Add palm suppression feature to EventConverterEvdev (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@stylus
Patch Set: fixed unit tests Created 4 years, 3 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « ui/events/ozone/evdev/event_converter_evdev.h ('k') | ui/events/ozone/evdev/input_device_factory_evdev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698