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

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

Issue 703983002: Add preventPropagation bit to GestureScrollUpdate event (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Revert some unnecessary whitespace change 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
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 // See comment at the top of the file for why an int is used here
460 // instead of a bool.
461 int preventPropagation;
459 } scrollUpdate; 462 } scrollUpdate;
460 463
461 struct { 464 struct {
462 float velocityX; 465 float velocityX;
463 float velocityY; 466 float velocityY;
464 } flingStart; 467 } flingStart;
465 468
466 struct { 469 struct {
467 float scale; 470 float scale;
468 } pinchUpdate; 471 } pinchUpdate;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
502 , cancelable(true) 505 , cancelable(true)
503 { 506 {
504 } 507 }
505 }; 508 };
506 509
507 #pragma pack(pop) 510 #pragma pack(pop)
508 511
509 } // namespace blink 512 } // namespace blink
510 513
511 #endif 514 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698