| 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 617 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 628 | 628 |
| 629 // Whether the event is blocking, non-blocking, all event | 629 // Whether the event is blocking, non-blocking, all event |
| 630 // listeners were passive or was forced to be non-blocking. | 630 // listeners were passive or was forced to be non-blocking. |
| 631 DispatchType dispatchType; | 631 DispatchType dispatchType; |
| 632 | 632 |
| 633 // For a single touch, this is true after the touch-point has moved beyond | 633 // For a single touch, this is true after the touch-point has moved beyond |
| 634 // the platform slop region. For a multitouch, this is true after any | 634 // the platform slop region. For a multitouch, this is true after any |
| 635 // touch-point has moved (by whatever amount). | 635 // touch-point has moved (by whatever amount). |
| 636 bool movedBeyondSlopRegion; | 636 bool movedBeyondSlopRegion; |
| 637 | 637 |
| 638 // Whether there was an active fling animation when the event was | |
| 639 // dispatched. | |
| 640 bool dispatchedDuringFling; | |
| 641 | |
| 642 // Whether this touch event is a touchstart or a first touchmove event per | 638 // Whether this touch event is a touchstart or a first touchmove event per |
| 643 // scroll. | 639 // scroll. |
| 644 bool touchStartOrFirstTouchMove; | 640 bool touchStartOrFirstTouchMove; |
| 645 | 641 |
| 646 // A unique identifier for the touch event. Valid ids start at one and | 642 // A unique identifier for the touch event. Valid ids start at one and |
| 647 // increase monotonically. Zero means an unknown id. | 643 // increase monotonically. Zero means an unknown id. |
| 648 uint32_t uniqueTouchEventId; | 644 uint32_t uniqueTouchEventId; |
| 649 | 645 |
| 650 WebTouchEvent() | 646 WebTouchEvent() |
| 651 : WebInputEvent(sizeof(WebTouchEvent)), | 647 : WebInputEvent(sizeof(WebTouchEvent)), |
| 652 touchesLength(0), | 648 touchesLength(0), |
| 653 dispatchType(Blocking), | 649 dispatchType(Blocking), |
| 654 movedBeyondSlopRegion(false), | 650 movedBeyondSlopRegion(false), |
| 655 dispatchedDuringFling(false), | |
| 656 touchStartOrFirstTouchMove(false), | 651 touchStartOrFirstTouchMove(false), |
| 657 uniqueTouchEventId(0) {} | 652 uniqueTouchEventId(0) {} |
| 658 }; | 653 }; |
| 659 | 654 |
| 660 #pragma pack(pop) | 655 #pragma pack(pop) |
| 661 | 656 |
| 662 } // namespace blink | 657 } // namespace blink |
| 663 | 658 |
| 664 #endif | 659 #endif |
| OLD | NEW |