Index: views/controls/textfield/textfield.h |
diff --git a/views/controls/textfield/textfield.h b/views/controls/textfield/textfield.h |
index ca87bdfb5b2275126f9dbf8f2b6b717b19184900..bbea47d2ea75f4eac2fe26b2f283f6d62f013133 100644 |
--- a/views/controls/textfield/textfield.h |
+++ b/views/controls/textfield/textfield.h |
@@ -89,6 +89,9 @@ class Textfield : public View { |
// Clears the selection within the edit field and sets the caret to the end. |
void ClearSelection() const; |
+ // Checks if there is any selected text. |
+ bool HasSelection() const; |
+ |
// Accessor for |style_|. |
StyleFlags style() const { return style_; } |