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

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

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.h
diff --git a/ui/views/controls/textfield/textfield_model.h b/ui/views/controls/textfield/textfield_model.h
index 88a07b17e8ea8129a250da96f292d447dd4d4f2e..bc9c5d2878ee69247de1bd9216bf7371cb7ce4f3 100644
--- a/ui/views/controls/textfield/textfield_model.h
+++ b/ui/views/controls/textfield/textfield_model.h
@@ -118,9 +118,11 @@ class VIEWS_EXPORT TextfieldModel {
// Moves the cursor, see RenderText for additional details.
// The current composition text will be confirmed.
- void MoveCursor(gfx::BreakType break_type,
- gfx::VisualCursorDirection direction,
- bool select);
+ void MoveCursor(
+ gfx::BreakType break_type,
+ gfx::VisualCursorDirection direction,
+ bool select,
+ gfx::SelectionReversedBehavior select_behavior = gfx::SELECTION_DEFAULT);
// Updates the cursor to the specified selection model. Any composition text
// will be confirmed, which may alter the specified selection range start.

Powered by Google App Engine
This is Rietveld 408576698