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 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
506 struct { | 506 struct { |
507 // Initial motion that triggered the scroll. | 507 // Initial motion that triggered the scroll. |
508 // May be redundant with deltaX/deltaY in the first scrollUpdate. | 508 // May be redundant with deltaX/deltaY in the first scrollUpdate. |
509 float deltaXHint; | 509 float deltaXHint; |
510 float deltaYHint; | 510 float deltaYHint; |
511 // Default initialized to ScrollUnits::PrecisePixels. | 511 // Default initialized to ScrollUnits::PrecisePixels. |
512 ScrollUnits deltaHintUnits; | 512 ScrollUnits deltaHintUnits; |
513 // If true, this event will skip hit testing to find a scroll | 513 // If true, this event will skip hit testing to find a scroll |
514 // target and instead just scroll the viewport. | 514 // target and instead just scroll the viewport. |
515 bool targetViewport; | 515 bool targetViewport; |
| 516 // If true, this event comes after a non-inertial gesture |
| 517 // scroll sequence; OSX has unique phases for normal and |
| 518 // momentum scroll events. Should always be false for touch based |
| 519 // input as it generates GestureFlingStart instead. |
| 520 bool inertial; |
| 521 // True if this event was synthesized in order to force a hit test;
avoiding scroll |
| 522 // latching behavior until crbug.com/526463 is fully implemented. |
| 523 bool synthetic; |
516 } scrollBegin; | 524 } scrollBegin; |
517 | 525 |
518 struct { | 526 struct { |
519 float deltaX; | 527 float deltaX; |
520 float deltaY; | 528 float deltaY; |
521 float velocityX; | 529 float velocityX; |
522 float velocityY; | 530 float velocityY; |
523 // Whether any previous GestureScrollUpdate in the current scroll | 531 // Whether any previous GestureScrollUpdate in the current scroll |
524 // sequence was suppressed (e.g., the causal touchmove was | 532 // sequence was suppressed (e.g., the causal touchmove was |
525 // preventDefault'ed). This bit is particularly useful for | 533 // preventDefault'ed). This bit is particularly useful for |
526 // determining whether the observed scroll update sequence captures | 534 // determining whether the observed scroll update sequence captures |
527 // the entirety of the generative motion. | 535 // the entirety of the generative motion. |
528 bool previousUpdateInSequencePrevented; | 536 bool previousUpdateInSequencePrevented; |
529 bool preventPropagation; | 537 bool preventPropagation; |
530 bool inertial; | 538 bool inertial; |
531 // Default initialized to ScrollUnits::PrecisePixels. | 539 // Default initialized to ScrollUnits::PrecisePixels. |
532 ScrollUnits deltaUnits; | 540 ScrollUnits deltaUnits; |
533 } scrollUpdate; | 541 } scrollUpdate; |
534 | 542 |
535 struct { | 543 struct { |
536 // The original delta units the scrollBegin and scrollUpdates | 544 // The original delta units the scrollBegin and scrollUpdates |
537 // were sent as. | 545 // were sent as. |
538 ScrollUnits deltaUnits; | 546 ScrollUnits deltaUnits; |
| 547 // If true, this event comes after an inertial gesture |
| 548 // scroll sequence; OSX has unique phases for normal and |
| 549 // momentum scroll events. Should always be false for touch based |
| 550 // input as it generates GestureFlingStart instead. |
| 551 bool inertial; |
| 552 // True if this event was synthesized in order to generate the prope
r |
| 553 // GSB/GSU/GSE matching sequences. This is a temporary so that a fut
ure |
| 554 // GSB will generate a hit test so latching behavior is avoided |
| 555 // until crbug.com/526463 is fully implemented. |
| 556 bool synthetic; |
539 } scrollEnd; | 557 } scrollEnd; |
540 | 558 |
541 struct { | 559 struct { |
542 float velocityX; | 560 float velocityX; |
543 float velocityY; | 561 float velocityY; |
544 // If true, this event will skip hit testing to find a scroll | 562 // If true, this event will skip hit testing to find a scroll |
545 // target and instead just scroll the viewport. | 563 // target and instead just scroll the viewport. |
546 bool targetViewport; | 564 bool targetViewport; |
547 } flingStart; | 565 } flingStart; |
548 | 566 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
604 , uniqueTouchEventId(0) | 622 , uniqueTouchEventId(0) |
605 { | 623 { |
606 } | 624 } |
607 }; | 625 }; |
608 | 626 |
609 #pragma pack(pop) | 627 #pragma pack(pop) |
610 | 628 |
611 } // namespace blink | 629 } // namespace blink |
612 | 630 |
613 #endif | 631 #endif |
OLD | NEW |