Index: views/controls/textfield/native_textfield_views.h |
diff --git a/views/controls/textfield/native_textfield_views.h b/views/controls/textfield/native_textfield_views.h |
index 54c13fb8bf26cd55e382c5846bca0da44c38f869..f26f5fde1ad3278b4203633783df3d9ca62b6cf1 100644 |
--- a/views/controls/textfield/native_textfield_views.h |
+++ b/views/controls/textfield/native_textfield_views.h |
@@ -181,6 +181,9 @@ class NativeTextfieldViews : public View, |
// Repaint the cursor. |
void RepaintCursor(); |
+ // Returns the bounds of character at the current cursor. |
+ gfx::Rect GetCursorBounds(size_t cursor_pos) const; |
+ |
// Update the cursor_bounds and text_offset. |
void UpdateCursorBoundsAndTextOffset(); |
@@ -241,15 +244,18 @@ class NativeTextfieldViews : public View, |
// The x offset for the text to be drawn, without insets; |
int text_offset_; |
- // Cursor's bounds in the textfield's coordinates. |
- gfx::Rect cursor_bounds_; |
- |
// True if the textfield is in insert mode. |
bool insert_; |
- // The drawing state of cursor. True to draw. |
+ // The local bounds and visibility of the textfield's primary text cursor. |
+ gfx::Rect cursor_bounds_; |
bool is_cursor_visible_; |
+ // The local bounds and visibility of the textfield's drop text cursor. |
+ // The drop cursor is a visual cue for where dragged text will be dropped. |
+ gfx::Rect drop_cursor_bounds_; |
+ bool is_drop_cursor_visible_; |
+ |
// True if InputMethod::CancelComposition() should not be called. |
bool skip_input_method_cancel_composition_; |