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 |