diff options
author | oshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-27 19:52:18 +0000 |
---|---|---|
committer | oshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-27 19:52:18 +0000 |
commit | 54d32cc876a0c690f3201acc27efea3dca74e7c2 (patch) | |
tree | a8b16246c15f78afa4d42641cc98e019bf8851f6 /ui/gfx/render_text.h | |
parent | 1403db3e8173e661a507f7e4b561d3d1cfb6c82f (diff) | |
download | chromium_src-54d32cc876a0c690f3201acc27efea3dca74e7c2.zip chromium_src-54d32cc876a0c690f3201acc27efea3dca74e7c2.tar.gz chromium_src-54d32cc876a0c690f3201acc27efea3dca74e7c2.tar.bz2 |
Add diagonal strike support in RenderText
BUG=111125
TEST=manual
Review URL: https://chromiumcodereview.appspot.com/9234052
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119478 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/gfx/render_text.h')
-rw-r--r-- | ui/gfx/render_text.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/gfx/render_text.h b/ui/gfx/render_text.h index 21fe484..db98b84 100644 --- a/ui/gfx/render_text.h +++ b/ui/gfx/render_text.h @@ -27,6 +27,7 @@ namespace gfx { class Canvas; class RenderTextTest; +struct StyleRange; namespace internal { @@ -46,7 +47,7 @@ class SkiaTextRenderer { void DrawPosText(const SkPoint* pos, const uint16* glyphs, size_t glyph_count); - void DrawDecorations(int x, int y, int width, bool underline, bool strike); + void DrawDecorations(int x, int y, int width, const StyleRange& style); private: SkCanvas* canvas_skia_; @@ -65,6 +66,7 @@ struct UI_EXPORT StyleRange { // A gfx::Font::FontStyle flag to specify bold and italic styles. int font_style; bool strike; + bool diagonal_strike; bool underline; ui::Range range; }; |