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

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: Change comments in histogram 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 451 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 m_radius = scaleSizeToWindow(widget, FloatSize(point.radiusX, point.radiusY) ); 462 m_radius = scaleSizeToWindow(widget, FloatSize(point.radiusX, point.radiusY) );
463 m_rotationAngle = point.rotationAngle; 463 m_rotationAngle = point.rotationAngle;
464 } 464 }
465 465
466 PlatformTouchEventBuilder::PlatformTouchEventBuilder(Widget* widget, const WebTo uchEvent& event) 466 PlatformTouchEventBuilder::PlatformTouchEventBuilder(Widget* widget, const WebTo uchEvent& event)
467 { 467 {
468 m_type = toPlatformTouchEventType(event.type); 468 m_type = toPlatformTouchEventType(event.type);
469 m_modifiers = event.modifiers; 469 m_modifiers = event.modifiers;
470 m_timestamp = event.timeStampSeconds; 470 m_timestamp = event.timeStampSeconds;
471 m_causesScrollingIfUncanceled = event.movedBeyondSlopRegion; 471 m_causesScrollingIfUncanceled = event.movedBeyondSlopRegion;
472 m_dispatchedDuringFling = event.dispatchedDuringFling;
472 473
473 for (unsigned i = 0; i < event.touchesLength; ++i) 474 for (unsigned i = 0; i < event.touchesLength; ++i)
474 m_touchPoints.append(PlatformTouchPointBuilder(widget, event.touches[i]) ); 475 m_touchPoints.append(PlatformTouchPointBuilder(widget, event.touches[i]) );
475 476
476 m_dispatchType = toPlatformDispatchType(event.dispatchType); 477 m_dispatchType = toPlatformDispatchType(event.dispatchType);
477 } 478 }
478 479
479 static FloatPoint convertAbsoluteLocationForLayoutObjectFloat(const LayoutPoint& location, const LayoutItem layoutItem) 480 static FloatPoint convertAbsoluteLocationForLayoutObjectFloat(const LayoutPoint& location, const LayoutItem layoutItem)
480 { 481 {
481 return layoutItem.absoluteToLocal(FloatPoint(location), UseTransforms); 482 return layoutItem.absoluteToLocal(FloatPoint(location), UseTransforms);
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
800 break; 801 break;
801 case GestureSourceTouchscreen: 802 case GestureSourceTouchscreen:
802 sourceDevice = WebGestureDeviceTouchscreen; 803 sourceDevice = WebGestureDeviceTouchscreen;
803 break; 804 break;
804 case GestureSourceUninitialized: 805 case GestureSourceUninitialized:
805 NOTREACHED(); 806 NOTREACHED();
806 } 807 }
807 } 808 }
808 809
809 } // namespace blink 810 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/PlatformTouchEvent.h ('k') | third_party/WebKit/public/web/WebInputEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698