OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef UI_GFX_RENDER_TEXT_HARFBUZZ_H_ | 5 #ifndef UI_GFX_RENDER_TEXT_HARFBUZZ_H_ |
6 #define UI_GFX_RENDER_TEXT_HARFBUZZ_H_ | 6 #define UI_GFX_RENDER_TEXT_HARFBUZZ_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 | 79 |
80 Font font; | 80 Font font; |
81 sk_sp<SkTypeface> skia_face; | 81 sk_sp<SkTypeface> skia_face; |
82 FontRenderParams render_params; | 82 FontRenderParams render_params; |
83 int font_size; | 83 int font_size; |
84 int baseline_offset; | 84 int baseline_offset; |
85 int baseline_type; | 85 int baseline_type; |
86 bool italic; | 86 bool italic; |
87 Font::Weight weight; | 87 Font::Weight weight; |
88 bool strike; | 88 bool strike; |
89 bool diagonal_strike; | |
90 bool underline; | 89 bool underline; |
91 | 90 |
92 private: | 91 private: |
93 DISALLOW_COPY_AND_ASSIGN(TextRunHarfBuzz); | 92 DISALLOW_COPY_AND_ASSIGN(TextRunHarfBuzz); |
94 }; | 93 }; |
95 | 94 |
96 // Manages the list of TextRunHarfBuzz and its logical <-> visual index mapping. | 95 // Manages the list of TextRunHarfBuzz and its logical <-> visual index mapping. |
97 class TextRunList { | 96 class TextRunList { |
98 public: | 97 public: |
99 TextRunList(); | 98 TextRunList(); |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 | 269 |
271 // Fixed width of glyphs. This should only be set in test environments. | 270 // Fixed width of glyphs. This should only be set in test environments. |
272 float glyph_width_for_test_; | 271 float glyph_width_for_test_; |
273 | 272 |
274 DISALLOW_COPY_AND_ASSIGN(RenderTextHarfBuzz); | 273 DISALLOW_COPY_AND_ASSIGN(RenderTextHarfBuzz); |
275 }; | 274 }; |
276 | 275 |
277 } // namespace gfx | 276 } // namespace gfx |
278 | 277 |
279 #endif // UI_GFX_RENDER_TEXT_HARFBUZZ_H_ | 278 #endif // UI_GFX_RENDER_TEXT_HARFBUZZ_H_ |
OLD | NEW |