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

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

Issue 789223002: New flingCancel flag to prevent fling boosting. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: More precise description of prevent boosting flag Created 6 years 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 450 matching lines...) Expand 10 before | Expand all | Expand 10 after
461 // instead of a bool. 461 // instead of a bool.
462 int preventPropagation; 462 int preventPropagation;
463 } scrollUpdate; 463 } scrollUpdate;
464 464
465 struct { 465 struct {
466 float velocityX; 466 float velocityX;
467 float velocityY; 467 float velocityY;
468 } flingStart; 468 } flingStart;
469 469
470 struct { 470 struct {
471 // If set to true, don't treat flingCancel
472 // as a part of fling boost events sequence.
473 bool preventBoosting;
474 } flingCancel;
475
476 struct {
471 float scale; 477 float scale;
472 } pinchUpdate; 478 } pinchUpdate;
473 } data; 479 } data;
474 480
475 WebGestureEvent() 481 WebGestureEvent()
476 : WebInputEvent(sizeof(WebGestureEvent)) 482 : WebInputEvent(sizeof(WebGestureEvent))
477 , x(0) 483 , x(0)
478 , y(0) 484 , y(0)
479 , globalX(0) 485 , globalX(0)
480 , globalY(0) 486 , globalY(0)
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
515 , causesScrollingIfUncanceled(false) 521 , causesScrollingIfUncanceled(false)
516 { 522 {
517 } 523 }
518 }; 524 };
519 525
520 #pragma pack(pop) 526 #pragma pack(pop)
521 527
522 } // namespace blink 528 } // namespace blink
523 529
524 #endif 530 #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