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

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

Issue 7892044: Implement move by word, fix rendering of Arabic shape joining (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: fix lint error Created 9 years, 3 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
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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 // The returned value represents a cursor/caret position without a selection. 67 // The returned value represents a cursor/caret position without a selection.
68 SelectionModel FirstSelectionModelInsideRun(const PangoItem* run) const; 68 SelectionModel FirstSelectionModelInsideRun(const PangoItem* run) const;
69 SelectionModel LastSelectionModelInsideRun(const PangoItem* run) const; 69 SelectionModel LastSelectionModelInsideRun(const PangoItem* run) const;
70 70
71 // Get the selection model visually left or right of |current| by one 71 // Get the selection model visually left or right of |current| by one
72 // grapheme. 72 // grapheme.
73 // The returned value represents a cursor/caret position without a selection. 73 // The returned value represents a cursor/caret position without a selection.
74 SelectionModel LeftSelectionModel(const SelectionModel& current); 74 SelectionModel LeftSelectionModel(const SelectionModel& current);
75 SelectionModel RightSelectionModel(const SelectionModel& current); 75 SelectionModel RightSelectionModel(const SelectionModel& current);
76 76
77 // Get the selection model visually left or right of |current| by one
78 // word.
msw 2011/09/15 01:26:00 " word." fits on the line above.
xji 2011/09/15 22:58:09 Done.
79 // The returned value represents a cursor/caret position without a selection.
80 SelectionModel LeftSelectionModelByWord(const SelectionModel& current);
81 SelectionModel RightSelectionModelByWord(const SelectionModel& current);
82
77 // If |layout_| is NULL, create and setup |layout_|, retain and ref 83 // If |layout_| is NULL, create and setup |layout_|, retain and ref
78 // |current_line_|. Return |layout_|. 84 // |current_line_|. Return |layout_|.
79 PangoLayout* EnsureLayout(); 85 PangoLayout* EnsureLayout();
80 86
81 // Unref |layout_| and |pango_line_|. Set them to NULL. 87 // Unref |layout_| and |pango_line_|. Set them to NULL.
82 void ResetLayout(); 88 void ResetLayout();
83 89
84 // Setup pango attribute: foreground, background, font, strike. 90 // Setup pango attribute: foreground, background, font, strike.
85 void SetupPangoAttributes(PangoLayout* layout); 91 void SetupPangoAttributes(PangoLayout* layout);
86 92
(...skipping 28 matching lines...) Expand all
115 const char* layout_text_; 121 const char* layout_text_;
116 // The text length. 122 // The text length.
117 size_t layout_text_len_; 123 size_t layout_text_len_;
118 124
119 DISALLOW_COPY_AND_ASSIGN(RenderTextLinux); 125 DISALLOW_COPY_AND_ASSIGN(RenderTextLinux);
120 }; 126 };
121 127
122 } // namespace gfx; 128 } // namespace gfx;
123 129
124 #endif // UI_GFX_RENDER_TEXT_LINUX_H_ 130 #endif // UI_GFX_RENDER_TEXT_LINUX_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698