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

Unified Diff: content/renderer/input/input_event_filter.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: Sync fling states in main thread event queue 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 side-by-side diff with in-line comments
Download patch
Index: content/renderer/input/input_event_filter.h
diff --git a/content/renderer/input/input_event_filter.h b/content/renderer/input/input_event_filter.h
index 6457fb6116ceff1fa2fe81b10fc0632ad08bb7dd..cc9c19cee17f359116a3b0eeee8bc37eb948d0bf 100644
--- a/content/renderer/input/input_event_filter.h
+++ b/content/renderer/input/input_event_filter.h
@@ -65,6 +65,7 @@ class CONTENT_EXPORT InputEventFilter : public InputHandlerManagerClient,
void DidRemoveInputHandler(int routing_id) override;
void DidOverscroll(int routing_id,
const DidOverscrollParams& params) override;
+ void DidStartFlinging(int routing_id) override;
void DidStopFlinging(int routing_id) override;
void NotifyInputEventHandled(int routing_id,
blink::WebInputEvent::Type type) override;
@@ -87,6 +88,7 @@ class CONTENT_EXPORT InputEventFilter : public InputHandlerManagerClient,
void ForwardToHandler(const IPC::Message& message);
void SendMessage(std::unique_ptr<IPC::Message> message);
void SendMessageOnIOThread(std::unique_ptr<IPC::Message> message);
+ void SetIsFlingInMainThreadEventQueue(int routing_id, bool is_flinging);
tdresser 2016/05/13 13:42:21 SetIsFlingingInMainThreadEventQueue or SetCurrentl
lanwei 2016/05/13 18:15:48 Done.
scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_;
base::Callback<void(const IPC::Message&)> main_listener_;

Powered by Google App Engine
This is Rietveld 408576698