Index: ui/gfx/render_text.h |
diff --git a/ui/gfx/render_text.h b/ui/gfx/render_text.h |
index d93d92815793b239eacbddd33c0fb471809654f3..372aae76340fc1c007ff6ef3b1190e5028831a5e 100644 |
--- a/ui/gfx/render_text.h |
+++ b/ui/gfx/render_text.h |
@@ -321,9 +321,18 @@ 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. |
+ // |select_behavior| specifies the selection behavior in case the selection |
+ // direction is reversed. |
void MoveCursor(BreakType break_type, |
VisualCursorDirection direction, |
- bool select); |
+ bool select, |
+ SelectionReversedBehavior select_behavior); |
+ |
+ void MoveCursor(BreakType break_type, |
+ VisualCursorDirection direction, |
+ bool select) { |
+ MoveCursor(break_type, direction, select, SELECTION_DEFAULT); |
+ } |
// Set the selection_model_ to the value of |selection|. |
// The selection range is clamped to text().length() if out of range. |