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

Unified Diff: ui/events/event.cc

Issue 191223007: Move touch CTM from X into Chrome (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: move the logic of if a touch event should be dispatched to a root window into CanDispatchEvent() Created 6 years, 8 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
Index: ui/events/event.cc
diff --git a/ui/events/event.cc b/ui/events/event.cc
index 13526d9e7326871dcfd5da77d23f0ca1d33a8884..8a503910f3baacb341a5f61831b2d23c3f16ed25 100644
--- a/ui/events/event.cc
+++ b/ui/events/event.cc
@@ -465,11 +465,6 @@ TouchEvent::~TouchEvent() {
ClearTouchIdIfReleased(native_event());
}
-void TouchEvent::Relocate(const gfx::Point& origin) {
- location_ -= origin.OffsetFromOrigin();
- root_location_ -= origin.OffsetFromOrigin();
-}
-
void TouchEvent::UpdateForRootTransform(
const gfx::Transform& inverted_root_transform) {
LocatedEvent::UpdateForRootTransform(inverted_root_transform);

Powered by Google App Engine
This is Rietveld 408576698