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

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

Issue 10807082: Add RenderText DirectionalityMode enum and support; etc. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove errant blank line. Created 8 years, 4 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
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