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

Unified Diff: content/browser/renderer_host/web_input_event_aurax11.cc

Issue 10830081: Remove code that sets |deltaX| and |deltaY| for WebKit gesture tap events (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 5 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 | « content/browser/renderer_host/render_widget_host_view_win.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/web_input_event_aurax11.cc
diff --git a/content/browser/renderer_host/web_input_event_aurax11.cc b/content/browser/renderer_host/web_input_event_aurax11.cc
index 516bd8dba0d6f6eec71c1ae1e32b2fa9c8ac6337..4e7154e208f6e187034ccd3a9154112f089e7bff 100644
--- a/content/browser/renderer_host/web_input_event_aurax11.cc
+++ b/content/browser/renderer_host/web_input_event_aurax11.cc
@@ -414,16 +414,6 @@ WebKit::WebGestureEvent MakeWebGestureEventFromAuraEvent(
gesture_event.deltaY = event->details().generic_y();
gesture_event.modifiers = EventFlagsToWebEventModifiers(event->flags());
- // WebKit gesture events do not have bounding-boxes yet, and expect the data
- // in deltaX/deltaY instead (and instead of bounding box, WebKit expects the
- // radius). This is currently used only for tap events. So special case this
- // particular case.
- // http://crbug.com/138572
- if (event->type() == ui::ET_GESTURE_TAP) {
- gesture_event.deltaX = event->details().bounding_box().width() / 2;
- gesture_event.deltaY = event->details().bounding_box().height() / 2;
- }
-
return gesture_event;
}
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698