OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_WIN_H_ | 5 #ifndef UI_GFX_RENDER_TEXT_WIN_H_ |
6 #define UI_GFX_RENDER_TEXT_WIN_H_ | 6 #define UI_GFX_RENDER_TEXT_WIN_H_ |
7 | 7 |
8 #include <usp10.h> | 8 #include <usp10.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 virtual bool IsValidCursorIndex(size_t index) OVERRIDE; | 83 virtual bool IsValidCursorIndex(size_t index) OVERRIDE; |
84 virtual void ResetLayout() OVERRIDE; | 84 virtual void ResetLayout() OVERRIDE; |
85 virtual void EnsureLayout() OVERRIDE; | 85 virtual void EnsureLayout() OVERRIDE; |
86 virtual void DrawVisualText(Canvas* canvas) OVERRIDE; | 86 virtual void DrawVisualText(Canvas* canvas) OVERRIDE; |
87 | 87 |
88 private: | 88 private: |
89 FRIEND_TEST_ALL_PREFIXES(RenderTextTest, Win_BreakRunsByUnicodeBlocks); | 89 FRIEND_TEST_ALL_PREFIXES(RenderTextTest, Win_BreakRunsByUnicodeBlocks); |
90 FRIEND_TEST_ALL_PREFIXES(RenderTextTest, Win_LogicalClusters); | 90 FRIEND_TEST_ALL_PREFIXES(RenderTextTest, Win_LogicalClusters); |
91 FRIEND_TEST_ALL_PREFIXES(RenderTextTest, Multiline_MinWidth); | 91 FRIEND_TEST_ALL_PREFIXES(RenderTextTest, Multiline_MinWidth); |
92 FRIEND_TEST_ALL_PREFIXES(RenderTextTest, Multiline_NormalWidth); | 92 FRIEND_TEST_ALL_PREFIXES(RenderTextTest, Multiline_NormalWidth); |
| 93 FRIEND_TEST_ALL_PREFIXES(RenderTextTest, BreakRunsByUnicodeBlocks); |
93 | 94 |
94 void ItemizeLogicalText(); | 95 void ItemizeLogicalText(); |
95 void LayoutVisualText(); | 96 void LayoutVisualText(); |
96 void LayoutTextRun(internal::TextRun* run); | 97 void LayoutTextRun(internal::TextRun* run); |
97 | 98 |
98 // Helper function that calls |ScriptShape()| on the run, which has logic to | 99 // Helper function that calls |ScriptShape()| on the run, which has logic to |
99 // handle E_OUTOFMEMORY return codes. | 100 // handle E_OUTOFMEMORY return codes. |
100 HRESULT ShapeTextRunWithFont(internal::TextRun* run, const Font& font); | 101 HRESULT ShapeTextRunWithFont(internal::TextRun* run, const Font& font); |
101 | 102 |
102 // Returns the number of characters in |run| that have missing glyphs. | 103 // Returns the number of characters in |run| that have missing glyphs. |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 scoped_ptr<int[]> logical_to_visual_; | 137 scoped_ptr<int[]> logical_to_visual_; |
137 | 138 |
138 bool needs_layout_; | 139 bool needs_layout_; |
139 | 140 |
140 DISALLOW_COPY_AND_ASSIGN(RenderTextWin); | 141 DISALLOW_COPY_AND_ASSIGN(RenderTextWin); |
141 }; | 142 }; |
142 | 143 |
143 } // namespace gfx | 144 } // namespace gfx |
144 | 145 |
145 #endif // UI_GFX_RENDER_TEXT_WIN_H_ | 146 #endif // UI_GFX_RENDER_TEXT_WIN_H_ |
OLD | NEW |