| OLD | NEW |
| 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_H_ | 5 #ifndef UI_GFX_RENDER_TEXT_H_ |
| 6 #define UI_GFX_RENDER_TEXT_H_ | 6 #define UI_GFX_RENDER_TEXT_H_ |
| 7 | 7 |
| 8 #include <algorithm> | 8 #include <algorithm> |
| 9 #include <cstring> | 9 #include <cstring> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 void SetVerticalAlignment(VerticalAlignment alignment); | 138 void SetVerticalAlignment(VerticalAlignment alignment); |
| 139 | 139 |
| 140 const FontList& font_list() const { return font_list_; } | 140 const FontList& font_list() const { return font_list_; } |
| 141 void SetFontList(const FontList& font_list); | 141 void SetFontList(const FontList& font_list); |
| 142 void SetFont(const Font& font); | 142 void SetFont(const Font& font); |
| 143 | 143 |
| 144 // Set the font size to |size| in pixels. | 144 // Set the font size to |size| in pixels. |
| 145 void SetFontSize(int size); | 145 void SetFontSize(int size); |
| 146 | 146 |
| 147 // Get the first font in |font_list_|. | 147 // Get the first font in |font_list_|. |
| 148 const Font& GetFont() const; | 148 const Font& GetPrimaryFont() const; |
| 149 | 149 |
| 150 bool cursor_enabled() const { return cursor_enabled_; } | 150 bool cursor_enabled() const { return cursor_enabled_; } |
| 151 void SetCursorEnabled(bool cursor_enabled); | 151 void SetCursorEnabled(bool cursor_enabled); |
| 152 | 152 |
| 153 bool cursor_visible() const { return cursor_visible_; } | 153 bool cursor_visible() const { return cursor_visible_; } |
| 154 void set_cursor_visible(bool visible) { cursor_visible_ = visible; } | 154 void set_cursor_visible(bool visible) { cursor_visible_ = visible; } |
| 155 | 155 |
| 156 bool insert_mode() const { return insert_mode_; } | 156 bool insert_mode() const { return insert_mode_; } |
| 157 void ToggleInsertMode(); | 157 void ToggleInsertMode(); |
| 158 | 158 |
| (...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 572 | 572 |
| 573 // Text shadows to be drawn. | 573 // Text shadows to be drawn. |
| 574 ShadowValues text_shadows_; | 574 ShadowValues text_shadows_; |
| 575 | 575 |
| 576 DISALLOW_COPY_AND_ASSIGN(RenderText); | 576 DISALLOW_COPY_AND_ASSIGN(RenderText); |
| 577 }; | 577 }; |
| 578 | 578 |
| 579 } // namespace gfx | 579 } // namespace gfx |
| 580 | 580 |
| 581 #endif // UI_GFX_RENDER_TEXT_H_ | 581 #endif // UI_GFX_RENDER_TEXT_H_ |
| OLD | NEW |