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

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

Issue 690173002: Expose whether a ScrollUpdate is the first such in the sequence (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Updates Created 6 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
« no previous file with comments | « Source/web/WebInputEvent.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 438 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 // May be redundant with deltaX/deltaY in the first scrollUpdate. 449 // May be redundant with deltaX/deltaY in the first scrollUpdate.
450 float deltaXHint; 450 float deltaXHint;
451 float deltaYHint; 451 float deltaYHint;
452 } scrollBegin; 452 } scrollBegin;
453 453
454 struct { 454 struct {
455 float deltaX; 455 float deltaX;
456 float deltaY; 456 float deltaY;
457 float velocityX; 457 float velocityX;
458 float velocityY; 458 float velocityY;
459
460 // Whether any previous GestureScrollUpdate in the current scroll
461 // sequence was suppressed (e.g., the causal touchmove was
462 // preventDefault'ed). This bit is particularly useful for
463 // determining whether the observed scroll update sequence captures
464 // the entirety of the generative motion.
465 // See comment at the top for why an int is used here instead of a b ool.
466 int previousUpdateInSequencePrevented;
459 } scrollUpdate; 467 } scrollUpdate;
460 468
461 struct { 469 struct {
462 float velocityX; 470 float velocityX;
463 float velocityY; 471 float velocityY;
464 } flingStart; 472 } flingStart;
465 473
466 struct { 474 struct {
467 float scale; 475 float scale;
468 } pinchUpdate; 476 } pinchUpdate;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
502 , cancelable(true) 510 , cancelable(true)
503 { 511 {
504 } 512 }
505 }; 513 };
506 514
507 #pragma pack(pop) 515 #pragma pack(pop)
508 516
509 } // namespace blink 517 } // namespace blink
510 518
511 #endif 519 #endif
OLDNEW
« no previous file with comments | « Source/web/WebInputEvent.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698