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 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
482 PrecisePixels = 0, // generated by high precision devices. | 482 PrecisePixels = 0, // generated by high precision devices. |
483 Pixels, // large pixel jump duration; should animate to delta. | 483 Pixels, // large pixel jump duration; should animate to delta. |
484 Page // page (visible viewport) based scrolling. | 484 Page // page (visible viewport) based scrolling. |
485 }; | 485 }; |
486 | 486 |
487 int x; | 487 int x; |
488 int y; | 488 int y; |
489 int globalX; | 489 int globalX; |
490 int globalY; | 490 int globalY; |
491 WebGestureDevice sourceDevice; | 491 WebGestureDevice sourceDevice; |
| 492 |
| 493 // If the WebGestureEvent has sourceDevice=WebGestureDeviceTouchscreen, this |
| 494 // field contains the unique identifier for the touch event that triggered |
| 495 // the gesture. Otherwise, it contains 0. |
| 496 uint32_t uniqueTouchEventId; |
| 497 |
492 // This field exists to allow BrowserPlugin to mark GestureScroll events as | 498 // This field exists to allow BrowserPlugin to mark GestureScroll events as |
493 // 'resent' to handle the case where an event is not consumed when first | 499 // 'resent' to handle the case where an event is not consumed when first |
494 // encountered; it should be handled differently by the plugin when it is | 500 // encountered; it should be handled differently by the plugin when it is |
495 // sent for thesecond time. No code within Blink touches this, other than to | 501 // sent for thesecond time. No code within Blink touches this, other than to |
496 // plumb it through event conversions. | 502 // plumb it through event conversions. |
497 int resendingPluginId; | 503 int resendingPluginId; |
498 | 504 |
499 union { | 505 union { |
500 // Tap information must be set for GestureTap, GestureTapUnconfirmed, | 506 // Tap information must be set for GestureTap, GestureTapUnconfirmed, |
501 // and GestureDoubleTap events. | 507 // and GestureDoubleTap events. |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
649 , uniqueTouchEventId(0) | 655 , uniqueTouchEventId(0) |
650 { | 656 { |
651 } | 657 } |
652 }; | 658 }; |
653 | 659 |
654 #pragma pack(pop) | 660 #pragma pack(pop) |
655 | 661 |
656 } // namespace blink | 662 } // namespace blink |
657 | 663 |
658 #endif | 664 #endif |
OLD | NEW |