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

Side by Side Diff: content/browser/renderer_host/input/touch_event_queue.h

Issue 1923973002: Add UMA metric for tracking listeners for blocking touch while fling is happening (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add fling flag to WebTouchEvent Created 4 years, 7 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_BROWSER_RENDERER_HOST_INPUT_TOUCH_EVENT_QUEUE_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_EVENT_QUEUE_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_EVENT_QUEUE_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_EVENT_QUEUE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 // uncancelable touchmoves which are still waiting for their acks back from 235 // uncancelable touchmoves which are still waiting for their acks back from
236 // render. We do not put them back to the front the touch_event_queue any 236 // render. We do not put them back to the front the touch_event_queue any
237 // more. 237 // more.
238 std::deque<uint32_t> ack_pending_async_touchmove_ids_; 238 std::deque<uint32_t> ack_pending_async_touchmove_ids_;
239 239
240 double last_sent_touch_timestamp_sec_; 240 double last_sent_touch_timestamp_sec_;
241 241
242 // Event is saved to compare pointer positions for new touchmove events. 242 // Event is saved to compare pointer positions for new touchmove events.
243 std::unique_ptr<blink::WebTouchEvent> last_sent_touchevent_; 243 std::unique_ptr<blink::WebTouchEvent> last_sent_touchevent_;
244 244
245 // True if a GestureFlingStart happens and false after a GestureFlingCancel.
tdresser 2016/04/28 19:02:41 Have you confirmed that a GFC gets sent at the cor
lanwei 2016/04/28 20:25:18 Yes, I tested for both the main and compositor thr
246 bool fling_in_progress_;
247
245 DISALLOW_COPY_AND_ASSIGN(TouchEventQueue); 248 DISALLOW_COPY_AND_ASSIGN(TouchEventQueue);
246 }; 249 };
247 250
248 } // namespace content 251 } // namespace content
249 252
250 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_EVENT_QUEUE_H_ 253 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_EVENT_QUEUE_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/input/touch_event_queue.cc » ('j') | third_party/WebKit/public/web/WebInputEvent.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698