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

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

Issue 779793006: MacViews: Use RenderTextHarfBuzz only for Textfields (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename to CreateInstanceOfSameType Created 6 years 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
« no previous file with comments | « ui/gfx/render_text_pango.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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 56
57 } // namespace internal 57 } // namespace internal
58 58
59 // RenderTextWin is the Windows implementation of RenderText using Uniscribe. 59 // RenderTextWin is the Windows implementation of RenderText using Uniscribe.
60 class RenderTextWin : public RenderText { 60 class RenderTextWin : public RenderText {
61 public: 61 public:
62 RenderTextWin(); 62 RenderTextWin();
63 virtual ~RenderTextWin(); 63 virtual ~RenderTextWin();
64 64
65 // Overridden from RenderText: 65 // Overridden from RenderText:
66 virtual scoped_ptr<RenderText> CreateInstanceOfSameType() const override;
66 virtual Size GetStringSize() override; 67 virtual Size GetStringSize() override;
67 virtual SelectionModel FindCursorPosition(const Point& point) override; 68 virtual SelectionModel FindCursorPosition(const Point& point) override;
68 virtual std::vector<FontSpan> GetFontSpansForTesting() override; 69 virtual std::vector<FontSpan> GetFontSpansForTesting() override;
69 70
70 protected: 71 protected:
71 // Overridden from RenderText: 72 // Overridden from RenderText:
72 virtual int GetLayoutTextBaseline() override; 73 virtual int GetLayoutTextBaseline() override;
73 virtual SelectionModel AdjacentCharSelectionModel( 74 virtual SelectionModel AdjacentCharSelectionModel(
74 const SelectionModel& selection, 75 const SelectionModel& selection,
75 VisualCursorDirection direction) override; 76 VisualCursorDirection direction) override;
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 scoped_ptr<int[]> logical_to_visual_; 138 scoped_ptr<int[]> logical_to_visual_;
138 139
139 bool needs_layout_; 140 bool needs_layout_;
140 141
141 DISALLOW_COPY_AND_ASSIGN(RenderTextWin); 142 DISALLOW_COPY_AND_ASSIGN(RenderTextWin);
142 }; 143 };
143 144
144 } // namespace gfx 145 } // namespace gfx
145 146
146 #endif // UI_GFX_RENDER_TEXT_WIN_H_ 147 #endif // UI_GFX_RENDER_TEXT_WIN_H_
OLDNEW
« no previous file with comments | « ui/gfx/render_text_pango.cc ('k') | ui/gfx/render_text_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698