Chromium Code Reviews| 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 // Whether there is an active fling animation when we dispatch the touch | |
| 637 // events. | |
|
tdresser
2016/05/09 19:48:45
Maybe something like:
// Whether there was an act
lanwei
2016/05/12 11:50:36
Done.
| |
| 638 bool dispatchedDuringFling; | |
| 639 | |
| 636 // A unique identifier for the touch event. | 640 // A unique identifier for the touch event. |
| 637 uint32_t uniqueTouchEventId; | 641 uint32_t uniqueTouchEventId; |
| 638 | 642 |
| 639 WebTouchEvent() | 643 WebTouchEvent() |
| 640 : WebInputEvent(sizeof(WebTouchEvent)) | 644 : WebInputEvent(sizeof(WebTouchEvent)) |
| 641 , touchesLength(0) | 645 , touchesLength(0) |
| 642 , dispatchType(Blocking) | 646 , dispatchType(Blocking) |
| 643 , movedBeyondSlopRegion(false) | 647 , movedBeyondSlopRegion(false) |
| 648 , dispatchedDuringFling(false) | |
| 644 , uniqueTouchEventId(0) | 649 , uniqueTouchEventId(0) |
| 645 { | 650 { |
| 646 } | 651 } |
| 647 }; | 652 }; |
| 648 | 653 |
| 649 #pragma pack(pop) | 654 #pragma pack(pop) |
| 650 | 655 |
| 651 } // namespace blink | 656 } // namespace blink |
| 652 | 657 |
| 653 #endif | 658 #endif |
| OLD | NEW |