Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(82)

Side by Side Diff: third_party/WebKit/public/web/WebInputEvent.h

Issue 1989623002: Suppressed MEs for gestures from cancelled PEs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed a comment. Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698