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

Unified Diff: content/browser/renderer_host/render_widget_host_impl.h

Issue 1984173002: Log First User Interaction in Page Load Metrics (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Logic refinements 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/browser/renderer_host/render_widget_host_impl.h
diff --git a/content/browser/renderer_host/render_widget_host_impl.h b/content/browser/renderer_host/render_widget_host_impl.h
index 674e463ce8a3e35e721d5f0bf2ea16067304c01b..bc4e701f25e055be6c86125c473dcdec4e498b04 100644
--- a/content/browser/renderer_host/render_widget_host_impl.h
+++ b/content/browser/renderer_host/render_widget_host_impl.h
@@ -169,6 +169,10 @@ class CONTENT_EXPORT RenderWidgetHostImpl : public RenderWidgetHost,
const KeyPressEventCallback& callback) override;
void AddMouseEventCallback(const MouseEventCallback& callback) override;
void RemoveMouseEventCallback(const MouseEventCallback& callback) override;
+ void AddInputEventObserver(
+ RenderWidgetHost::InputEventObserver* observer) override;
+ void RemoveInputEventObserver(
+ RenderWidgetHost::InputEventObserver* observer) override;
void GetWebScreenInfo(blink::WebScreenInfo* result) override;
bool GetScreenColorProfile(std::vector<char>* color_profile) override;
void HandleCompositorProto(const std::vector<uint8_t>& proto) override;
@@ -605,6 +609,10 @@ class CONTENT_EXPORT RenderWidgetHostImpl : public RenderWidgetHost,
void DidOverscroll(const DidOverscrollParams& params) override;
void DidStopFlinging() override;
+ // Dispatch input events with latency information
+ void DispatchInputEventWithLatencyInfo(const blink::WebInputEvent& event,
+ ui::LatencyInfo* latency);
+
// InputAckHandler
void OnKeyboardEventAck(const NativeWebKeyboardEventWithLatencyInfo& event,
InputEventAckState ack_result) override;
@@ -702,6 +710,10 @@ class CONTENT_EXPORT RenderWidgetHostImpl : public RenderWidgetHost,
// Mouse event callbacks.
std::vector<MouseEventCallback> mouse_event_callbacks_;
+ // Input event callbacks.
+ base::ObserverList<RenderWidgetHost::InputEventObserver>
+ input_event_observers_;
+
// If true, then we should repaint when restoring even if we have a
// backingstore. This flag is set to true if we receive a paint message
// while is_hidden_ to true. Even though we tell the render widget to hide

Powered by Google App Engine
This is Rietveld 408576698