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

Side by Side Diff: content/renderer/input/main_thread_event_queue.h

Issue 2233543002: Make first TouchStart and first TouchMove events on a flinging layer non-blocking (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: new fling Created 4 years, 4 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_RENDERER_INPUT_MAIN_THREAD_EVENT_QUEUE_H_ 5 #ifndef CONTENT_RENDERER_INPUT_MAIN_THREAD_EVENT_QUEUE_H_
6 #define CONTENT_RENDERER_INPUT_MAIN_THREAD_EVENT_QUEUE_H_ 6 #define CONTENT_RENDERER_INPUT_MAIN_THREAD_EVENT_QUEUE_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 #include "content/common/input/event_with_latency_info.h" 10 #include "content/common/input/event_with_latency_info.h"
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 127
128 friend class MainThreadEventQueueTest; 128 friend class MainThreadEventQueueTest;
129 int routing_id_; 129 int routing_id_;
130 MainThreadEventQueueClient* client_; 130 MainThreadEventQueueClient* client_;
131 WebInputEventQueue<EventWithDispatchType> events_; 131 WebInputEventQueue<EventWithDispatchType> events_;
132 std::unique_ptr<EventWithDispatchType> in_flight_event_; 132 std::unique_ptr<EventWithDispatchType> in_flight_event_;
133 bool is_flinging_; 133 bool is_flinging_;
134 134
135 base::Lock event_queue_lock_; 135 base::Lock event_queue_lock_;
136 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_; 136 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_;
137 // True if waiting on first touch move after a touch start.
138 bool waiting_for_first_touch_move_;
137 139
138 DISALLOW_COPY_AND_ASSIGN(MainThreadEventQueue); 140 DISALLOW_COPY_AND_ASSIGN(MainThreadEventQueue);
139 }; 141 };
140 142
141 } // namespace content 143 } // namespace content
142 144
143 #endif // CONTENT_RENDERER_INPUT_MAIN_THREAD_EVENT_QUEUE_H_ 145 #endif // CONTENT_RENDERER_INPUT_MAIN_THREAD_EVENT_QUEUE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698