| Index: views/controls/text_field.cc
|
| ===================================================================
|
| --- views/controls/text_field.cc (revision 16444)
|
| +++ views/controls/text_field.cc (working copy)
|
| @@ -71,9 +71,7 @@
|
| MSG_WM_CHAR(OnChar)
|
| MSG_WM_CONTEXTMENU(OnContextMenu)
|
| MSG_WM_COPY(OnCopy)
|
| - MSG_WM_CREATE(OnCreate)
|
| MSG_WM_CUT(OnCut)
|
| - MSG_WM_DESTROY(OnDestroy)
|
| MESSAGE_HANDLER_EX(WM_IME_CHAR, OnImeChar)
|
| MESSAGE_HANDLER_EX(WM_IME_STARTCOMPOSITION, OnImeStartComposition)
|
| MESSAGE_HANDLER_EX(WM_IME_COMPOSITION, OnImeComposition)
|
| @@ -121,9 +119,7 @@
|
| void OnChar(TCHAR key, UINT repeat_count, UINT flags);
|
| void OnContextMenu(HWND window, const CPoint& point);
|
| void OnCopy();
|
| - LRESULT OnCreate(CREATESTRUCT* create_struct);
|
| void OnCut();
|
| - void OnDestroy();
|
| LRESULT OnImeChar(UINT message, WPARAM wparam, LPARAM lparam);
|
| LRESULT OnImeStartComposition(UINT message, WPARAM wparam, LPARAM lparam);
|
| LRESULT OnImeComposition(UINT message, WPARAM wparam, LPARAM lparam);
|
| @@ -427,12 +423,6 @@
|
| }
|
| }
|
|
|
| -LRESULT TextField::Edit::OnCreate(CREATESTRUCT* create_struct) {
|
| - SetMsgHandled(FALSE);
|
| - TRACK_HWND_CREATION(m_hWnd);
|
| - return 0;
|
| -}
|
| -
|
| void TextField::Edit::OnCut() {
|
| if (parent_->IsReadOnly() || parent_->IsPassword())
|
| return;
|
| @@ -444,10 +434,6 @@
|
| ReplaceSel(L"", true);
|
| }
|
|
|
| -void TextField::Edit::OnDestroy() {
|
| - TRACK_HWND_DESTRUCTION(m_hWnd);
|
| -}
|
| -
|
| LRESULT TextField::Edit::OnImeChar(UINT message, WPARAM wparam, LPARAM lparam) {
|
| // http://crbug.com/7707: a rich-edit control may crash when it receives a
|
| // WM_IME_CHAR message while it is processing a WM_IME_COMPOSITION message.
|
|
|