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

Unified Diff: ui/views/controls/textfield/textfield_model.cc

Issue 2228833002: MacViews: Fix behavior of move and select commands when selection direction changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@use_text_commands
Patch Set: Created 4 years, 4 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/views/controls/textfield/textfield_model.cc
diff --git a/ui/views/controls/textfield/textfield_model.cc b/ui/views/controls/textfield/textfield_model.cc
index bdcb55238490a0119c261a06d7c2325528842c12..2f21936d9d2cb7d026346ab47b0d1c77d56a0bc1 100644
--- a/ui/views/controls/textfield/textfield_model.cc
+++ b/ui/views/controls/textfield/textfield_model.cc
@@ -399,12 +399,14 @@ size_t TextfieldModel::GetCursorPosition() const {
return render_text_->cursor_position();
}
-void TextfieldModel::MoveCursor(gfx::BreakType break_type,
- gfx::VisualCursorDirection direction,
- bool select) {
+void TextfieldModel::MoveCursor(
+ gfx::BreakType break_type,
+ gfx::VisualCursorDirection direction,
+ bool select,
+ gfx::SelectionReversedBehavior select_behavior) {
if (HasCompositionText())
ConfirmCompositionText();
- render_text_->MoveCursor(break_type, direction, select);
+ render_text_->MoveCursor(break_type, direction, select, select_behavior);
}
bool TextfieldModel::MoveCursorTo(const gfx::SelectionModel& cursor) {

Powered by Google App Engine
This is Rietveld 408576698