diff options
author | sadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-01 22:24:11 +0000 |
---|---|---|
committer | sadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-01 22:24:11 +0000 |
commit | f40630d1ba3e640bb9392b96f2397fcf991b98ab (patch) | |
tree | 16995b225f2b03c58a20f5e2b2d852c2138e501c /views/controls/textfield/native_textfield_views.h | |
parent | f0815756f61f11537f1a354646bb0bb9c93433a1 (diff) | |
download | chromium_src-f40630d1ba3e640bb9392b96f2397fcf991b98ab.zip chromium_src-f40630d1ba3e640bb9392b96f2397fcf991b98ab.tar.gz chromium_src-f40630d1ba3e640bb9392b96f2397fcf991b98ab.tar.bz2 |
views textfield: Show the correct cursor.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/6293025
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73357 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/controls/textfield/native_textfield_views.h')
-rw-r--r-- | views/controls/textfield/native_textfield_views.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/views/controls/textfield/native_textfield_views.h b/views/controls/textfield/native_textfield_views.h index fb567cf..1297710 100644 --- a/views/controls/textfield/native_textfield_views.h +++ b/views/controls/textfield/native_textfield_views.h @@ -58,6 +58,8 @@ class NativeTextfieldViews : public views::View, virtual void WillGainFocus(); virtual void DidGainFocus(); virtual void WillLoseFocus(); + virtual gfx::NativeCursor GetCursorForPoint(Event::EventType event_type, + const gfx::Point& p); // views::ContextMenuController overrides: virtual void ShowContextMenu(View* source, @@ -184,6 +186,10 @@ class NativeTextfieldViews : public views::View, // that the text in the textfield has changed. void PropagateTextChange(); + // Does necessary updates when the text and/or the position of the cursor + // changed. + void UpdateAfterChange(bool text_changed, bool cursor_changed); + // Utility function to create the context menu if one does not already exist. void InitContextMenuIfRequired(); |