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

Side by Side Diff: ui/gfx/render_text_linux.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_LINUX_H_ 5 #ifndef UI_GFX_RENDER_TEXT_LINUX_H_
6 #define UI_GFX_RENDER_TEXT_LINUX_H_ 6 #define UI_GFX_RENDER_TEXT_LINUX_H_
7 #pragma once 7 #pragma once
8 8
9 #include <pango/pango.h> 9 #include <pango/pango.h>
10 10
(...skipping 16 matching lines...) Expand all
27 bool insert_mode) OVERRIDE; 27 bool insert_mode) OVERRIDE;
28 28
29 protected: 29 protected:
30 // Overridden from RenderText: 30 // Overridden from RenderText:
31 virtual SelectionModel GetLeftSelectionModel(const SelectionModel& current, 31 virtual SelectionModel GetLeftSelectionModel(const SelectionModel& current,
32 BreakType break_type) OVERRIDE; 32 BreakType break_type) OVERRIDE;
33 virtual SelectionModel GetRightSelectionModel(const SelectionModel& current, 33 virtual SelectionModel GetRightSelectionModel(const SelectionModel& current,
34 BreakType break_type) OVERRIDE; 34 BreakType break_type) OVERRIDE;
35 virtual SelectionModel LeftEndSelectionModel() OVERRIDE; 35 virtual SelectionModel LeftEndSelectionModel() OVERRIDE;
36 virtual SelectionModel RightEndSelectionModel() OVERRIDE; 36 virtual SelectionModel RightEndSelectionModel() OVERRIDE;
37 virtual bool IsCursorablePosition(size_t position) OVERRIDE; 37 virtual bool IsCursorablePosition(size_t position, bool is_trailing) OVERRIDE;
38 virtual void UpdateLayout() OVERRIDE; 38 virtual void UpdateLayout() OVERRIDE;
39 39
40 private: 40 private:
41 virtual size_t IndexOfAdjacentGrapheme(size_t index, bool next) OVERRIDE; 41 virtual size_t IndexOfAdjacentGrapheme(size_t index, bool next) OVERRIDE;
42 42
43 // Returns the run that contains |position|. Return NULL if not found. 43 // Returns the run that contains |position|. Return NULL if not found.
44 GSList* GetRunContainingPosition(size_t position) const; 44 GSList* GetRunContainingPosition(size_t position) const;
45 45
46 // Given |utf8_index_of_current_grapheme|, returns the UTF8 or UTF16 index of 46 // Given |utf8_index_of_current_grapheme|, returns the UTF8 or UTF16 index of
47 // next grapheme in the text if |next| is true, otherwise, returns the index 47 // next grapheme in the text if |next| is true, otherwise, returns the index
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 const char* layout_text_; 110 const char* layout_text_;
111 // The text length. 111 // The text length.
112 size_t layout_text_len_; 112 size_t layout_text_len_;
113 113
114 DISALLOW_COPY_AND_ASSIGN(RenderTextLinux); 114 DISALLOW_COPY_AND_ASSIGN(RenderTextLinux);
115 }; 115 };
116 116
117 } // namespace gfx 117 } // namespace gfx
118 118
119 #endif // UI_GFX_RENDER_TEXT_LINUX_H_ 119 #endif // UI_GFX_RENDER_TEXT_LINUX_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698