| 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 "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/memory/scoped_vector.h" | 9 #include "base/memory/scoped_vector.h" |
| 10 #include "third_party/harfbuzz-ng/src/hb.h" | 10 #include "third_party/harfbuzz-ng/src/hb.h" |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 // Maps visual run indices to logical run indices and vice versa. | 161 // Maps visual run indices to logical run indices and vice versa. |
| 162 std::vector<int32_t> visual_to_logical_; | 162 std::vector<int32_t> visual_to_logical_; |
| 163 std::vector<int32_t> logical_to_visual_; | 163 std::vector<int32_t> logical_to_visual_; |
| 164 | 164 |
| 165 bool needs_layout_; | 165 bool needs_layout_; |
| 166 | 166 |
| 167 // ICU grapheme iterator for the layout text. Valid when |!needs_layout_|. Can | 167 // ICU grapheme iterator for the layout text. Valid when |!needs_layout_|. Can |
| 168 // be NULL in case of an error. | 168 // be NULL in case of an error. |
| 169 scoped_ptr<base::i18n::BreakIterator> grapheme_iterator_; | 169 scoped_ptr<base::i18n::BreakIterator> grapheme_iterator_; |
| 170 | 170 |
| 171 // The total size of the layouted text. |
| 172 Size total_size_; |
| 173 |
| 171 DISALLOW_COPY_AND_ASSIGN(RenderTextHarfBuzz); | 174 DISALLOW_COPY_AND_ASSIGN(RenderTextHarfBuzz); |
| 172 }; | 175 }; |
| 173 | 176 |
| 174 } // namespace gfx | 177 } // namespace gfx |
| 175 | 178 |
| 176 #endif // UI_GFX_RENDER_TEXT_HARFBUZZ_H_ | 179 #endif // UI_GFX_RENDER_TEXT_HARFBUZZ_H_ |
| OLD | NEW |