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 e8361774a943830d0a4947204c4de0c6821884d7..a3d8f9909615f2653241f1d2cbd90f348b63efc8 100644 |
| --- a/ui/views/controls/textfield/textfield.h |
| +++ b/ui/views/controls/textfield/textfield.h |
| @@ -120,6 +120,9 @@ class VIEWS_EXPORT Textfield : public View, |
| void SetSelectionBackgroundColor(SkColor color); |
| void UseDefaultSelectionBackgroundColor(); |
| + // Set drop shadows underneath the text. |
| + void set_shadows(const gfx::ShadowValues& shadows) { shadows_ = shadows; } |
|
flackr
2014/06/27 20:00:07
Does this need to SchedulePaint?
Nina
2014/06/27 22:42:02
Not if we call this before we show the widget. Als
flackr
2014/07/02 15:50:42
As far as I can tell, most methods which modify th
Nina
2014/07/02 17:39:05
Okay, done.
|
| + |
| // Gets/Sets whether or not the cursor is enabled. |
| bool GetCursorEnabled() const; |
| void SetCursorEnabled(bool enabled); |
| @@ -428,6 +431,9 @@ class VIEWS_EXPORT Textfield : public View, |
| base::RepeatingTimer<Textfield> cursor_repaint_timer_; |
| bool cursor_visible_; |
| + // List of drop shadows that are applied to the text. |
| + gfx::ShadowValues shadows_; |
| + |
| // The drop cursor is a visual cue for where dragged text will be dropped. |
| bool drop_cursor_visible_; |
| gfx::SelectionModel drop_cursor_position_; |