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

Unified Diff: content/renderer/input/main_thread_event_queue_task.h

Issue 2788203002: Adjust cancelabilty of touchmoves that are queued when scroll start occurs (Closed)
Patch Set: Fix nits Created 3 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 side-by-side diff with in-line comments
Download patch
Index: content/renderer/input/main_thread_event_queue_task.h
diff --git a/content/renderer/input/main_thread_event_queue_task.h b/content/renderer/input/main_thread_event_queue_task.h
index 64fc0ade70d212d9b9fd714f76c97a431d6252af..c8e5fda123ad57c5b5c66e6520b6403f995661f2 100644
--- a/content/renderer/input/main_thread_event_queue_task.h
+++ b/content/renderer/input/main_thread_event_queue_task.h
@@ -21,17 +21,25 @@ class MainThreadEventQueueTask {
public:
virtual ~MainThreadEventQueueTask() {}
- enum class CoalesceResult {
- Coalesced,
- CannotCoalesce,
- // Keep iterating on the queue looking for a matching event with the
- // same modality.
- KeepSearching,
+ enum class FilterResult {
+ // The passed in event was coalesced into this event. Don't queue
+ // the new event.
+ CoalescedEvent,
+
+ // Stop invoking FilterNewEvent on any other events in the queue.
+ StopIterating,
+
+ // Keep invoking FilterNewEvent on the next older event in the queue.
+ KeepIterating,
};
- virtual CoalesceResult CoalesceWith(const MainThreadEventQueueTask&) = 0;
+ // Filter a new event that is about to be queued. Acceptable actions
+ // are to coalesce event, stop iterating or keep iterating.
+ // Iteration of the list begins at the end of the queue (newest to oldest).
+ virtual FilterResult FilterNewEvent(const MainThreadEventQueueTask&) = 0;
virtual bool IsWebInputEvent() const = 0;
virtual void Dispatch(int routing_id, MainThreadEventQueueClient*) = 0;
+
virtual void EventHandled(
int routing_id,
blink::scheduler::RendererScheduler* renderer_scheduler,
« no previous file with comments | « content/renderer/input/main_thread_event_queue.cc ('k') | content/renderer/input/main_thread_event_queue_task_list.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698