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

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: sync 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
« no previous file with comments | « no previous file | ui/gfx/render_text_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/render_text_linux.h
===================================================================
--- ui/gfx/render_text_linux.h (revision 102172)
+++ ui/gfx/render_text_linux.h (working copy)
@@ -68,6 +68,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();
« no previous file with comments | « no previous file | ui/gfx/render_text_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698