Chromium Code Reviews| Index: ui/gfx/render_text.h |
| diff --git a/ui/gfx/render_text.h b/ui/gfx/render_text.h |
| index 6170c57c28a88251cfa2c7214fe709995789ffb8..b8ab39a28256f4571159bea78d4050ecd52c6150 100644 |
| --- a/ui/gfx/render_text.h |
| +++ b/ui/gfx/render_text.h |
| @@ -207,6 +207,7 @@ class GFX_EXPORT RenderText { |
| const base::string16& text() const { return text_; } |
| void SetText(const base::string16& text); |
| + void AppendText(const base::string16& text); |
| HorizontalAlignment horizontal_alignment() const { |
| return horizontal_alignment_; |
| @@ -603,6 +604,9 @@ class GFX_EXPORT RenderText { |
| size_t TextIndexToGivenTextIndex(const base::string16& given_text, |
| size_t index); |
| + // Adjust ranged styles and colors to accommodate a new text length. |
|
msw
2015/03/20 01:10:32
nit: nix "and colors"
dschuyler
2015/03/20 01:17:20
Done.
|
| + void UpdateStyleLengths(); |
| + |
| // A convenience function to check whether the glyph attached to the caret |
| // is within the given range. |
| static bool RangeContainsCaret(const Range& range, |