| 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 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 462 struct { | 462 struct { |
| 463 float firstFingerWidth; | 463 float firstFingerWidth; |
| 464 float firstFingerHeight; | 464 float firstFingerHeight; |
| 465 } twoFingerTap; | 465 } twoFingerTap; |
| 466 | 466 |
| 467 struct { | 467 struct { |
| 468 // Initial motion that triggered the scroll. | 468 // Initial motion that triggered the scroll. |
| 469 // May be redundant with deltaX/deltaY in the first scrollUpdate. | 469 // May be redundant with deltaX/deltaY in the first scrollUpdate. |
| 470 float deltaXHint; | 470 float deltaXHint; |
| 471 float deltaYHint; | 471 float deltaYHint; |
| 472 // If true, this event will skip hit testing to find a scroll |
| 473 // target and instead just scroll the viewport. |
| 474 bool targetViewport; |
| 472 } scrollBegin; | 475 } scrollBegin; |
| 473 | 476 |
| 474 struct { | 477 struct { |
| 475 float deltaX; | 478 float deltaX; |
| 476 float deltaY; | 479 float deltaY; |
| 477 float velocityX; | 480 float velocityX; |
| 478 float velocityY; | 481 float velocityY; |
| 479 // Whether any previous GestureScrollUpdate in the current scroll | 482 // Whether any previous GestureScrollUpdate in the current scroll |
| 480 // sequence was suppressed (e.g., the causal touchmove was | 483 // sequence was suppressed (e.g., the causal touchmove was |
| 481 // preventDefault'ed). This bit is particularly useful for | 484 // preventDefault'ed). This bit is particularly useful for |
| 482 // determining whether the observed scroll update sequence captures | 485 // determining whether the observed scroll update sequence captures |
| 483 // the entirety of the generative motion. | 486 // the entirety of the generative motion. |
| 484 bool previousUpdateInSequencePrevented; | 487 bool previousUpdateInSequencePrevented; |
| 485 bool preventPropagation; | 488 bool preventPropagation; |
| 486 bool inertial; | 489 bool inertial; |
| 487 } scrollUpdate; | 490 } scrollUpdate; |
| 488 | 491 |
| 489 struct { | 492 struct { |
| 490 float velocityX; | 493 float velocityX; |
| 491 float velocityY; | 494 float velocityY; |
| 495 // If true, this event will skip hit testing to find a scroll |
| 496 // target and instead just scroll the viewport. |
| 497 bool targetViewport; |
| 492 } flingStart; | 498 } flingStart; |
| 493 | 499 |
| 494 struct { | 500 struct { |
| 495 // If set to true, don't treat flingCancel | 501 // If set to true, don't treat flingCancel |
| 496 // as a part of fling boost events sequence. | 502 // as a part of fling boost events sequence. |
| 497 bool preventBoosting; | 503 bool preventBoosting; |
| 498 } flingCancel; | 504 } flingCancel; |
| 499 | 505 |
| 500 struct { | 506 struct { |
| 501 bool zoomDisabled; | 507 bool zoomDisabled; |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 548 , uniqueTouchEventId(0) | 554 , uniqueTouchEventId(0) |
| 549 { | 555 { |
| 550 } | 556 } |
| 551 }; | 557 }; |
| 552 | 558 |
| 553 #pragma pack(pop) | 559 #pragma pack(pop) |
| 554 | 560 |
| 555 } // namespace blink | 561 } // namespace blink |
| 556 | 562 |
| 557 #endif | 563 #endif |
| OLD | NEW |