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 447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
458 m_rotationAngle = point.rotationAngle; | 458 m_rotationAngle = point.rotationAngle; |
459 } | 459 } |
460 | 460 |
461 PlatformTouchEventBuilder::PlatformTouchEventBuilder( | 461 PlatformTouchEventBuilder::PlatformTouchEventBuilder( |
462 Widget* widget, | 462 Widget* widget, |
463 const WebTouchEvent& event) { | 463 const WebTouchEvent& event) { |
464 m_type = toPlatformTouchEventType(event.type); | 464 m_type = toPlatformTouchEventType(event.type); |
465 m_modifiers = event.modifiers; | 465 m_modifiers = event.modifiers; |
466 m_timestamp = event.timeStampSeconds; | 466 m_timestamp = event.timeStampSeconds; |
467 m_causesScrollingIfUncanceled = event.movedBeyondSlopRegion; | 467 m_causesScrollingIfUncanceled = event.movedBeyondSlopRegion; |
468 m_dispatchedDuringFling = event.dispatchedDuringFling; | |
469 m_touchStartOrFirstTouchMove = event.touchStartOrFirstTouchMove; | 468 m_touchStartOrFirstTouchMove = event.touchStartOrFirstTouchMove; |
470 | 469 |
471 for (unsigned i = 0; i < event.touchesLength; ++i) | 470 for (unsigned i = 0; i < event.touchesLength; ++i) |
472 m_touchPoints.append(PlatformTouchPointBuilder(widget, event.touches[i])); | 471 m_touchPoints.append(PlatformTouchPointBuilder(widget, event.touches[i])); |
473 | 472 |
474 m_dispatchType = toPlatformDispatchType(event.dispatchType); | 473 m_dispatchType = toPlatformDispatchType(event.dispatchType); |
475 m_uniqueTouchEventId = event.uniqueTouchEventId; | 474 m_uniqueTouchEventId = event.uniqueTouchEventId; |
476 } | 475 } |
477 | 476 |
478 static FloatPoint convertAbsoluteLocationForLayoutObjectFloat( | 477 static FloatPoint convertAbsoluteLocationForLayoutObjectFloat( |
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
823 break; | 822 break; |
824 case GestureSourceTouchscreen: | 823 case GestureSourceTouchscreen: |
825 sourceDevice = WebGestureDeviceTouchscreen; | 824 sourceDevice = WebGestureDeviceTouchscreen; |
826 break; | 825 break; |
827 case GestureSourceUninitialized: | 826 case GestureSourceUninitialized: |
828 NOTREACHED(); | 827 NOTREACHED(); |
829 } | 828 } |
830 } | 829 } |
831 | 830 |
832 } // namespace blink | 831 } // namespace blink |
OLD | NEW |