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

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

Issue 2952763002: SearchBoxView now enables/disables cursor based on user interaction. (Closed)
Patch Set: SearchBoxView now enables/disables cursor based on user interaction. Created 3 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 bc571142836650f69f08b19449688089043e82b6..a463e01fe7a311da85112f9f5c27137f00337b66 100644
--- a/ui/views/controls/textfield/textfield.h
+++ b/ui/views/controls/textfield/textfield.h
@@ -162,10 +162,14 @@ class VIEWS_EXPORT Textfield : public View,
placeholder_text_color_ = color;
}
+ SkColor placeholder_text_color() { return placeholder_text_color_; }
+
void set_placeholder_text_draw_flags(int flags) {
placeholder_text_draw_flags_ = flags;
}
+ int placeholder_text_draw_flags() { return placeholder_text_draw_flags_; }
+
// Sets whether to indicate the textfield has invalid content.
void SetInvalid(bool invalid);
bool invalid() const { return invalid_; }

Powered by Google App Engine
This is Rietveld 408576698