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

Unified Diff: content/browser/renderer_host/render_widget_host_view_win.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 | « no previous file | content/browser/renderer_host/web_input_event_aurax11.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_widget_host_view_win.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_win.cc b/content/browser/renderer_host/render_widget_host_view_win.cc
index 63dae9060b5df2c65be7b08cd7e09f73562d9364..f2b517c87dd54d03561d506f3a29985222f85dd7 100644
--- a/content/browser/renderer_host/render_widget_host_view_win.cc
+++ b/content/browser/renderer_host/render_widget_host_view_win.cc
@@ -419,16 +419,6 @@ class LocalGestureEvent :
data().deltaY = details.generic_y();
data().type = ConvertToWebInputEvent(type_);
data().boundingBox = details.bounding_box();
-
- // 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 (type_ == ui::ET_GESTURE_TAP) {
- data().deltaX = details.bounding_box().width() / 2;
- data().deltaY = details.bounding_box().height() / 2;
- }
}
virtual int GetLowestTouchId() const OVERRIDE {
« no previous file with comments | « no previous file | content/browser/renderer_host/web_input_event_aurax11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698