Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(559)

Side by Side Diff: ui/gfx/render_text_harfbuzz.h

Issue 882643005: Add multiline support to RenderTextHarfBuzz. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: typo fix Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | ui/gfx/render_text_harfbuzz.cc » ('j') | ui/gfx/render_text_harfbuzz.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | ui/gfx/render_text_harfbuzz.cc » ('j') | ui/gfx/render_text_harfbuzz.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698