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

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

Issue 8575020: Improve RenderTextWin font fallback. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: sync Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 67
68 protected: 68 protected:
69 // Overridden from RenderText: 69 // Overridden from RenderText:
70 virtual SelectionModel GetLeftSelectionModel(const SelectionModel& current, 70 virtual SelectionModel GetLeftSelectionModel(const SelectionModel& current,
71 BreakType break_type) OVERRIDE; 71 BreakType break_type) OVERRIDE;
72 virtual SelectionModel GetRightSelectionModel(const SelectionModel& current, 72 virtual SelectionModel GetRightSelectionModel(const SelectionModel& current,
73 BreakType break_type) OVERRIDE; 73 BreakType break_type) OVERRIDE;
74 virtual SelectionModel LeftEndSelectionModel() OVERRIDE; 74 virtual SelectionModel LeftEndSelectionModel() OVERRIDE;
75 virtual SelectionModel RightEndSelectionModel() OVERRIDE; 75 virtual SelectionModel RightEndSelectionModel() OVERRIDE;
76 virtual std::vector<Rect> GetSubstringBounds(size_t from, size_t to) OVERRIDE; 76 virtual std::vector<Rect> GetSubstringBounds(size_t from, size_t to) OVERRIDE;
77 virtual bool IsCursorablePosition(size_t position) OVERRIDE; 77 virtual bool IsCursorablePosition(size_t position, bool is_trailing) OVERRIDE;
78 virtual void UpdateLayout() OVERRIDE; 78 virtual void UpdateLayout() OVERRIDE;
79 79
80 private: 80 private:
81 virtual size_t IndexOfAdjacentGrapheme(size_t index, bool next) OVERRIDE; 81 virtual size_t IndexOfAdjacentGrapheme(size_t index, bool next) OVERRIDE;
82 82
83 void ItemizeLogicalText(); 83 void ItemizeLogicalText();
84 void LayoutVisualText(); 84 void LayoutVisualText();
85 85
86 // Return the run index that contains the argument; or the length of the 86 // Return the run index that contains the argument; or the length of the
87 // |runs_| vector if argument exceeds the text length or width. 87 // |runs_| vector if argument exceeds the text length or width.
(...skipping 27 matching lines...) Expand all
115 115
116 scoped_array<int> visual_to_logical_; 116 scoped_array<int> visual_to_logical_;
117 scoped_array<int> logical_to_visual_; 117 scoped_array<int> logical_to_visual_;
118 118
119 DISALLOW_COPY_AND_ASSIGN(RenderTextWin); 119 DISALLOW_COPY_AND_ASSIGN(RenderTextWin);
120 }; 120 };
121 121
122 } // namespace gfx 122 } // namespace gfx
123 123
124 #endif // UI_GFX_RENDER_TEXT_WIN_H_ 124 #endif // UI_GFX_RENDER_TEXT_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698