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

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

Issue 1941293002: RenderTextMac: Invoke SkiaTextRenderer::SetFontRenderParams() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase? Created 4 years, 7 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_mac.mm » ('j') | no next file with comments »
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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 std::vector<Rect> GetSubstringBounds(const Range& range) override; 169 std::vector<Rect> GetSubstringBounds(const Range& range) override;
170 size_t TextIndexToDisplayIndex(size_t index) override; 170 size_t TextIndexToDisplayIndex(size_t index) override;
171 size_t DisplayIndexToTextIndex(size_t index) override; 171 size_t DisplayIndexToTextIndex(size_t index) override;
172 bool IsValidCursorIndex(size_t index) override; 172 bool IsValidCursorIndex(size_t index) override;
173 void OnLayoutTextAttributeChanged(bool text_changed) override; 173 void OnLayoutTextAttributeChanged(bool text_changed) override;
174 void OnDisplayTextAttributeChanged() override; 174 void OnDisplayTextAttributeChanged() override;
175 void EnsureLayout() override; 175 void EnsureLayout() override;
176 void DrawVisualText(internal::SkiaTextRenderer* renderer) override; 176 void DrawVisualText(internal::SkiaTextRenderer* renderer) override;
177 177
178 private: 178 private:
179 friend class test::RenderTextTestApi;
180
179 FRIEND_TEST_ALL_PREFIXES(RenderTextTest, Multiline_HorizontalAlignment); 181 FRIEND_TEST_ALL_PREFIXES(RenderTextTest, Multiline_HorizontalAlignment);
180 FRIEND_TEST_ALL_PREFIXES(RenderTextTest, Multiline_NormalWidth); 182 FRIEND_TEST_ALL_PREFIXES(RenderTextTest, Multiline_NormalWidth);
181 FRIEND_TEST_ALL_PREFIXES(RenderTextTest, Multiline_WordWrapBehavior); 183 FRIEND_TEST_ALL_PREFIXES(RenderTextTest, Multiline_WordWrapBehavior);
182 FRIEND_TEST_ALL_PREFIXES(RenderTextTest, HarfBuzz_RunDirection); 184 FRIEND_TEST_ALL_PREFIXES(RenderTextTest, HarfBuzz_RunDirection);
183 FRIEND_TEST_ALL_PREFIXES(RenderTextTest, HarfBuzz_HorizontalPositions); 185 FRIEND_TEST_ALL_PREFIXES(RenderTextTest, HarfBuzz_HorizontalPositions);
184 FRIEND_TEST_ALL_PREFIXES(RenderTextTest, 186 FRIEND_TEST_ALL_PREFIXES(RenderTextTest,
185 HarfBuzz_TextPositionWithFractionalSize); 187 HarfBuzz_TextPositionWithFractionalSize);
186 FRIEND_TEST_ALL_PREFIXES(RenderTextTest, HarfBuzz_BreakRunsByUnicodeBlocks); 188 FRIEND_TEST_ALL_PREFIXES(RenderTextTest, HarfBuzz_BreakRunsByUnicodeBlocks);
187 FRIEND_TEST_ALL_PREFIXES(RenderTextTest, HarfBuzz_BreakRunsByEmoji); 189 FRIEND_TEST_ALL_PREFIXES(RenderTextTest, HarfBuzz_BreakRunsByEmoji);
188 FRIEND_TEST_ALL_PREFIXES(RenderTextTest, HarfBuzz_BreakRunsByAscii); 190 FRIEND_TEST_ALL_PREFIXES(RenderTextTest, HarfBuzz_BreakRunsByAscii);
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 278
277 // Fixed width of glyphs. This should only be set in test environments. 279 // Fixed width of glyphs. This should only be set in test environments.
278 float glyph_width_for_test_; 280 float glyph_width_for_test_;
279 281
280 DISALLOW_COPY_AND_ASSIGN(RenderTextHarfBuzz); 282 DISALLOW_COPY_AND_ASSIGN(RenderTextHarfBuzz);
281 }; 283 };
282 284
283 } // namespace gfx 285 } // namespace gfx
284 286
285 #endif // UI_GFX_RENDER_TEXT_HARFBUZZ_H_ 287 #endif // UI_GFX_RENDER_TEXT_HARFBUZZ_H_
OLDNEW
« no previous file with comments | « no previous file | ui/gfx/render_text_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698