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

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

Issue 611423002: [WIP][Ozone] Support external touchscreens (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ozone-touchscreen
Patch Set: . Created 6 years, 2 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 #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 <bitset> 8 #include <bitset>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 int pressure_max_; // Used to normalize pressure values. 67 int pressure_max_; // Used to normalize pressure values.
68 68
69 // Input range for x-axis. 69 // Input range for x-axis.
70 float x_min_tuxels_; 70 float x_min_tuxels_;
71 float x_num_tuxels_; 71 float x_num_tuxels_;
72 72
73 // Input range for y-axis. 73 // Input range for y-axis.
74 float y_min_tuxels_; 74 float y_min_tuxels_;
75 float y_num_tuxels_; 75 float y_num_tuxels_;
76 76
77 // Output range for x-axis.
78 float x_min_pixels_;
79 float x_num_pixels_;
80
81 // Output range for y-axis.
82 float y_min_pixels_;
83 float y_num_pixels_;
84
85 // Size of the touchscreen as reported by the driver. 77 // Size of the touchscreen as reported by the driver.
86 gfx::Size native_size_; 78 gfx::Size native_size_;
87 79
88 // Touch point currently being updated from the /dev/input/event* stream. 80 // Touch point currently being updated from the /dev/input/event* stream.
89 int current_slot_; 81 int current_slot_;
90 82
91 // Bit field tracking which in-progress touch points have been modified 83 // Bit field tracking which in-progress touch points have been modified
92 // without a syn event. 84 // without a syn event.
93 std::bitset<MAX_FINGERS> altered_slots_; 85 std::bitset<MAX_FINGERS> altered_slots_;
94 86
(...skipping 11 matching lines...) Expand all
106 98
107 // In-progress touch points. 99 // In-progress touch points.
108 InProgressEvents events_[MAX_FINGERS]; 100 InProgressEvents events_[MAX_FINGERS];
109 101
110 DISALLOW_COPY_AND_ASSIGN(TouchEventConverterEvdev); 102 DISALLOW_COPY_AND_ASSIGN(TouchEventConverterEvdev);
111 }; 103 };
112 104
113 } // namespace ui 105 } // namespace ui
114 106
115 #endif // UI_EVENTS_OZONE_EVDEV_TOUCH_EVENT_CONVERTER_EVDEV_H_ 107 #endif // UI_EVENTS_OZONE_EVDEV_TOUCH_EVENT_CONVERTER_EVDEV_H_
OLDNEW
« no previous file with comments | « ash/touch/touch_transformer_controller_x11.cc ('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