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 438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
449 // May be redundant with deltaX/deltaY in the first scrollUpdate. | 449 // May be redundant with deltaX/deltaY in the first scrollUpdate. |
450 float deltaXHint; | 450 float deltaXHint; |
451 float deltaYHint; | 451 float deltaYHint; |
452 } scrollBegin; | 452 } scrollBegin; |
453 | 453 |
454 struct { | 454 struct { |
455 float deltaX; | 455 float deltaX; |
456 float deltaY; | 456 float deltaY; |
457 float velocityX; | 457 float velocityX; |
458 float velocityY; | 458 float velocityY; |
| 459 |
| 460 // Whether any previous GestureScrollUpdate in the current scroll |
| 461 // sequence was suppressed (e.g., the causal touchmove was |
| 462 // preventDefault'ed). This bit is particularly useful for |
| 463 // determining whether the observed scroll update sequence captures |
| 464 // the entirety of the generative motion. |
| 465 // See comment at the top for why an int is used here instead of a b
ool. |
| 466 int previousUpdateInSequencePrevented; |
459 } scrollUpdate; | 467 } scrollUpdate; |
460 | 468 |
461 struct { | 469 struct { |
462 float velocityX; | 470 float velocityX; |
463 float velocityY; | 471 float velocityY; |
464 } flingStart; | 472 } flingStart; |
465 | 473 |
466 struct { | 474 struct { |
467 float scale; | 475 float scale; |
468 } pinchUpdate; | 476 } pinchUpdate; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
502 , cancelable(true) | 510 , cancelable(true) |
503 { | 511 { |
504 } | 512 } |
505 }; | 513 }; |
506 | 514 |
507 #pragma pack(pop) | 515 #pragma pack(pop) |
508 | 516 |
509 } // namespace blink | 517 } // namespace blink |
510 | 518 |
511 #endif | 519 #endif |
OLD | NEW |