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

Unified Diff: views/controls/textfield/textfield.h

Issue 6685082: Refactor Textfield and AutocompleteEditViewViews. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rename IsValidChar to ShouldInsertChar. Created 9 years, 9 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
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_; }

Powered by Google App Engine
This is Rietveld 408576698