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

Side by Side Diff: ui/events/ozone/evdev/touch_event_converter_evdev.h

Issue 2507503002: Use touch events to report stylus events (Closed)
Patch Set: I should pay attention... Created 4 years 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 #ifndef UI_EVENTS_OZONE_EVDEV_TOUCH_EVENT_CONVERTER_EVDEV_H_ 5 #ifndef UI_EVENTS_OZONE_EVDEV_TOUCH_EVENT_CONVERTER_EVDEV_H_
6 #define UI_EVENTS_OZONE_EVDEV_TOUCH_EVENT_CONVERTER_EVDEV_H_ 6 #define UI_EVENTS_OZONE_EVDEV_TOUCH_EVENT_CONVERTER_EVDEV_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 void ProcessAbs(const input_event& input); 71 void ProcessAbs(const input_event& input);
72 void ProcessSyn(const input_event& input); 72 void ProcessSyn(const input_event& input);
73 73
74 // Returns an EventType to dispatch for |touch|. Returns ET_UNKNOWN if an 74 // Returns an EventType to dispatch for |touch|. Returns ET_UNKNOWN if an
75 // event should not be dispatched. 75 // event should not be dispatched.
76 EventType GetEventTypeForTouch(const InProgressTouchEvdev& touch); 76 EventType GetEventTypeForTouch(const InProgressTouchEvdev& touch);
77 77
78 void ReportTouchEvent(const InProgressTouchEvdev& event, 78 void ReportTouchEvent(const InProgressTouchEvdev& event,
79 EventType event_type, 79 EventType event_type,
80 base::TimeTicks timestamp); 80 base::TimeTicks timestamp);
81 void ReportStylusEvent(const InProgressTouchEvdev& event,
82 base::TimeTicks timestamp);
83 void ReportButton(unsigned int button,
84 bool down,
85 const InProgressTouchEvdev& event,
86 base::TimeTicks timestamp);
87 void ReportEvents(base::TimeTicks timestamp); 81 void ReportEvents(base::TimeTicks timestamp);
88 82
89 void UpdateTrackingId(int slot, int tracking_id); 83 void UpdateTrackingId(int slot, int tracking_id);
90 void ReleaseTouches(); 84 void ReleaseTouches();
91 void ReleaseButtons(); 85 void ReleaseButtons();
92 // Normalize pressure value to [0, 1]. 86 // Normalize pressure value to [0, 1].
93 float ScalePressure(int32_t value); 87 float ScalePressure(int32_t value);
94 88
95 int NextTrackingId(); 89 int NextTrackingId();
96 90
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 141
148 // Callback to enable/disable palm suppression. 142 // Callback to enable/disable palm suppression.
149 base::Callback<void(bool)> enable_palm_suppression_callback_; 143 base::Callback<void(bool)> enable_palm_suppression_callback_;
150 144
151 DISALLOW_COPY_AND_ASSIGN(TouchEventConverterEvdev); 145 DISALLOW_COPY_AND_ASSIGN(TouchEventConverterEvdev);
152 }; 146 };
153 147
154 } // namespace ui 148 } // namespace ui
155 149
156 #endif // UI_EVENTS_OZONE_EVDEV_TOUCH_EVENT_CONVERTER_EVDEV_H_ 150 #endif // UI_EVENTS_OZONE_EVDEV_TOUCH_EVENT_CONVERTER_EVDEV_H_
OLDNEW
« no previous file with comments | « ui/events/ozone/evdev/touch_evdev_types.h ('k') | ui/events/ozone/evdev/touch_event_converter_evdev.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698