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

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

Issue 10591003: Expose GetBaseline() method on RenderText. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 6 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 #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
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
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_
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