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

Unified Diff: ui/touch_selection/touch_selection_controller.cc

Issue 829913004: WIP: Plumbing through text selection granularity control support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@unified_text_selection_diff
Patch Set: Missing file. Created 5 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: ui/touch_selection/touch_selection_controller.cc
diff --git a/ui/touch_selection/touch_selection_controller.cc b/ui/touch_selection/touch_selection_controller.cc
index 9663920baf0378135f4cefdbc5712fdad9a1e851..8810a6632d834974d224e8a8f15543d5d27bd01e 100644
--- a/ui/touch_selection/touch_selection_controller.cc
+++ b/ui/touch_selection/touch_selection_controller.cc
@@ -255,7 +255,7 @@ void TouchSelectionController::OnHandleDragUpdate(const TouchHandle& handle,
if (&handle == insertion_handle_.get()) {
client_->MoveCaret(line_position);
} else {
- client_->MoveRangeSelectionExtent(line_position);
+ client_->MoveRangeSelectionExtent(line_position, ui::CHARACTER_GRANULARITY);
}
}
« no previous file with comments | « ui/touch_selection/touch_selection_controller.h ('k') | ui/touch_selection/touch_selection_controller_aura.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698