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

Unified Diff: ui/gfx/render_text.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: Fix compile. 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/gfx/render_text.h
diff --git a/ui/gfx/render_text.h b/ui/gfx/render_text.h
index 9265d9d0166b804aaeaeb5c9e19defb634d560c3..54b9edca43b952a60eb2cc7fb98485a95460e94d 100644
--- a/ui/gfx/render_text.h
+++ b/ui/gfx/render_text.h
@@ -328,10 +328,11 @@ class GFX_EXPORT RenderText {
// Moves the cursor left or right. Cursor movement is visual, meaning that
// left and right are relative to screen, not the directionality of the text.
- // If |select| is false, the selection start is moved to the same position.
+ // |selection_behavior| determines whether a selection is to be made and it's
+ // behavior.
void MoveCursor(BreakType break_type,
VisualCursorDirection direction,
- bool select);
+ SelectionBehavior selection_behavior);
// Set the selection_model_ to the value of |selection|.
// The selection range is clamped to text().length() if out of range.

Powered by Google App Engine
This is Rietveld 408576698