Chromium Code Reviews| Index: ui/views/controls/textfield/textfield.h |
| diff --git a/ui/views/controls/textfield/textfield.h b/ui/views/controls/textfield/textfield.h |
| index 21dcca1a578fd0b1d316d46510e8f17aded8487b..6921255b7ec64eb864c8eaa02fd3f679cb0e6d91 100644 |
| --- a/ui/views/controls/textfield/textfield.h |
| +++ b/ui/views/controls/textfield/textfield.h |
| @@ -89,6 +89,9 @@ class VIEWS_EXPORT Textfield : public View, |
| void AppendText(const base::string16& new_text); |
| // Inserts |new_text| at the cursor position, replacing any selected text. |
| + // This method is used to handle user input via paths Textfield doesn't |
| + // normally handle, so it calls UpdateAfterChange() and notifies observers of |
| + // changes. |
| void InsertOrReplaceText(const base::string16& new_text); |
| // Returns the text that is currently selected. Call sites should take care to |
| @@ -329,6 +332,7 @@ class VIEWS_EXPORT Textfield : public View, |
| private: |
| friend class TextfieldTestApi; |
| + FRIEND_TEST_ALL_PREFIXES(TextfieldTest, CursorBlinkRestartsOnInsertOrReplace); |
|
msw
2016/10/07 17:16:38
Please plumb the call through TextfieldTestApi ins
Elly Fong-Jones
2016/10/07 17:25:57
Done.
|
| // View overrides: |
| // Declared final since overriding by subclasses would interfere with the |