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

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

Issue 1251473003: Add WebView API for smoothScroll (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 5 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 | « public/platform/Platform.h ('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 476 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 bool preventPropagation; 487 bool preventPropagation;
488 bool inertial; 488 bool inertial;
489 } scrollUpdate; 489 } scrollUpdate;
490 490
491 struct { 491 struct {
492 float velocityX; 492 float velocityX;
493 float velocityY; 493 float velocityY;
494 // If true, this event will skip hit testing to find a scroll 494 // If true, this event will skip hit testing to find a scroll
495 // target and instead just scroll the viewport. 495 // target and instead just scroll the viewport.
496 bool targetViewport; 496 bool targetViewport;
497
498 bool isSmoothScroll;
499 // The following 3 fields are valid when isSmoothScroll == true.
500 float dx;
jdduke (slow) 2015/07/23 15:19:02 Do we need dx/dy if we have a velocity + duration?
501 float dy;
502 long durationMs;
497 } flingStart; 503 } flingStart;
498 504
499 struct { 505 struct {
500 // If set to true, don't treat flingCancel 506 // If set to true, don't treat flingCancel
501 // as a part of fling boost events sequence. 507 // as a part of fling boost events sequence.
502 bool preventBoosting; 508 bool preventBoosting;
503 } flingCancel; 509 } flingCancel;
504 510
505 struct { 511 struct {
506 bool zoomDisabled; 512 bool zoomDisabled;
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
554 , uniqueTouchEventId(0) 560 , uniqueTouchEventId(0)
555 { 561 {
556 } 562 }
557 }; 563 };
558 564
559 #pragma pack(pop) 565 #pragma pack(pop)
560 566
561 } // namespace blink 567 } // namespace blink
562 568
563 #endif 569 #endif
OLDNEW
« no previous file with comments | « public/platform/Platform.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698