Index: views/controls/textfield/native_textfield_gtk.cc |
diff --git a/views/controls/textfield/native_textfield_gtk.cc b/views/controls/textfield/native_textfield_gtk.cc |
index b52a50bbd22aac612229dbff80dc1316b25ed276..2f046eb52c6b5a44645b406e744e6c3aa5c8e145 100644 |
--- a/views/controls/textfield/native_textfield_gtk.cc |
+++ b/views/controls/textfield/native_textfield_gtk.cc |
@@ -354,7 +354,8 @@ gboolean NativeTextfieldGtk::OnKeyPressEventHandler( |
gboolean NativeTextfieldGtk::OnKeyPressEvent(GdkEventKey* event) { |
Textfield::Controller* controller = textfield_->GetController(); |
if (controller) { |
- Textfield::Keystroke ks(event); |
+ KeyEvent key_event(event); |
+ Textfield::Keystroke ks(&key_event); |
return controller->HandleKeystroke(textfield_, ks); |
} |
return false; |
@@ -411,13 +412,4 @@ void NativeTextfieldGtk::NativeControlCreated(GtkWidget* widget) { |
G_CALLBACK(OnKeyPressEventHandler), this); |
} |
-//////////////////////////////////////////////////////////////////////////////// |
-// NativeTextfieldWrapper, public: |
- |
-// static |
-NativeTextfieldWrapper* NativeTextfieldWrapper::CreateWrapper( |
- Textfield* field) { |
- return new NativeTextfieldGtk(field); |
-} |
- |
} // namespace views |