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

Unified Diff: ui/gfx/render_text_win.h

Issue 10315007: Detect missing glyphs as returned by Vista in RenderTextWin. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 8 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_win.cc » ('j') | ui/gfx/render_text_win.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/render_text_win.h
===================================================================
--- ui/gfx/render_text_win.h (revision 134923)
+++ ui/gfx/render_text_win.h (working copy)
@@ -109,9 +109,15 @@
// Given a |run|, returns the SelectionModel that contains the logical first
// or last caret position inside (not at a boundary of) the run.
// The returned value represents a cursor/caret position without a selection.
- SelectionModel FirstSelectionModelInsideRun(internal::TextRun* run);
- SelectionModel LastSelectionModelInsideRun(internal::TextRun* run);
+ SelectionModel FirstSelectionModelInsideRun(const internal::TextRun* run);
+ SelectionModel LastSelectionModelInsideRun(const internal::TextRun* run);
+ // Returns a range [start, end) over the run's text corresponding to the given
+ // glyph index. For example, if the glyph covers characters "fi" in a run with
+ // text "hifi", then the returned range will have |start| == 2 and |end| == 4.
+ ui::Range GetTextRangeForRunGlyph(const internal::TextRun* run,
+ size_t glyph_index) const;
+
// Cached HDC for performing Uniscribe API calls.
static HDC cached_hdc_;
« no previous file with comments | « no previous file | ui/gfx/render_text_win.cc » ('j') | ui/gfx/render_text_win.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698