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

Unified Diff: ui/gfx/render_text_linux.h

Issue 7892044: Implement move by word, fix rendering of Arabic shape joining (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: address comment Created 9 years, 3 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_linux.h
===================================================================
--- ui/gfx/render_text_linux.h (revision 100777)
+++ ui/gfx/render_text_linux.h (working copy)
@@ -74,6 +74,11 @@
SelectionModel LeftSelectionModel(const SelectionModel& current);
SelectionModel RightSelectionModel(const SelectionModel& current);
+ // Get the selection model visually left or right of |current| by one word.
+ // The returned value represents a cursor/caret position without a selection.
+ SelectionModel LeftSelectionModelByWord(const SelectionModel& current);
+ SelectionModel RightSelectionModelByWord(const SelectionModel& current);
+
// If |layout_| is NULL, create and setup |layout_|, retain and ref
// |current_line_|. Return |layout_|.
PangoLayout* EnsureLayout();

Powered by Google App Engine
This is Rietveld 408576698