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

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

Issue 1710033002: Add scrollDelta units to GestureScrollEnd. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master_wheel_passive_listeners_3
Patch Set: Created 4 years, 10 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 515 matching lines...) Expand 10 before | Expand all | Expand 10 after
526 // determining whether the observed scroll update sequence captures 526 // determining whether the observed scroll update sequence captures
527 // the entirety of the generative motion. 527 // the entirety of the generative motion.
528 bool previousUpdateInSequencePrevented; 528 bool previousUpdateInSequencePrevented;
529 bool preventPropagation; 529 bool preventPropagation;
530 bool inertial; 530 bool inertial;
531 // Default initialized to ScrollUnits::PrecisePixels. 531 // Default initialized to ScrollUnits::PrecisePixels.
532 ScrollUnits deltaUnits; 532 ScrollUnits deltaUnits;
533 } scrollUpdate; 533 } scrollUpdate;
534 534
535 struct { 535 struct {
536 // The original delta units the scrollBegin and scrollUpdates
537 // were sent as.
538 ScrollUnits deltaUnits;
539 } scrollEnd;
540
541 struct {
536 float velocityX; 542 float velocityX;
537 float velocityY; 543 float velocityY;
538 // If true, this event will skip hit testing to find a scroll 544 // If true, this event will skip hit testing to find a scroll
539 // target and instead just scroll the viewport. 545 // target and instead just scroll the viewport.
540 bool targetViewport; 546 bool targetViewport;
541 } flingStart; 547 } flingStart;
542 548
543 struct { 549 struct {
544 // If set to true, don't treat flingCancel 550 // If set to true, don't treat flingCancel
545 // as a part of fling boost events sequence. 551 // as a part of fling boost events sequence.
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
598 , uniqueTouchEventId(0) 604 , uniqueTouchEventId(0)
599 { 605 {
600 } 606 }
601 }; 607 };
602 608
603 #pragma pack(pop) 609 #pragma pack(pop)
604 610
605 } // namespace blink 611 } // namespace blink
606 612
607 #endif 613 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698