Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(135)

Unified Diff: views/controls/textfield/native_textfield_gtk.cc

Issue 5857002: no native implementation of Textfield. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: " Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698