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

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

Issue 2379993005: Label selection experiment (Closed)
Patch Set: -- Created 4 years, 2 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
« no previous file with comments | « ui/gfx/render_text.h ('k') | ui/gfx/render_text_harfbuzz.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « ui/gfx/render_text.h ('k') | ui/gfx/render_text_harfbuzz.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698