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 477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
488 UnknownMomentumPhase = 0, // No phase information. | 488 UnknownMomentumPhase = 0, // No phase information. |
489 NonMomentumPhase, // Regular scrolling phase. | 489 NonMomentumPhase, // Regular scrolling phase. |
490 MomentumPhase, // Momentum phase. | 490 MomentumPhase, // Momentum phase. |
491 }; | 491 }; |
492 | 492 |
493 int x; | 493 int x; |
494 int y; | 494 int y; |
495 int globalX; | 495 int globalX; |
496 int globalY; | 496 int globalY; |
497 WebGestureDevice sourceDevice; | 497 WebGestureDevice sourceDevice; |
498 | |
499 // If the WebGestureEvent has sourceDevice=WebGestureDeviceTouchscreen, this | |
500 // field contains the unique identifier for the touch event that triggered | |
Rick Byers
2016/06/03 15:31:40
please define a bit more precisely WHICH touch eve
mustaq
2016/06/03 20:34:45
Does the comment sound better now? This is set on
| |
501 // the gesture. Otherwise, it contains 0. | |
502 uint32_t uniqueTouchEventId; | |
503 | |
498 // This field exists to allow BrowserPlugin to mark GestureScroll events as | 504 // This field exists to allow BrowserPlugin to mark GestureScroll events as |
499 // 'resent' to handle the case where an event is not consumed when first | 505 // 'resent' to handle the case where an event is not consumed when first |
500 // encountered; it should be handled differently by the plugin when it is | 506 // encountered; it should be handled differently by the plugin when it is |
501 // sent for thesecond time. No code within Blink touches this, other than to | 507 // sent for thesecond time. No code within Blink touches this, other than to |
502 // plumb it through event conversions. | 508 // plumb it through event conversions. |
503 int resendingPluginId; | 509 int resendingPluginId; |
504 | 510 |
505 union { | 511 union { |
506 // Tap information must be set for GestureTap, GestureTapUnconfirmed, | 512 // Tap information must be set for GestureTap, GestureTapUnconfirmed, |
507 // and GestureDoubleTap events. | 513 // and GestureDoubleTap events. |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
653 , uniqueTouchEventId(0) | 659 , uniqueTouchEventId(0) |
654 { | 660 { |
655 } | 661 } |
656 }; | 662 }; |
657 | 663 |
658 #pragma pack(pop) | 664 #pragma pack(pop) |
659 | 665 |
660 } // namespace blink | 666 } // namespace blink |
661 | 667 |
662 #endif | 668 #endif |
OLD | NEW |