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 449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
460 float deltaY; | 460 float deltaY; |
461 float velocityX; | 461 float velocityX; |
462 float velocityY; | 462 float velocityY; |
463 // Whether any previous GestureScrollUpdate in the current scroll | 463 // Whether any previous GestureScrollUpdate in the current scroll |
464 // sequence was suppressed (e.g., the causal touchmove was | 464 // sequence was suppressed (e.g., the causal touchmove was |
465 // preventDefault'ed). This bit is particularly useful for | 465 // preventDefault'ed). This bit is particularly useful for |
466 // determining whether the observed scroll update sequence captures | 466 // determining whether the observed scroll update sequence captures |
467 // the entirety of the generative motion. | 467 // the entirety of the generative motion. |
468 bool previousUpdateInSequencePrevented; | 468 bool previousUpdateInSequencePrevented; |
469 bool preventPropagation; | 469 bool preventPropagation; |
| 470 bool inertial; |
470 } scrollUpdate; | 471 } scrollUpdate; |
471 | 472 |
472 struct { | 473 struct { |
473 float velocityX; | 474 float velocityX; |
474 float velocityY; | 475 float velocityY; |
475 } flingStart; | 476 } flingStart; |
476 | 477 |
477 struct { | 478 struct { |
478 // If set to true, don't treat flingCancel | 479 // If set to true, don't treat flingCancel |
479 // as a part of fling boost events sequence. | 480 // as a part of fling boost events sequence. |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
526 , causesScrollingIfUncanceled(false) | 527 , causesScrollingIfUncanceled(false) |
527 { | 528 { |
528 } | 529 } |
529 }; | 530 }; |
530 | 531 |
531 #pragma pack(pop) | 532 #pragma pack(pop) |
532 | 533 |
533 } // namespace blink | 534 } // namespace blink |
534 | 535 |
535 #endif | 536 #endif |
OLD | NEW |