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

Unified Diff: sky/engine/platform/PlatformGestureEvent.h

Issue 774053003: Remove TouchAdjustment. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/engine/core/page/TouchAdjustment.cpp ('k') | sky/engine/public/web/WebSettings.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/platform/PlatformGestureEvent.h
diff --git a/sky/engine/platform/PlatformGestureEvent.h b/sky/engine/platform/PlatformGestureEvent.h
index e3e042fd3e0f2e79fd02a60c5b2d766bef606d7b..294d0d107db46506075fe562d0a8ef5e7e2ef0c4 100644
--- a/sky/engine/platform/PlatformGestureEvent.h
+++ b/sky/engine/platform/PlatformGestureEvent.h
@@ -106,16 +106,6 @@ public:
return m_data.m_pinchUpdate.m_scale;
}
- void applyTouchAdjustment(const IntPoint& adjustedPosition)
- {
- // Update the window-relative position of the event so that the node that was
- // ultimately hit is under this point (i.e. elementFromPoint for the client
- // co-ordinates in a 'click' event should yield the target). The global
- // position is intentionally left unmodified because it's intended to reflect
- // raw co-ordinates unrelated to any content.
- m_position = adjustedPosition;
- }
-
bool isScrollEvent() const
{
switch (m_type) {
« no previous file with comments | « sky/engine/core/page/TouchAdjustment.cpp ('k') | sky/engine/public/web/WebSettings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698