Index: views/controls/textfield/native_textfield_views.h |
diff --git a/views/controls/textfield/native_textfield_views.h b/views/controls/textfield/native_textfield_views.h |
index 1f801470b7a39c4473098cc344ae279fd5576539..a28dc697911ec6c4a29b7bad0b7bb42ba724ef2e 100644 |
--- a/views/controls/textfield/native_textfield_views.h |
+++ b/views/controls/textfield/native_textfield_views.h |
@@ -169,10 +169,6 @@ class NativeTextfieldViews : public views::View, |
// Handle the keyevent. |
bool HandleKeyEvent(const KeyEvent& key_event); |
- // Utility function. Gets the character corresponding to a keyevent. |
- // Returns 0 if the character is not printable. |
- char16 GetPrintableChar(const KeyEvent& key_event); |
- |
// Find a cusor position for given |point| in this views coordinates. |
size_t FindCursorPosition(const gfx::Point& point) const; |
@@ -194,6 +190,15 @@ class NativeTextfieldViews : public views::View, |
// Utility function to create the context menu if one does not already exist. |
void InitContextMenuIfRequired(); |
+ // Convenience method to call TextfieldController::OnBeforeUserAction(); |
+ void OnBeforeUserAction(); |
+ |
+ // Convenience method to call TextfieldController::OnAfterUserAction(); |
+ void OnAfterUserAction(); |
+ |
+ // Checks if a char is valid to be inserted into the textfield. |
+ static bool IsValidChar(char16 ch, int flags); |
+ |
// The parent textfield, the owner of this object. |
Textfield* textfield_; |