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 1d8e4df33a79cf06617aa9676fd2c9bce1fb0a18..823208aeb89e5f9608b8873005a8cd3933cf6c8c 100644 |
--- a/content/browser/renderer_host/render_widget_host_impl.h |
+++ b/content/browser/renderer_host/render_widget_host_impl.h |
@@ -368,6 +368,9 @@ class CONTENT_EXPORT RenderWidgetHostImpl : virtual public RenderWidgetHost, |
// Requests the renderer to select the region between two points. |
void SelectRange(const gfx::Point& start, const gfx::Point& end); |
+ // Requests the renderer to move the caret selection towards the point. |
+ void MoveCaret(const gfx::Point& point); |
+ |
// Called when the reponse to a pending mouse lock request has arrived. |
// Returns true if |allowed| is true and the mouse has been successfully |
// locked. |
@@ -561,6 +564,7 @@ class CONTENT_EXPORT RenderWidgetHostImpl : virtual public RenderWidgetHost, |
int gesture_id, |
const ViewHostMsg_BeginSmoothScroll_Params ¶ms); |
void OnSelectRangeAck(); |
+ void OnMsgMoveCaretAck(); |
virtual void OnFocus(); |
virtual void OnBlur(); |
void OnHasTouchEventHandlers(bool has_handlers); |
@@ -762,6 +766,12 @@ class CONTENT_EXPORT RenderWidgetHostImpl : virtual public RenderWidgetHost, |
}; |
scoped_ptr<SelectionRange> next_selection_range_; |
+ // (Similar to |mouse_move_pending_|.) True while waiting for MoveCaret_ACK. |
+ bool move_caret_pending_; |
+ |
+ // (Similar to |next_mouse_move_|.) The next MoveCaret to send, if any. |
+ scoped_ptr<gfx::Point> next_move_caret_; |
+ |
// The time when an input event was sent to the RenderWidget. |
base::TimeTicks input_event_start_time_; |