| 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 WebTouchEvent() | 523 // A unique identifier for the touch event. |
| 524 uint64_t uniqueTouchEventId; |
| 525 |
| 526 // Pass the uniqueTouchEventId to the WebTouchEvent's constructor to |
| 527 // guarantee that every object has a valid touch Id. |
| 528 WebTouchEvent(uint64_t uniqueTouchId) |
| 524 : WebInputEvent(sizeof(WebTouchEvent)) | 529 : WebInputEvent(sizeof(WebTouchEvent)) |
| 525 , touchesLength(0) | 530 , touchesLength(0) |
| 526 , cancelable(true) | 531 , cancelable(true) |
| 527 , causesScrollingIfUncanceled(false) | 532 , causesScrollingIfUncanceled(false) |
| 533 , uniqueTouchEventId(uniqueTouchId) |
| 528 { | 534 { |
| 529 } | 535 } |
| 530 }; | 536 }; |
| 531 | 537 |
| 532 #pragma pack(pop) | 538 #pragma pack(pop) |
| 533 | 539 |
| 534 } // namespace blink | 540 } // namespace blink |
| 535 | 541 |
| 536 #endif | 542 #endif |
| OLD | NEW |