| OLD | NEW |
| 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 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 442 float deltaXHint; | 442 float deltaXHint; |
| 443 float deltaYHint; | 443 float deltaYHint; |
| 444 } scrollBegin; | 444 } scrollBegin; |
| 445 | 445 |
| 446 struct { | 446 struct { |
| 447 float deltaX; | 447 float deltaX; |
| 448 float deltaY; | 448 float deltaY; |
| 449 float velocityX; | 449 float velocityX; |
| 450 float velocityY; | 450 float velocityY; |
| 451 | 451 |
| 452 // TODO: Use a bitfield instead of two ints for these flags |
| 453 |
| 452 // Whether any previous GestureScrollUpdate in the current scroll | 454 // Whether any previous GestureScrollUpdate in the current scroll |
| 453 // sequence was suppressed (e.g., the causal touchmove was | 455 // sequence was suppressed (e.g., the causal touchmove was |
| 454 // preventDefault'ed). This bit is particularly useful for | 456 // preventDefault'ed). This bit is particularly useful for |
| 455 // determining whether the observed scroll update sequence captures | 457 // determining whether the observed scroll update sequence captures |
| 456 // the entirety of the generative motion. | 458 // the entirety of the generative motion. |
| 457 // See comment at the top for why an int is used here instead of a b
ool. | 459 // See comment at the top for why an int is used here instead of a b
ool. |
| 458 int previousUpdateInSequencePrevented; | 460 int previousUpdateInSequencePrevented; |
| 461 // See comment at the top of the file for why an int is used here |
| 462 // instead of a bool. |
| 463 int preventPropagation; |
| 459 } scrollUpdate; | 464 } scrollUpdate; |
| 460 | 465 |
| 461 struct { | 466 struct { |
| 462 float velocityX; | 467 float velocityX; |
| 463 float velocityY; | 468 float velocityY; |
| 464 } flingStart; | 469 } flingStart; |
| 465 | 470 |
| 466 struct { | 471 struct { |
| 467 float scale; | 472 float scale; |
| 468 } pinchUpdate; | 473 } pinchUpdate; |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 511 , causesScrollingIfUncanceled(false) | 516 , causesScrollingIfUncanceled(false) |
| 512 { | 517 { |
| 513 } | 518 } |
| 514 }; | 519 }; |
| 515 | 520 |
| 516 #pragma pack(pop) | 521 #pragma pack(pop) |
| 517 | 522 |
| 518 } // namespace blink | 523 } // namespace blink |
| 519 | 524 |
| 520 #endif | 525 #endif |
| OLD | NEW |