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

Side by Side Diff: third_party/WebKit/Source/web/WebInputEventConversion.cpp

Issue 1923973002: Add UMA metric for tracking listeners for blocking touch while fling is happening (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add fling flag to WebTouchEvent Created 4 years, 7 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 m_radius = scaleSizeToWindow(widget, FloatSize(point.radiusX, point.radiusY) ); 463 m_radius = scaleSizeToWindow(widget, FloatSize(point.radiusX, point.radiusY) );
464 m_rotationAngle = point.rotationAngle; 464 m_rotationAngle = point.rotationAngle;
465 } 465 }
466 466
467 PlatformTouchEventBuilder::PlatformTouchEventBuilder(Widget* widget, const WebTo uchEvent& event) 467 PlatformTouchEventBuilder::PlatformTouchEventBuilder(Widget* widget, const WebTo uchEvent& event)
468 { 468 {
469 m_type = toPlatformTouchEventType(event.type); 469 m_type = toPlatformTouchEventType(event.type);
470 m_modifiers = event.modifiers; 470 m_modifiers = event.modifiers;
471 m_timestamp = event.timeStampSeconds; 471 m_timestamp = event.timeStampSeconds;
472 m_causesScrollingIfUncanceled = event.movedBeyondSlopRegion; 472 m_causesScrollingIfUncanceled = event.movedBeyondSlopRegion;
473 m_isFlingInProgress = event.isFlingInProgress;
473 474
474 for (unsigned i = 0; i < event.touchesLength; ++i) 475 for (unsigned i = 0; i < event.touchesLength; ++i)
475 m_touchPoints.append(PlatformTouchPointBuilder(widget, event.touches[i]) ); 476 m_touchPoints.append(PlatformTouchPointBuilder(widget, event.touches[i]) );
476 477
477 m_dispatchType = toPlatformDispatchType(event.dispatchType); 478 m_dispatchType = toPlatformDispatchType(event.dispatchType);
478 } 479 }
479 480
480 static FloatPoint convertAbsoluteLocationForLayoutObjectFloat(const LayoutPoint& location, const LayoutObject& layoutObject) 481 static FloatPoint convertAbsoluteLocationForLayoutObjectFloat(const LayoutPoint& location, const LayoutObject& layoutObject)
481 { 482 {
482 return layoutObject.absoluteToLocal(FloatPoint(location), UseTransforms); 483 return layoutObject.absoluteToLocal(FloatPoint(location), UseTransforms);
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
801 break; 802 break;
802 case GestureSourceTouchscreen: 803 case GestureSourceTouchscreen:
803 sourceDevice = WebGestureDeviceTouchscreen; 804 sourceDevice = WebGestureDeviceTouchscreen;
804 break; 805 break;
805 case GestureSourceUninitialized: 806 case GestureSourceUninitialized:
806 NOTREACHED(); 807 NOTREACHED();
807 } 808 }
808 } 809 }
809 810
810 } // namespace blink 811 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698