OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |