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

Unified Diff: ui/gfx/render_text.h

Issue 7607018: Remove PREVIOUS_GRAPHEME_TRAILING. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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
« no previous file with comments | « no previous file | ui/gfx/render_text.cc » ('j') | views/controls/textfield/textfield_views_model_unittest.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/render_text.h
===================================================================
--- ui/gfx/render_text.h (revision 96008)
+++ ui/gfx/render_text.h (working copy)
@@ -90,15 +90,13 @@
class UI_EXPORT SelectionModel {
public:
enum CaretPlacement {
- // PREVIOUS_GRAPHEME_TRAILING means cursor is visually attached to the
- // trailing edge of previous grapheme.
- PREVIOUS_GRAPHEME_TRAILING,
LEADING,
TRAILING,
};
SelectionModel();
explicit SelectionModel(size_t pos);
+ SelectionModel(size_t start, size_t end);
SelectionModel(size_t end, size_t pos, CaretPlacement status);
SelectionModel(size_t start, size_t end, size_t pos, CaretPlacement status);
@@ -271,7 +269,7 @@
BreakType break_type);
// Get the logical index of the grapheme preceeding the argument |position|.
- virtual size_t GetIndexOfPreviousGrapheme(size_t position) const;
+ virtual size_t GetIndexOfPreviousGrapheme(size_t position);
// Apply composition style (underline) to composition range and selection
// style (foreground) to selection range.
« no previous file with comments | « no previous file | ui/gfx/render_text.cc » ('j') | views/controls/textfield/textfield_views_model_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698