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

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

Issue 2660593002: Paint text cursor in LAYER_SOLID_COLOR (Closed)
Patch Set: comments Created 3 years, 10 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
« no previous file with comments | « ui/gfx/render_text.cc ('k') | ui/views/controls/textfield/textfield.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/textfield/textfield.h
diff --git a/ui/views/controls/textfield/textfield.h b/ui/views/controls/textfield/textfield.h
index 69d7b462bffc4694539a20479bb55443e58c334c..4e4fc2e745e515deed03010cca672b16f6374313 100644
--- a/ui/views/controls/textfield/textfield.h
+++ b/ui/views/controls/textfield/textfield.h
@@ -373,8 +373,8 @@ class VIEWS_EXPORT Textfield : public View,
// A callback function to periodically update the cursor node_data.
void UpdateCursor();
- // Repaint the cursor.
- void RepaintCursor();
+ // Update the cursor position in the text field.
+ void UpdateCursorView();
void PaintTextAndCursor(gfx::Canvas* canvas);
@@ -524,6 +524,9 @@ class VIEWS_EXPORT Textfield : public View,
std::unique_ptr<ui::SimpleMenuModel> context_menu_contents_;
std::unique_ptr<views::MenuRunner> context_menu_runner_;
+ // View containing the text cursor.
+ View cursor_view_;
+
// Used to bind callback functions to this object.
base::WeakPtrFactory<Textfield> weak_ptr_factory_;
« no previous file with comments | « ui/gfx/render_text.cc ('k') | ui/views/controls/textfield/textfield.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698