Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Side by Side Diff: public/web/WebInputEvent.h

Issue 247483002: Allow touch events to be uncancelable (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix build on some platforms Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/web/tests/WebInputEventConversionTest.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « Source/web/tests/WebInputEventConversionTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698