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

Unified Diff: ui/base/x/valuators.cc

Issue 10868100: x11: Use kernel timestamps for touch events (if available). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/base/x/valuators.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/x/valuators.cc
diff --git a/ui/base/x/valuators.cc b/ui/base/x/valuators.cc
index ed88edc6813648381258e6cd372d1da900068463..2380d8428aaae25777ac257635ff1fc486ab0c56 100644
--- a/ui/base/x/valuators.cc
+++ b/ui/base/x/valuators.cc
@@ -18,6 +18,7 @@ namespace {
#define AXIS_LABEL_ABS_MT_PRESSURE "Abs MT Pressure"
#define AXIS_LABEL_ABS_MT_SLOT_ID "Abs MT Slot ID"
#define AXIS_LABEL_ABS_MT_TRACKING_ID "Abs MT Tracking ID"
+#define AXIS_LABEL_TOUCH_TIMESTAMP "Touch Timestamp"
// Given the Valuator, return the correspoding XIValuatorClassInfo using
// the X device information through Atom name matching.
@@ -47,6 +48,8 @@ XIValuatorClassInfo* FindValuator(Display* display,
#endif
{ ui::ValuatorTracker::VAL_TRACKING_ID,
XInternAtom(ui::GetXDisplay(), AXIS_LABEL_ABS_MT_TRACKING_ID, false) },
+ { ui::ValuatorTracker::VAL_TOUCH_RAW_TIMESTAMP,
+ XInternAtom(ui::GetXDisplay(), AXIS_LABEL_TOUCH_TIMESTAMP, false) },
{ ui::ValuatorTracker::VAL_LAST_ENTRY, None },
};
« no previous file with comments | « ui/base/x/valuators.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698