Chromium Code Reviews| 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 502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 513 // must wait for an ACK for this event. If false then no ACK IPC is expected . | 513 // must wait for an ACK for this event. If false then no ACK IPC is expected . |
| 514 bool cancelable; | 514 bool cancelable; |
| 515 | 515 |
| 516 // Whether the event will produce scroll-inducing events if uncanceled. This | 516 // Whether the event will produce scroll-inducing events if uncanceled. This |
| 517 // will be true for touchmove events after the platform slop region has been | 517 // will be true for touchmove events after the platform slop region has been |
| 518 // exceeded and fling-generating touchend events. Note that this doesn't | 518 // exceeded and fling-generating touchend events. Note that this doesn't |
| 519 // necessarily mean content will scroll, only that scroll events will be | 519 // necessarily mean content will scroll, only that scroll events will be |
| 520 // generated. | 520 // generated. |
| 521 bool causesScrollingIfUncanceled; | 521 bool causesScrollingIfUncanceled; |
| 522 | 522 |
| 523 // A unique identifier for the touch event. | |
| 524 uint64_t uniqueTouchEventId; | |
| 525 | |
| 523 WebTouchEvent() | 526 WebTouchEvent() |
| 524 : WebInputEvent(sizeof(WebTouchEvent)) | 527 : WebInputEvent(sizeof(WebTouchEvent)) |
| 525 , touchesLength(0) | 528 , touchesLength(0) |
| 526 , cancelable(true) | 529 , cancelable(true) |
| 527 , causesScrollingIfUncanceled(false) | 530 , causesScrollingIfUncanceled(false) |
| 531 , uniqueTouchEventId(1) | |
|
tdresser
2015/03/16 19:09:55
We want to ensure that every WebTouchEvent has a u
| |
| 528 { | 532 { |
| 529 } | 533 } |
| 530 }; | 534 }; |
| 531 | 535 |
| 532 #pragma pack(pop) | 536 #pragma pack(pop) |
| 533 | 537 |
| 534 } // namespace blink | 538 } // namespace blink |
| 535 | 539 |
| 536 #endif | 540 #endif |
| OLD | NEW |