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

Unified Diff: ui/gfx/render_text_linux.h

Issue 7841056: fix know issues in RenderText (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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 100008)
+++ ui/gfx/render_text_linux.h (working copy)
@@ -30,7 +30,9 @@
virtual SelectionModel FindCursorPosition(const Point& point) OVERRIDE;
virtual Rect GetCursorBounds(const SelectionModel& position,
bool insert_mode) OVERRIDE;
+ virtual size_t GetIndexOfNextGrapheme(size_t position) OVERRIDE;
+
protected:
// Overridden from RenderText:
virtual SelectionModel GetLeftSelectionModel(const SelectionModel& current,
@@ -40,6 +42,7 @@
virtual SelectionModel LeftEndSelectionModel() OVERRIDE;
virtual SelectionModel RightEndSelectionModel() OVERRIDE;
virtual size_t GetIndexOfPreviousGrapheme(size_t position) OVERRIDE;
+ virtual bool IsCursorablePosition(size_t position) OVERRIDE;
private:
enum RelativeLogicalPosition {
@@ -47,9 +50,6 @@
NEXT
};
- // Get the logical start index of the next grapheme after |position|.
- size_t GetIndexOfNextGrapheme(size_t position);
-
// Returns the run that contains |position|. Return NULL if not found.
GSList* GetRunContainingPosition(size_t position) const;

Powered by Google App Engine
This is Rietveld 408576698