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