| 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_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 #include <vector> | 10 #include <vector> |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 virtual SelectionModel AdjacentWordSelectionModel( | 34 virtual SelectionModel AdjacentWordSelectionModel( |
| 35 const SelectionModel& selection, | 35 const SelectionModel& selection, |
| 36 VisualCursorDirection direction) OVERRIDE; | 36 VisualCursorDirection direction) OVERRIDE; |
| 37 virtual SelectionModel EdgeSelectionModel( | 37 virtual SelectionModel EdgeSelectionModel( |
| 38 VisualCursorDirection direction) OVERRIDE; | 38 VisualCursorDirection direction) OVERRIDE; |
| 39 virtual std::vector<Rect> GetSubstringBounds(size_t from, size_t to) OVERRIDE; | 39 virtual std::vector<Rect> GetSubstringBounds(size_t from, size_t to) OVERRIDE; |
| 40 virtual void SetSelectionModel(const SelectionModel& model) OVERRIDE; | 40 virtual void SetSelectionModel(const SelectionModel& model) OVERRIDE; |
| 41 virtual bool IsCursorablePosition(size_t position) OVERRIDE; | 41 virtual bool IsCursorablePosition(size_t position) OVERRIDE; |
| 42 virtual void UpdateLayout() OVERRIDE; | 42 virtual void UpdateLayout() OVERRIDE; |
| 43 virtual void EnsureLayout() OVERRIDE; | 43 virtual void EnsureLayout() OVERRIDE; |
| 44 virtual void DrawVisualText(Canvas* canvas) OVERRIDE; | 44 virtual void DrawVisualText(CanvasSkia* canvas) OVERRIDE; |
| 45 | 45 |
| 46 private: | 46 private: |
| 47 virtual size_t IndexOfAdjacentGrapheme( | 47 virtual size_t IndexOfAdjacentGrapheme( |
| 48 size_t index, | 48 size_t index, |
| 49 LogicalCursorDirection direction) OVERRIDE; | 49 LogicalCursorDirection direction) OVERRIDE; |
| 50 | 50 |
| 51 // Returns the run that contains |position|. Return NULL if not found. | 51 // Returns the run that contains |position|. Return NULL if not found. |
| 52 GSList* GetRunContainingPosition(size_t position) const; | 52 GSList* GetRunContainingPosition(size_t position) const; |
| 53 | 53 |
| 54 // Given |layout_index_of_current_grapheme|, returns the layout (UTF-8) index | 54 // Given |layout_index_of_current_grapheme|, returns the layout (UTF-8) index |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 const char* layout_text_; | 103 const char* layout_text_; |
| 104 // The text length. | 104 // The text length. |
| 105 size_t layout_text_len_; | 105 size_t layout_text_len_; |
| 106 | 106 |
| 107 DISALLOW_COPY_AND_ASSIGN(RenderTextLinux); | 107 DISALLOW_COPY_AND_ASSIGN(RenderTextLinux); |
| 108 }; | 108 }; |
| 109 | 109 |
| 110 } // namespace gfx | 110 } // namespace gfx |
| 111 | 111 |
| 112 #endif // UI_GFX_RENDER_TEXT_LINUX_H_ | 112 #endif // UI_GFX_RENDER_TEXT_LINUX_H_ |
| OLD | NEW |