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 564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 575 enum { touchesLengthCap = 16 }; | 575 enum { touchesLengthCap = 16 }; |
| 576 | 576 |
| 577 unsigned touchesLength; | 577 unsigned touchesLength; |
| 578 // List of all touches, regardless of state. | 578 // List of all touches, regardless of state. |
| 579 WebTouchPoint touches[touchesLengthCap]; | 579 WebTouchPoint touches[touchesLengthCap]; |
| 580 | 580 |
| 581 // Whether the event can be canceled (with preventDefault). If true then the browser | 581 // Whether the event can be canceled (with preventDefault). If true then the browser |
| 582 // must wait for an ACK for this event. If false then no ACK IPC is expected . | 582 // must wait for an ACK for this event. If false then no ACK IPC is expected . |
| 583 bool cancelable; | 583 bool cancelable; |
| 584 | 584 |
| 585 // Whether the event will produce scroll-inducing events if uncanceled. This | 585 // True for touchmove events after the platform slop region has been exceede d and |
| 586 // will be true for touchmove events after the platform slop region has been | 586 // fling-generating touchend events. |
|
Rick Byers
2016/02/02 04:24:16
Two questions that I think should be covered by th
mustaq
2016/02/04 21:17:21
Done.
| |
| 587 // exceeded and fling-generating touchend events. Note that this doesn't | 587 bool movedBeyondSlopRegion; |
| 588 // necessarily mean content will scroll, only that scroll events will be | |
| 589 // generated. | |
| 590 bool causesScrollingIfUncanceled; | |
| 591 | 588 |
| 592 // A unique identifier for the touch event. | 589 // A unique identifier for the touch event. |
| 593 uint32_t uniqueTouchEventId; | 590 uint32_t uniqueTouchEventId; |
| 594 | 591 |
| 595 WebTouchEvent() | 592 WebTouchEvent() |
| 596 : WebInputEvent(sizeof(WebTouchEvent)) | 593 : WebInputEvent(sizeof(WebTouchEvent)) |
| 597 , touchesLength(0) | 594 , touchesLength(0) |
| 598 , cancelable(true) | 595 , cancelable(true) |
| 599 , causesScrollingIfUncanceled(false) | 596 , movedBeyondSlopRegion(false) |
| 600 , uniqueTouchEventId(0) | 597 , uniqueTouchEventId(0) |
| 601 { | 598 { |
| 602 } | 599 } |
| 603 }; | 600 }; |
| 604 | 601 |
| 605 #pragma pack(pop) | 602 #pragma pack(pop) |
| 606 | 603 |
| 607 } // namespace blink | 604 } // namespace blink |
| 608 | 605 |
| 609 #endif | 606 #endif |
| OLD | NEW |