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

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

Issue 11593011: Add a new code/message path for moving an insertion handle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase + function rename Created 7 years, 11 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 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 &params);
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_;
« no previous file with comments | « content/browser/android/content_view_core_impl.cc ('k') | content/browser/renderer_host/render_widget_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698