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 615 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
626 | 626 |
627 // Whether the event is blocking, non-blocking, all event | 627 // Whether the event is blocking, non-blocking, all event |
628 // listeners were passive or was forced to be non-blocking. | 628 // listeners were passive or was forced to be non-blocking. |
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 // We will force the touch starts to be passive when during an ative fling a nimation. | |
637 bool shouldForceBePassive; | |
dtapuska
2016/05/05 20:22:21
Combining this change with https://codereview.chro
tdresser
2016/05/06 19:01:31
Let's just call this "dispatchedDuringFling", and
| |
638 | |
636 // A unique identifier for the touch event. | 639 // A unique identifier for the touch event. |
637 uint32_t uniqueTouchEventId; | 640 uint32_t uniqueTouchEventId; |
638 | 641 |
639 WebTouchEvent() | 642 WebTouchEvent() |
640 : WebInputEvent(sizeof(WebTouchEvent)) | 643 : WebInputEvent(sizeof(WebTouchEvent)) |
641 , touchesLength(0) | 644 , touchesLength(0) |
642 , dispatchType(Blocking) | 645 , dispatchType(Blocking) |
643 , movedBeyondSlopRegion(false) | 646 , movedBeyondSlopRegion(false) |
647 , shouldForceBePassive(false) | |
644 , uniqueTouchEventId(0) | 648 , uniqueTouchEventId(0) |
645 { | 649 { |
646 } | 650 } |
647 }; | 651 }; |
648 | 652 |
649 #pragma pack(pop) | 653 #pragma pack(pop) |
650 | 654 |
651 } // namespace blink | 655 } // namespace blink |
652 | 656 |
653 #endif | 657 #endif |
OLD | NEW |