Chromium Code Reviews| Index: ui/gfx/render_text_harfbuzz.h |
| diff --git a/ui/gfx/render_text_harfbuzz.h b/ui/gfx/render_text_harfbuzz.h |
| index 59ce92f21c31398eace9628103e883f332ace9f1..7e956a5df47e4ec8dee81311a482ecf2ad6c4d63 100644 |
| --- a/ui/gfx/render_text_harfbuzz.h |
| +++ b/ui/gfx/render_text_harfbuzz.h |
| @@ -29,8 +29,8 @@ struct GFX_EXPORT TextRunHarfBuzz { |
| // value is in run-space (0 corresponds to the first glyph in the run). |
| Range CharRangeToGlyphRange(const Range& range) const; |
| - // Returns whether the given shaped run contains any missing glyphs. |
| - bool HasMissingGlyphs() const; |
| + // Returns the number of missing glyphs in the shaped text run. |
| + size_t CountMissingGlyphs() const; |
| // Returns the X coordinate of the leading or |trailing| edge of the glyph |
| // starting at |text_index|, relative to the left of the text (not the view). |
| @@ -112,6 +112,7 @@ class GFX_EXPORT RenderTextHarfBuzz : public RenderText { |
| // Shape the glyphs needed for the text |run|. |
| void ShapeRun(internal::TextRunHarfBuzz* run); |
| + void ShapeRunWithFont(internal::TextRunHarfBuzz* run, std::string font); |
|
Daniel Erat
2014/07/14 14:58:20
const std::string&
ckocagil
2014/07/16 23:42:22
Done.
|
| // Text runs in logical order. |
| ScopedVector<internal::TextRunHarfBuzz> runs_; |