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

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

Issue 252563003: Fix Views inline autocomplete with multi-char graphemes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Extrapolate on the comment. Created 6 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 | Annotate | Revision Log
« no previous file with comments | « ui/gfx/render_text_unittest.cc ('k') | ui/gfx/render_text_win.cc » ('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 (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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 virtual SelectionModel AdjacentCharSelectionModel( 73 virtual SelectionModel AdjacentCharSelectionModel(
74 const SelectionModel& selection, 74 const SelectionModel& selection,
75 VisualCursorDirection direction) OVERRIDE; 75 VisualCursorDirection direction) OVERRIDE;
76 virtual SelectionModel AdjacentWordSelectionModel( 76 virtual SelectionModel AdjacentWordSelectionModel(
77 const SelectionModel& selection, 77 const SelectionModel& selection,
78 VisualCursorDirection direction) OVERRIDE; 78 VisualCursorDirection direction) OVERRIDE;
79 virtual Range GetGlyphBounds(size_t index) OVERRIDE; 79 virtual Range GetGlyphBounds(size_t index) OVERRIDE;
80 virtual std::vector<Rect> GetSubstringBounds(const Range& range) OVERRIDE; 80 virtual std::vector<Rect> GetSubstringBounds(const Range& range) OVERRIDE;
81 virtual size_t TextIndexToLayoutIndex(size_t index) const OVERRIDE; 81 virtual size_t TextIndexToLayoutIndex(size_t index) const OVERRIDE;
82 virtual size_t LayoutIndexToTextIndex(size_t index) const OVERRIDE; 82 virtual size_t LayoutIndexToTextIndex(size_t index) const OVERRIDE;
83 virtual bool IsCursorablePosition(size_t position) 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 93
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 scoped_ptr<int[]> logical_to_visual_; 135 scoped_ptr<int[]> logical_to_visual_;
136 136
137 bool needs_layout_; 137 bool needs_layout_;
138 138
139 DISALLOW_COPY_AND_ASSIGN(RenderTextWin); 139 DISALLOW_COPY_AND_ASSIGN(RenderTextWin);
140 }; 140 };
141 141
142 } // namespace gfx 142 } // namespace gfx
143 143
144 #endif // UI_GFX_RENDER_TEXT_WIN_H_ 144 #endif // UI_GFX_RENDER_TEXT_WIN_H_
OLDNEW
« no previous file with comments | « ui/gfx/render_text_unittest.cc ('k') | ui/gfx/render_text_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698