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 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
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 // Don't treat flingCancel as a part of fling boost | |
Rick Byers
2014/12/10 19:01:01
Nit: Add "if true" since we don't want to imply th
| |
472 // 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 Loading... | |
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 |
OLD | NEW |