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

Unified Diff: trunk/src/ui/events/event.cc

Issue 132363004: Revert 243974 "Target touches to the correct display." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 11 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 | « trunk/src/ui/events/event.h ('k') | trunk/src/ui/events/gestures/gesture_point.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/ui/events/event.cc
===================================================================
--- trunk/src/ui/events/event.cc (revision 244019)
+++ trunk/src/ui/events/event.cc (working copy)
@@ -5,7 +5,6 @@
#include "ui/events/event.h"
#if defined(USE_X11)
-#include <X11/extensions/XInput2.h>
#include <X11/Xlib.h>
#endif
@@ -438,8 +437,7 @@
radius_x_(GetTouchRadiusX(native_event)),
radius_y_(GetTouchRadiusY(native_event)),
rotation_angle_(GetTouchAngle(native_event)),
- force_(GetTouchForce(native_event)),
- source_device_id_(-1) {
+ force_(GetTouchForce(native_event)) {
latency()->AddLatencyNumberWithTimestamp(
INPUT_EVENT_LATENCY_ORIGINAL_COMPONENT,
0,
@@ -447,12 +445,6 @@
base::TimeTicks::FromInternalValue(time_stamp().ToInternalValue()),
1,
true);
-
-#if defined(USE_X11)
- XIDeviceEvent* xiev = static_cast<XIDeviceEvent*>(native_event->xcookie.data);
- source_device_id_ = xiev->deviceid;
-#endif
-
latency()->AddLatencyNumber(INPUT_EVENT_LATENCY_UI_COMPONENT, 0, 0);
}
@@ -465,8 +457,7 @@
radius_x_(0.0f),
radius_y_(0.0f),
rotation_angle_(0.0f),
- force_(0.0f),
- source_device_id_(-1) {
+ force_(0.0f) {
latency()->AddLatencyNumber(INPUT_EVENT_LATENCY_UI_COMPONENT, 0, 0);
}
@@ -484,8 +475,7 @@
radius_x_(radius_x),
radius_y_(radius_y),
rotation_angle_(angle),
- force_(force),
- source_device_id_(-1) {
+ force_(force) {
latency()->AddLatencyNumber(INPUT_EVENT_LATENCY_UI_COMPONENT, 0, 0);
}
« no previous file with comments | « trunk/src/ui/events/event.h ('k') | trunk/src/ui/events/gestures/gesture_point.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698