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

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

Issue 2399863002: views: call UpdateAfterChange() in Textfield::InsertOrReplaceText(). (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
Index: ui/views/controls/textfield/textfield.h
diff --git a/ui/views/controls/textfield/textfield.h b/ui/views/controls/textfield/textfield.h
index c6dd5c11eaa2def01c015a62a224062858bb2549..3a588437e9f7e15fe22b9340e2873190cbd4ceb8 100644
--- a/ui/views/controls/textfield/textfield.h
+++ b/ui/views/controls/textfield/textfield.h
@@ -319,6 +319,9 @@ class VIEWS_EXPORT Textfield : public View,
// Executes the given |command|.
virtual void ExecuteTextEditCommand(ui::TextEditCommand command);
+ // Does necessary updates when the text and/or cursor position changes.
+ void UpdateAfterChange(bool text_changed, bool cursor_changed);
+
private:
friend class TextfieldTestApi;
@@ -337,9 +340,6 @@ class VIEWS_EXPORT Textfield : public View,
// Updates the painted background color.
void UpdateBackgroundColor();
- // Does necessary updates when the text and/or cursor position changes.
- void UpdateAfterChange(bool text_changed, bool cursor_changed);
-
// A callback function to periodically update the cursor state.
void UpdateCursor();

Powered by Google App Engine
This is Rietveld 408576698