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

Unified Diff: ui/gfx/render_text.h

Issue 2413223003: Views:: Make Labels support text selection. (Closed)
Patch Set: Rebase Created 4 years, 1 month 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 | « chrome/browser/ui/libgtkui/native_theme_gtk.cc ('k') | 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 a5bda21596a73b196ffa6dd98fa54d336cbc1964..7e0b48310116e1fa2cf8ac004389c6bae197a084 100644
--- a/ui/gfx/render_text.h
+++ b/ui/gfx/render_text.h
@@ -463,6 +463,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 | « chrome/browser/ui/libgtkui/native_theme_gtk.cc ('k') | ui/gfx/render_text_harfbuzz.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698