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

Unified Diff: content/browser/renderer_host/input/input_router_impl.h

Issue 657803002: Update touch selection to only modify one selection point at a time. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix DCHECK Created 6 years, 2 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/input/input_router_impl.h
diff --git a/content/browser/renderer_host/input/input_router_impl.h b/content/browser/renderer_host/input/input_router_impl.h
index 0f7b023bfd6fe3e7233a5bd23e43d3d33acf0cee..e23bbec54688e5b81445381eb3b74849e0ddca61 100644
--- a/content/browser/renderer_host/input/input_router_impl.h
+++ b/content/browser/renderer_host/input/input_router_impl.h
@@ -99,6 +99,7 @@ private:
bool SendMoveCaret(scoped_ptr<IPC::Message> message);
bool SendSelectRange(scoped_ptr<IPC::Message> message);
+ bool SendMoveRangeSelectionExtent(scoped_ptr<IPC::Message> message);
bool Send(IPC::Message* message);
// Filters and forwards |input_event| to the appropriate handler.
@@ -152,6 +153,7 @@ private:
void OnDidOverscroll(const DidOverscrollParams& params);
void OnMsgMoveCaretAck();
void OnSelectRangeAck();
+ void OnMoveRangeSelectionExtentAck();
void OnHasTouchEventHandlers(bool has_handlers);
void OnSetTouchAction(TouchAction touch_action);
@@ -221,6 +223,14 @@ private:
// (Similar to |next_mouse_move_|.) The next SelectRange to send, if any.
scoped_ptr<IPC::Message> next_selection_range_;
+ // (Similar to |mouse_move_pending_|.) True while waiting for
+ // MoveRangeSelectionExtent_ACK.
+ bool move_range_selection_extent_pending_;
+
+ // (Similar to |next_mouse_move_|.) The next MoveRangeSelectionExtent to
+ // send, if any.
+ scoped_ptr<IPC::Message> next_range_selection_extent_move_;
+
// (Similar to |mouse_move_pending_|.) True while waiting for MoveCaret_ACK.
bool move_caret_pending_;

Powered by Google App Engine
This is Rietveld 408576698