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

Unified Diff: content/public/browser/render_widget_host.h

Issue 2086453002: Log First User Interaction in Page Load Metrics (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2743
Patch Set: Created 4 years, 6 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
« no previous file with comments | « content/browser/renderer_host/render_widget_host_impl.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/render_widget_host.h
diff --git a/content/public/browser/render_widget_host.h b/content/public/browser/render_widget_host.h
index 9ab9b0c2bda8f899f9148a03f387df5dc7ec6942..216d13d005a693841b0c533a11ba18be773c5450 100644
--- a/content/public/browser/render_widget_host.h
+++ b/content/public/browser/render_widget_host.h
@@ -239,6 +239,18 @@ class CONTENT_EXPORT RenderWidgetHost : public IPC::Sender {
virtual void AddMouseEventCallback(const MouseEventCallback& callback) = 0;
virtual void RemoveMouseEventCallback(const MouseEventCallback& callback) = 0;
+ // Observer for WebInputEvents (but not input event acks).
+ class InputEventObserver {
+ public:
+ virtual ~InputEventObserver() {}
+
+ virtual void OnInputEvent(const blink::WebInputEvent&) = 0;
+ };
+
+ // Add/remove an input event observer.
+ virtual void AddInputEventObserver(InputEventObserver* observer) = 0;
+ virtual void RemoveInputEventObserver(InputEventObserver* observer) = 0;
+
// Get the screen info corresponding to this render widget.
virtual void GetWebScreenInfo(blink::WebScreenInfo* result) = 0;
// Get the color profile corresponding to this render widget.
« no previous file with comments | « content/browser/renderer_host/render_widget_host_impl.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698