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 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 |
OLD | NEW |