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

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

Issue 11421204: Use native theme colors for textfields; etc. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: [En|Dis]able the RenderText cursor instead of setting transient visibility. Created 8 years 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/native_textfield_wrapper.h
diff --git a/ui/views/controls/textfield/native_textfield_wrapper.h b/ui/views/controls/textfield/native_textfield_wrapper.h
index f5a6c5d4effbc3390bbaa7d66dfcff1322c2ed49..aaaaa15e08fd17b27893b34d77803a7116ee0777 100644
--- a/ui/views/controls/textfield/native_textfield_wrapper.h
+++ b/ui/views/controls/textfield/native_textfield_wrapper.h
@@ -72,9 +72,6 @@ class VIEWS_EXPORT NativeTextfieldWrapper {
// Updates the background color used when painting the native text field.
virtual void UpdateBackgroundColor() = 0;
- // Updates the cursor color used when painting the native text field.
- virtual void UpdateCursorColor() = 0;
-
// Updates the read-only state of the native text field.
virtual void UpdateReadOnly() = 0;
@@ -124,6 +121,10 @@ class VIEWS_EXPORT NativeTextfieldWrapper {
// Returns the currnet cursor position.
virtual size_t GetCursorPosition() const = 0;
+ // Get or set whether or not the cursor is enabled.
+ virtual bool GetCursorEnabled() const = 0;
+ virtual void SetCursorEnabled(bool enabled) = 0;
+
// Following methods are to forward key/focus related events to the
// views wrapper so that TextfieldViews can handle key inputs without
// having focus.

Powered by Google App Engine
This is Rietveld 408576698