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

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

Issue 1008573002: Add unique_event_id to the WebTouchEvent (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Change to uint64_t and ID starts from 1 Created 5 years, 9 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
« no previous file with comments | « Source/web/WebInputEvent.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 502 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « Source/web/WebInputEvent.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698