| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_HARFBUZZ_H_ | 5 #ifndef UI_GFX_RENDER_TEXT_HARFBUZZ_H_ |
| 6 #define UI_GFX_RENDER_TEXT_HARFBUZZ_H_ | 6 #define UI_GFX_RENDER_TEXT_HARFBUZZ_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 RenderTextHarfBuzz(); | 147 RenderTextHarfBuzz(); |
| 148 ~RenderTextHarfBuzz() override; | 148 ~RenderTextHarfBuzz() override; |
| 149 | 149 |
| 150 // RenderText: | 150 // RenderText: |
| 151 std::unique_ptr<RenderText> CreateInstanceOfSameType() const override; | 151 std::unique_ptr<RenderText> CreateInstanceOfSameType() const override; |
| 152 bool MultilineSupported() const override; | 152 bool MultilineSupported() const override; |
| 153 const base::string16& GetDisplayText() override; | 153 const base::string16& GetDisplayText() override; |
| 154 Size GetStringSize() override; | 154 Size GetStringSize() override; |
| 155 SizeF GetStringSizeF() override; | 155 SizeF GetStringSizeF() override; |
| 156 SelectionModel FindCursorPosition(const Point& point) override; | 156 SelectionModel FindCursorPosition(const Point& point) override; |
| 157 bool IsSelectionSupported() const override; |
| 157 std::vector<FontSpan> GetFontSpansForTesting() override; | 158 std::vector<FontSpan> GetFontSpansForTesting() override; |
| 158 Range GetGlyphBounds(size_t index) override; | 159 Range GetGlyphBounds(size_t index) override; |
| 159 | 160 |
| 160 // ICU grapheme iterator for the layout text. Can be null in case of an error. | 161 // ICU grapheme iterator for the layout text. Can be null in case of an error. |
| 161 base::i18n::BreakIterator* GetGraphemeIterator(); | 162 base::i18n::BreakIterator* GetGraphemeIterator(); |
| 162 | 163 |
| 163 protected: | 164 protected: |
| 164 // RenderText: | 165 // RenderText: |
| 165 int GetDisplayTextBaseline() override; | 166 int GetDisplayTextBaseline() override; |
| 166 SelectionModel AdjacentCharSelectionModel( | 167 SelectionModel AdjacentCharSelectionModel( |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 | 264 |
| 264 // Fixed width of glyphs. This should only be set in test environments. | 265 // Fixed width of glyphs. This should only be set in test environments. |
| 265 float glyph_width_for_test_; | 266 float glyph_width_for_test_; |
| 266 | 267 |
| 267 DISALLOW_COPY_AND_ASSIGN(RenderTextHarfBuzz); | 268 DISALLOW_COPY_AND_ASSIGN(RenderTextHarfBuzz); |
| 268 }; | 269 }; |
| 269 | 270 |
| 270 } // namespace gfx | 271 } // namespace gfx |
| 271 | 272 |
| 272 #endif // UI_GFX_RENDER_TEXT_HARFBUZZ_H_ | 273 #endif // UI_GFX_RENDER_TEXT_HARFBUZZ_H_ |
| OLD | NEW |