| 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 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 506 WebTouchPoint touches[touchesLengthCap]; | 506 WebTouchPoint touches[touchesLengthCap]; |
| 507 | 507 |
| 508 unsigned changedTouchesLength; | 508 unsigned changedTouchesLength; |
| 509 // List of all touches whose state has changed since the last WebTouchEvent | 509 // List of all touches whose state has changed since the last WebTouchEvent |
| 510 WebTouchPoint changedTouches[touchesLengthCap]; | 510 WebTouchPoint changedTouches[touchesLengthCap]; |
| 511 | 511 |
| 512 unsigned targetTouchesLength; | 512 unsigned targetTouchesLength; |
| 513 // List of all touches which are currently down and are targeting the event
recipient. | 513 // List of all touches which are currently down and are targeting the event
recipient. |
| 514 WebTouchPoint targetTouches[touchesLengthCap]; | 514 WebTouchPoint targetTouches[touchesLengthCap]; |
| 515 | 515 |
| 516 // Whether the event can be canceled (with preventDefault). If true then the
browser |
| 517 // must wait for an ACK for this event. If false then no ACK IPC is expected
. |
| 518 // See comment at the top for why an int is used here instead of a bool. |
| 519 int cancelable; |
| 520 |
| 516 WebTouchEvent() | 521 WebTouchEvent() |
| 517 : WebInputEvent(sizeof(WebTouchEvent)) | 522 : WebInputEvent(sizeof(WebTouchEvent)) |
| 518 , touchesLength(0) | 523 , touchesLength(0) |
| 519 , changedTouchesLength(0) | 524 , changedTouchesLength(0) |
| 520 , targetTouchesLength(0) | 525 , targetTouchesLength(0) |
| 526 , cancelable(true) |
| 521 { | 527 { |
| 522 } | 528 } |
| 523 }; | 529 }; |
| 524 | 530 |
| 525 #pragma pack(pop) | 531 #pragma pack(pop) |
| 526 | 532 |
| 527 } // namespace blink | 533 } // namespace blink |
| 528 | 534 |
| 529 #endif | 535 #endif |
| OLD | NEW |