| Index: ui/views/controls/textfield/textfield.cc
|
| diff --git a/ui/views/controls/textfield/textfield.cc b/ui/views/controls/textfield/textfield.cc
|
| index 7b5371ba7ae0ab149c5a182d98cf49255cd2d2b1..bb9ed2caf230851168c26b07934dc16b23aae4b4 100644
|
| --- a/ui/views/controls/textfield/textfield.cc
|
| +++ b/ui/views/controls/textfield/textfield.cc
|
| @@ -1099,21 +1099,6 @@ void Textfield::InsertChar(base::char16 ch, int flags) {
|
| }
|
| }
|
|
|
| -gfx::NativeWindow Textfield::GetAttachedWindow() const {
|
| - // Imagine the following hierarchy.
|
| - // [NativeWidget A] - FocusManager
|
| - // [View]
|
| - // [NativeWidget B]
|
| - // [View]
|
| - // [View X]
|
| - // An important thing is that [NativeWidget A] owns Win32 input focus even
|
| - // when [View X] is logically focused by FocusManager. As a result, an Win32
|
| - // IME may want to interact with the native view of [NativeWidget A] rather
|
| - // than that of [NativeWidget B]. This is why we need to call
|
| - // GetTopLevelWidget() here.
|
| - return GetWidget()->GetTopLevelWidget()->GetNativeView();
|
| -}
|
| -
|
| ui::TextInputType Textfield::GetTextInputType() const {
|
| if (read_only() || !enabled())
|
| return ui::TEXT_INPUT_TYPE_NONE;
|
|
|