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 ba7fca8d9509784a20f8a002812ab3968d3466c6..22e59254d16f4236bf340fa030ab9d5a66fd40c0 100644 |
--- a/content/browser/renderer_host/render_widget_host_impl.h |
+++ b/content/browser/renderer_host/render_widget_host_impl.h |
@@ -23,6 +23,7 @@ |
#include "base/time/time.h" |
#include "base/timer/timer.h" |
#include "build/build_config.h" |
+#include "content/browser/renderer_host/input/input_ack_handler.h" |
#include "content/browser/renderer_host/input/input_router_client.h" |
#include "content/browser/renderer_host/synthetic_gesture_controller.h" |
#include "content/common/browser_rendering_stats.h" |
@@ -88,6 +89,7 @@ struct EditCommand; |
// embedders of content, and adds things only visible to content. |
class CONTENT_EXPORT RenderWidgetHostImpl : virtual public RenderWidgetHost, |
public InputRouterClient, |
+ public InputAckHandler, |
public IPC::Listener { |
public: |
// routing_id can be MSG_ROUTING_NONE, in which case the next available |
@@ -522,6 +524,9 @@ class CONTENT_EXPORT RenderWidgetHostImpl : virtual public RenderWidgetHost, |
// suppress_next_char_events_. |
void SuppressNextCharEvents(); |
+ // Called by RenderWidgetHostView in response to OnSetNeedsFlushInput. |
+ void FlushInput(); |
+ |
// Indicates whether the renderer drives the RenderWidgetHosts's size or the |
// other way around. |
bool should_auto_resize() { return should_auto_resize_; } |
@@ -739,6 +744,10 @@ class CONTENT_EXPORT RenderWidgetHostImpl : virtual public RenderWidgetHost, |
const TouchEventWithLatencyInfo& touch_event) OVERRIDE; |
virtual bool OnSendGestureEventImmediately( |
const GestureEventWithLatencyInfo& gesture_event) OVERRIDE; |
+ virtual void SetNeedsFlush() OVERRIDE; |
+ virtual void DidFlush() OVERRIDE; |
+ |
+ // InputAckHandler |
virtual void OnKeyboardEventAck(const NativeWebKeyboardEvent& event, |
InputEventAckState ack_result) OVERRIDE; |
virtual void OnWheelEventAck(const WebKit::WebMouseWheelEvent& event, |
@@ -755,6 +764,8 @@ class CONTENT_EXPORT RenderWidgetHostImpl : virtual public RenderWidgetHost, |
// which may get in recursive loops). |
void DelayedAutoResized(); |
+ // Creates the proper InputRouter, either Buffered or Immediate. |
+ scoped_ptr<InputRouter> CreateInputRouter(); |
// Our delegate, which wants to know mainly about keyboard events. |
// It will remain non-NULL until DetachDelegate() is called. |