| 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 537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 548 // If true, this event will skip hit testing to find a scroll | 548 // If true, this event will skip hit testing to find a scroll |
| 549 // target and instead just scroll the viewport. | 549 // target and instead just scroll the viewport. |
| 550 bool targetViewport; | 550 bool targetViewport; |
| 551 // The state of inertial phase scrolling. OSX has unique phases for
normal and | 551 // The state of inertial phase scrolling. OSX has unique phases for
normal and |
| 552 // momentum scroll events. Should always be UnknownMomentumPhase for
touch based | 552 // momentum scroll events. Should always be UnknownMomentumPhase for
touch based |
| 553 // input as it generates GestureFlingStart instead. | 553 // input as it generates GestureFlingStart instead. |
| 554 InertialPhaseState inertialPhase; | 554 InertialPhaseState inertialPhase; |
| 555 // True if this event was synthesized in order to force a hit test;
avoiding scroll | 555 // True if this event was synthesized in order to force a hit test;
avoiding scroll |
| 556 // latching behavior until crbug.com/526463 is fully implemented. | 556 // latching behavior until crbug.com/526463 is fully implemented. |
| 557 bool synthetic; | 557 bool synthetic; |
| 558 |
| 559 // number of pointers down. |
| 560 int pointerCount; |
| 558 } scrollBegin; | 561 } scrollBegin; |
| 559 | 562 |
| 560 struct { | 563 struct { |
| 561 float deltaX; | 564 float deltaX; |
| 562 float deltaY; | 565 float deltaY; |
| 563 float velocityX; | 566 float velocityX; |
| 564 float velocityY; | 567 float velocityY; |
| 565 // Whether any previous GestureScrollUpdate in the current scroll | 568 // Whether any previous GestureScrollUpdate in the current scroll |
| 566 // sequence was suppressed (e.g., the causal touchmove was | 569 // sequence was suppressed (e.g., the causal touchmove was |
| 567 // preventDefault'ed). This bit is particularly useful for | 570 // preventDefault'ed). This bit is particularly useful for |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 665 , uniqueTouchEventId(0) | 668 , uniqueTouchEventId(0) |
| 666 { | 669 { |
| 667 } | 670 } |
| 668 }; | 671 }; |
| 669 | 672 |
| 670 #pragma pack(pop) | 673 #pragma pack(pop) |
| 671 | 674 |
| 672 } // namespace blink | 675 } // namespace blink |
| 673 | 676 |
| 674 #endif | 677 #endif |
| OLD | NEW |