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

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

Issue 1187633003: Add "targetViewport" to ScrollBegin and FlingStart (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | 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 451 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 struct { 462 struct {
463 float firstFingerWidth; 463 float firstFingerWidth;
464 float firstFingerHeight; 464 float firstFingerHeight;
465 } twoFingerTap; 465 } twoFingerTap;
466 466
467 struct { 467 struct {
468 // Initial motion that triggered the scroll. 468 // Initial motion that triggered the scroll.
469 // May be redundant with deltaX/deltaY in the first scrollUpdate. 469 // May be redundant with deltaX/deltaY in the first scrollUpdate.
470 float deltaXHint; 470 float deltaXHint;
471 float deltaYHint; 471 float deltaYHint;
472 // True if the scroll is targeted to viewport.
bokan 2015/06/16 14:38:04 I would make the comment more explicit that we'll
hush (inactive) 2015/06/18 20:25:48 Done.
473 bool targetViewport;
472 } scrollBegin; 474 } scrollBegin;
473 475
474 struct { 476 struct {
475 float deltaX; 477 float deltaX;
476 float deltaY; 478 float deltaY;
477 float velocityX; 479 float velocityX;
478 float velocityY; 480 float velocityY;
479 // Whether any previous GestureScrollUpdate in the current scroll 481 // Whether any previous GestureScrollUpdate in the current scroll
480 // sequence was suppressed (e.g., the causal touchmove was 482 // sequence was suppressed (e.g., the causal touchmove was
481 // preventDefault'ed). This bit is particularly useful for 483 // preventDefault'ed). This bit is particularly useful for
482 // determining whether the observed scroll update sequence captures 484 // determining whether the observed scroll update sequence captures
483 // the entirety of the generative motion. 485 // the entirety of the generative motion.
484 bool previousUpdateInSequencePrevented; 486 bool previousUpdateInSequencePrevented;
485 bool preventPropagation; 487 bool preventPropagation;
486 bool inertial; 488 bool inertial;
487 } scrollUpdate; 489 } scrollUpdate;
488 490
489 struct { 491 struct {
490 float velocityX; 492 float velocityX;
491 float velocityY; 493 float velocityY;
494 // True if the fling is targeted to viewport.
495 bool targetViewport;
492 } flingStart; 496 } flingStart;
493 497
494 struct { 498 struct {
495 // If set to true, don't treat flingCancel 499 // If set to true, don't treat flingCancel
496 // as a part of fling boost events sequence. 500 // as a part of fling boost events sequence.
497 bool preventBoosting; 501 bool preventBoosting;
498 } flingCancel; 502 } flingCancel;
499 503
500 struct { 504 struct {
501 bool zoomDisabled; 505 bool zoomDisabled;
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
548 , uniqueTouchEventId(0) 552 , uniqueTouchEventId(0)
549 { 553 {
550 } 554 }
551 }; 555 };
552 556
553 #pragma pack(pop) 557 #pragma pack(pop)
554 558
555 } // namespace blink 559 } // namespace blink
556 560
557 #endif 561 #endif
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698