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 bool inertial; | |
tdresser
2016/03/02 18:26:53
Can we add a comment indicating what this means?
C
dtapuska
2016/03/07 18:03:59
Done.
| |
516 } scrollBegin; | 517 } scrollBegin; |
517 | 518 |
518 struct { | 519 struct { |
519 float deltaX; | 520 float deltaX; |
520 float deltaY; | 521 float deltaY; |
521 float velocityX; | 522 float velocityX; |
522 float velocityY; | 523 float velocityY; |
523 // Whether any previous GestureScrollUpdate in the current scroll | 524 // Whether any previous GestureScrollUpdate in the current scroll |
524 // sequence was suppressed (e.g., the causal touchmove was | 525 // sequence was suppressed (e.g., the causal touchmove was |
525 // preventDefault'ed). This bit is particularly useful for | 526 // preventDefault'ed). This bit is particularly useful for |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
604 , uniqueTouchEventId(0) | 605 , uniqueTouchEventId(0) |
605 { | 606 { |
606 } | 607 } |
607 }; | 608 }; |
608 | 609 |
609 #pragma pack(pop) | 610 #pragma pack(pop) |
610 | 611 |
611 } // namespace blink | 612 } // namespace blink |
612 | 613 |
613 #endif | 614 #endif |
OLD | NEW |