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

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

Issue 358553004: Added text filtering to Overview Mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed Terry's comments. Created 6 years, 6 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 e8361774a943830d0a4947204c4de0c6821884d7..e5152737f54e5d81f31b55760ab4d8b27dd6b643 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();
+ // Sets whether to draw a shadow around the text or not.
+ void SetHasShadow(bool has_shadow);
+
// 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_;
+ // Indicates if the text should be drawn with a shadow.
+ bool has_shadow_;
+
// The drop cursor is a visual cue for where dragged text will be dropped.
bool drop_cursor_visible_;
gfx::SelectionModel drop_cursor_position_;

Powered by Google App Engine
This is Rietveld 408576698