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

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

Issue 2754633002: Fix: Cursor missing in omnibox after entering a alphabet in NTP 'Search box' (Closed)
Patch Set: Created 3 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: ui/views/controls/textfield/textfield.h
diff --git a/ui/views/controls/textfield/textfield.h b/ui/views/controls/textfield/textfield.h
index 4e4fc2e745e515deed03010cca672b16f6374313..358a248140cdc44189647f8c7eadb290a17c55cf 100644
--- a/ui/views/controls/textfield/textfield.h
+++ b/ui/views/controls/textfield/textfield.h
@@ -370,11 +370,14 @@ class VIEWS_EXPORT Textfield : public View,
// Does necessary updates when the text and/or cursor position changes.
void UpdateAfterChange(bool text_changed, bool cursor_changed);
+ // Updates cursor visibility and blinks the cursor if needed.
+ void ShowCursor();
+
// A callback function to periodically update the cursor node_data.
- void UpdateCursor();
+ void UpdateCursorVisibility();
// Update the cursor position in the text field.
- void UpdateCursorView();
+ void UpdateCursorViewPosition();
void PaintTextAndCursor(gfx::Canvas* canvas);
« no previous file with comments | « chrome/browser/ui/views/omnibox/omnibox_view_views_unittest.cc ('k') | ui/views/controls/textfield/textfield.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698