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 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 the begin was generated when phase information is availab le | |
| 522 // for touchpad and for every scroll update we are generating a GSB/ GSU/GSE | |
| 523 // tuple. This is a temporary variable that forces the non-latching behavior | |
| 524 // until crbug.com/526463 is fully implemented. | |
|
tdresser
2016/03/08 14:28:53
Mentioning that these synthesized begin events are
dtapuska
2016/03/08 20:31:49
Done.
| |
| 525 bool synthetic; | |
| 516 } scrollBegin; | 526 } scrollBegin; |
| 517 | 527 |
| 518 struct { | 528 struct { |
| 519 float deltaX; | 529 float deltaX; |
| 520 float deltaY; | 530 float deltaY; |
| 521 float velocityX; | 531 float velocityX; |
| 522 float velocityY; | 532 float velocityY; |
| 523 // Whether any previous GestureScrollUpdate in the current scroll | 533 // Whether any previous GestureScrollUpdate in the current scroll |
| 524 // sequence was suppressed (e.g., the causal touchmove was | 534 // sequence was suppressed (e.g., the causal touchmove was |
| 525 // preventDefault'ed). This bit is particularly useful for | 535 // preventDefault'ed). This bit is particularly useful for |
| 526 // determining whether the observed scroll update sequence captures | 536 // determining whether the observed scroll update sequence captures |
| 527 // the entirety of the generative motion. | 537 // the entirety of the generative motion. |
| 528 bool previousUpdateInSequencePrevented; | 538 bool previousUpdateInSequencePrevented; |
| 529 bool preventPropagation; | 539 bool preventPropagation; |
| 530 bool inertial; | 540 bool inertial; |
| 531 // Default initialized to ScrollUnits::PrecisePixels. | 541 // Default initialized to ScrollUnits::PrecisePixels. |
| 532 ScrollUnits deltaUnits; | 542 ScrollUnits deltaUnits; |
| 533 } scrollUpdate; | 543 } scrollUpdate; |
| 534 | 544 |
| 535 struct { | 545 struct { |
| 536 // The original delta units the scrollBegin and scrollUpdates | 546 // The original delta units the scrollBegin and scrollUpdates |
| 537 // were sent as. | 547 // were sent as. |
| 538 ScrollUnits deltaUnits; | 548 ScrollUnits deltaUnits; |
| 549 // If true, this event comes after a non-inertial gesture | |
| 550 // scroll sequence; OSX has unique phases for normal and | |
|
tdresser
2016/03/08 14:28:53
Is this correct? If this is true, the event comes
dtapuska
2016/03/08 20:31:49
correct; I had copied the text from the begin whic
| |
| 551 // momentum scroll events. Should always be false for touch based | |
| 552 // input as it generates GestureFlingStart instead. | |
| 553 bool inertial; | |
| 554 // True if the begin was generated when phase information is availab le | |
| 555 // for touchpad and for every scroll update we are generating a GSB/ GSU/GSE | |
| 556 // tuple. This is a temporary variable that forces the non-latching behavior | |
| 557 // until crbug.com/526463 is fully implemented. | |
|
tdresser
2016/03/08 14:28:53
I'd mention that these are only needed to match wi
dtapuska
2016/03/08 20:31:49
Done.
| |
| 558 bool synthetic; | |
| 539 } scrollEnd; | 559 } scrollEnd; |
| 540 | 560 |
| 541 struct { | 561 struct { |
| 542 float velocityX; | 562 float velocityX; |
| 543 float velocityY; | 563 float velocityY; |
| 544 // If true, this event will skip hit testing to find a scroll | 564 // If true, this event will skip hit testing to find a scroll |
| 545 // target and instead just scroll the viewport. | 565 // target and instead just scroll the viewport. |
| 546 bool targetViewport; | 566 bool targetViewport; |
| 547 } flingStart; | 567 } flingStart; |
| 548 | 568 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 604 , uniqueTouchEventId(0) | 624 , uniqueTouchEventId(0) |
| 605 { | 625 { |
| 606 } | 626 } |
| 607 }; | 627 }; |
| 608 | 628 |
| 609 #pragma pack(pop) | 629 #pragma pack(pop) |
| 610 | 630 |
| 611 } // namespace blink | 631 } // namespace blink |
| 612 | 632 |
| 613 #endif | 633 #endif |
| OLD | NEW |