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

Unified Diff: ui/events/event_utils.h

Issue 400213002: Refcount touch tracking ids to prevent freeing them too early. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix non-linux platforms. Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: ui/events/event_utils.h
diff --git a/ui/events/event_utils.h b/ui/events/event_utils.h
index 87b720d58843ffccc425e3b2f324568a29118c6d..a08619ee526f70aaeae873951c6ace792b829935 100644
--- a/ui/events/event_utils.h
+++ b/ui/events/event_utils.h
@@ -106,6 +106,11 @@ void ReleaseCopiedNativeEvent(
// Gets the touch id from a native event.
EVENTS_EXPORT int GetTouchId(const base::NativeEvent& native_event);
+// Increases the number of times |ClearTouchIdIfReleased| needs to be called on
+// an event with a given touch id before it will actually be cleared.
+EVENTS_EXPORT void IncrementTouchIdRefCount(
+ const base::NativeEvent& native_event);
+
// Clear the touch id from bookkeeping if it is a release/cancel event.
EVENTS_EXPORT void ClearTouchIdIfReleased(
const base::NativeEvent& native_event);
« no previous file with comments | « ui/events/event.cc ('k') | ui/events/events_stub.cc » ('j') | ui/events/x/events_x.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698