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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 | 59 |
60 } // namespace internal | 60 } // namespace internal |
61 | 61 |
62 // RenderTextWin is the Windows implementation of RenderText using Uniscribe. | 62 // RenderTextWin is the Windows implementation of RenderText using Uniscribe. |
63 class RenderTextWin : public RenderText { | 63 class RenderTextWin : public RenderText { |
64 public: | 64 public: |
65 RenderTextWin(); | 65 RenderTextWin(); |
66 virtual ~RenderTextWin(); | 66 virtual ~RenderTextWin(); |
67 | 67 |
68 // Overridden from RenderText: | 68 // Overridden from RenderText: |
69 virtual base::i18n::TextDirection GetTextDirection() OVERRIDE; | |
70 virtual Size GetStringSize() OVERRIDE; | 69 virtual Size GetStringSize() OVERRIDE; |
71 virtual int GetBaseline() OVERRIDE; | 70 virtual int GetBaseline() OVERRIDE; |
72 virtual SelectionModel FindCursorPosition(const Point& point) OVERRIDE; | 71 virtual SelectionModel FindCursorPosition(const Point& point) OVERRIDE; |
73 virtual std::vector<FontSpan> GetFontSpansForTesting() OVERRIDE; | 72 virtual std::vector<FontSpan> GetFontSpansForTesting() OVERRIDE; |
74 | 73 |
75 protected: | 74 protected: |
76 // Overridden from RenderText: | 75 // Overridden from RenderText: |
77 virtual SelectionModel AdjacentCharSelectionModel( | 76 virtual SelectionModel AdjacentCharSelectionModel( |
78 const SelectionModel& selection, | 77 const SelectionModel& selection, |
79 VisualCursorDirection direction) OVERRIDE; | 78 VisualCursorDirection direction) OVERRIDE; |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 scoped_array<int> logical_to_visual_; | 139 scoped_array<int> logical_to_visual_; |
141 | 140 |
142 bool needs_layout_; | 141 bool needs_layout_; |
143 | 142 |
144 DISALLOW_COPY_AND_ASSIGN(RenderTextWin); | 143 DISALLOW_COPY_AND_ASSIGN(RenderTextWin); |
145 }; | 144 }; |
146 | 145 |
147 } // namespace gfx | 146 } // namespace gfx |
148 | 147 |
149 #endif // UI_GFX_RENDER_TEXT_WIN_H_ | 148 #endif // UI_GFX_RENDER_TEXT_WIN_H_ |
OLD | NEW |