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 618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
629 DispatchType dispatchType; | 629 DispatchType dispatchType; |
630 | 630 |
631 // For a single touch, this is true after the touch-point has moved beyond | 631 // For a single touch, this is true after the touch-point has moved beyond |
632 // the platform slop region. For a multitouch, this is true after any | 632 // the platform slop region. For a multitouch, this is true after any |
633 // touch-point has moved (by whatever amount). | 633 // touch-point has moved (by whatever amount). |
634 bool movedBeyondSlopRegion; | 634 bool movedBeyondSlopRegion; |
635 | 635 |
636 // A unique identifier for the touch event. | 636 // A unique identifier for the touch event. |
637 uint32_t uniqueTouchEventId; | 637 uint32_t uniqueTouchEventId; |
638 | 638 |
639 bool isFlingInProgress; | |
dtapuska
2016/04/28 18:59:09
move this beside the other boolean and the struct
lanwei
2016/04/28 20:25:18
Nice, thanks!
| |
640 | |
639 WebTouchEvent() | 641 WebTouchEvent() |
640 : WebInputEvent(sizeof(WebTouchEvent)) | 642 : WebInputEvent(sizeof(WebTouchEvent)) |
641 , touchesLength(0) | 643 , touchesLength(0) |
642 , dispatchType(Blocking) | 644 , dispatchType(Blocking) |
643 , movedBeyondSlopRegion(false) | 645 , movedBeyondSlopRegion(false) |
644 , uniqueTouchEventId(0) | 646 , uniqueTouchEventId(0) |
647 , isFlingInProgress(false) | |
645 { | 648 { |
646 } | 649 } |
647 }; | 650 }; |
648 | 651 |
649 #pragma pack(pop) | 652 #pragma pack(pop) |
650 | 653 |
651 } // namespace blink | 654 } // namespace blink |
652 | 655 |
653 #endif | 656 #endif |
OLD | NEW |