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 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
484 class WebTouchEvent : public WebInputEvent { | 484 class WebTouchEvent : public WebInputEvent { |
485 public: | 485 public: |
486 // Maximum number of simultaneous touches supported on | 486 // Maximum number of simultaneous touches supported on |
487 // Ash/Aura. | 487 // Ash/Aura. |
488 enum { touchesLengthCap = 12 }; | 488 enum { touchesLengthCap = 12 }; |
489 | 489 |
490 unsigned touchesLength; | 490 unsigned touchesLength; |
491 // List of all touches, regardless of state. | 491 // List of all touches, regardless of state. |
492 WebTouchPoint touches[touchesLengthCap]; | 492 WebTouchPoint touches[touchesLengthCap]; |
493 | 493 |
494 // FIXME: Remove after eliminating downstream references, crbug.com/358132. | |
495 unsigned changedTouchesLength; | |
496 // List of all touches whose state has changed since the last WebTouchEvent | |
497 WebTouchPoint changedTouches[touchesLengthCap]; | |
498 | |
499 // Whether the event can be canceled (with preventDefault). If true then the
browser | 494 // Whether the event can be canceled (with preventDefault). If true then the
browser |
500 // must wait for an ACK for this event. If false then no ACK IPC is expected
. | 495 // must wait for an ACK for this event. If false then no ACK IPC is expected
. |
501 // See comment at the top for why an int is used here instead of a bool. | 496 // See comment at the top for why an int is used here instead of a bool. |
502 int cancelable; | 497 int cancelable; |
503 | 498 |
504 WebTouchEvent() | 499 WebTouchEvent() |
505 : WebInputEvent(sizeof(WebTouchEvent)) | 500 : WebInputEvent(sizeof(WebTouchEvent)) |
506 , touchesLength(0) | 501 , touchesLength(0) |
507 , changedTouchesLength(0) | |
508 , cancelable(true) | 502 , cancelable(true) |
509 { | 503 { |
510 } | 504 } |
511 }; | 505 }; |
512 | 506 |
513 #pragma pack(pop) | 507 #pragma pack(pop) |
514 | 508 |
515 } // namespace blink | 509 } // namespace blink |
516 | 510 |
517 #endif | 511 #endif |
OLD | NEW |