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

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: Refactor and rename 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..3a18c186f4c68f56d64f229d4d33c7d8919a4fa3 100644
--- a/content/renderer/input/input_event_filter.h
+++ b/content/renderer/input/input_event_filter.h
@@ -81,6 +81,9 @@ class CONTENT_EXPORT InputEventFilter : public InputHandlerManagerClient,
const ui::LatencyInfo& latency,
InputEventDispatchType dispatch_type) override;
+ // Whether the fling animation is happening right now.
+ void SetIsFlinging(bool is_flinging) override;
+
private:
~InputEventFilter() override;
@@ -114,6 +117,8 @@ class CONTENT_EXPORT InputEventFilter : public InputHandlerManagerClient,
// bundled in the event ack, saving an IPC. Note that we must continue
// supporting overscroll IPC notifications due to fling animation updates.
std::unique_ptr<DidOverscrollParams>* current_overscroll_params_;
+
+ bool is_flinging_;
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698