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

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

Issue 2486673008: Touchpad scroll latching enabled for Mac behind flag. (Closed)
Patch Set: Created 4 years, 1 month 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 561 matching lines...) Expand 10 before | Expand all | Expand 10 after
572 ScrollUnits deltaUnits; 572 ScrollUnits deltaUnits;
573 // The state of inertial phase scrolling. OSX has unique phases for normal 573 // The state of inertial phase scrolling. OSX has unique phases for normal
574 // and momentum scroll events. Should always be UnknownMomentumPhase for 574 // and momentum scroll events. Should always be UnknownMomentumPhase for
575 // touch based input as it generates GestureFlingStart instead. 575 // touch based input as it generates GestureFlingStart instead.
576 InertialPhaseState inertialPhase; 576 InertialPhaseState inertialPhase;
577 // True if this event was synthesized in order to generate the proper 577 // True if this event was synthesized in order to generate the proper
578 // GSB/GSU/GSE matching sequences. This is a temporary so that a future 578 // GSB/GSU/GSE matching sequences. This is a temporary so that a future
579 // GSB will generate a hit test so latching behavior is avoided 579 // GSB will generate a hit test so latching behavior is avoided
580 // until crbug.com/526463 is fully implemented. 580 // until crbug.com/526463 is fully implemented.
581 bool synthetic; 581 bool synthetic;
582 // True if this event could be followed by a fling.
583 bool flingMightHappenNext;
tdresser 2016/11/14 16:02:29 mayPrecedeFling? Or use flingMightHappenNext throu
sahel 2016/11/18 16:13:58 Done.
582 } scrollEnd; 584 } scrollEnd;
583 585
584 struct { 586 struct {
585 float velocityX; 587 float velocityX;
586 float velocityY; 588 float velocityY;
587 // If true, this event will skip hit testing to find a scroll 589 // If true, this event will skip hit testing to find a scroll
588 // target and instead just scroll the viewport. 590 // target and instead just scroll the viewport.
589 bool targetViewport; 591 bool targetViewport;
590 } flingStart; 592 } flingStart;
591 593
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
650 movedBeyondSlopRegion(false), 652 movedBeyondSlopRegion(false),
651 touchStartOrFirstTouchMove(false), 653 touchStartOrFirstTouchMove(false),
652 uniqueTouchEventId(0) {} 654 uniqueTouchEventId(0) {}
653 }; 655 };
654 656
655 #pragma pack(pop) 657 #pragma pack(pop)
656 658
657 } // namespace blink 659 } // namespace blink
658 660
659 #endif 661 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698