Chromium Code Reviews| Index: ui/gfx/render_text_win.h |
| =================================================================== |
| --- ui/gfx/render_text_win.h (revision 134923) |
| +++ ui/gfx/render_text_win.h (working copy) |
| @@ -98,6 +98,9 @@ |
| // Helper function to update the font on a text run after font substitution. |
| void ApplySubstituteFont(internal::TextRun* run, const Font& font); |
| + // Returns whether |run| contains missing glyphs. |
| + bool HasMissingGlyphs(internal::TextRun* run) const; |
|
msw
2012/05/03 17:33:34
nit: make run const? thx for fixing First/LastSel.
Alexei Svitkine (slow)
2012/05/03 17:47:50
Can't unfortunately, because ScriptGetFontProperti
|
| + |
| // Returns a vector of linked fonts corresponding to |font|. |
| const std::vector<Font>* GetLinkedFonts(const Font& font) const; |
| @@ -109,8 +112,8 @@ |
| // 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); |
| // Cached HDC for performing Uniscribe API calls. |
| static HDC cached_hdc_; |