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

Unified Diff: ui/gfx/render_text.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ui/gfx/render_text_harfbuzz.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/render_text.h
diff --git a/ui/gfx/render_text.h b/ui/gfx/render_text.h
index b962e2ada5ddb1404616a163272693b37c03b939..15ea334508da7fdf52c22f6e80c3645eb666dd8b 100644
--- a/ui/gfx/render_text.h
+++ b/ui/gfx/render_text.h
@@ -451,6 +451,9 @@ class GFX_EXPORT RenderText {
// amid multi-character graphemes are allowed here, unlike IsValidCursorIndex.
virtual bool IsValidLogicalIndex(size_t index) const;
+ // Returns true if this instance supports text selection.
+ virtual bool IsSelectionSupported() const = 0;
+
// Get the visual bounds of a cursor at |caret|. These bounds typically
// represent a vertical line if |insert_mode| is true. Pass false for
// |insert_mode| to retrieve the bounds of the associated glyph. These bounds
« no previous file with comments | « no previous file | ui/gfx/render_text_harfbuzz.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698