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

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

Issue 6034002: Replace Textfield::Keystroke with views::KeyEvent (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_views.cc
diff --git a/views/controls/textfield/native_textfield_views.cc b/views/controls/textfield/native_textfield_views.cc
index b7c01f81c9abe4f86348799546cde8ee7ec7941e..c9c3ab5ab15d19eed2e564464e29688a823a2889 100644
--- a/views/controls/textfield/native_textfield_views.cc
+++ b/views/controls/textfield/native_textfield_views.cc
@@ -96,11 +96,11 @@ void NativeTextfieldViews::OnMouseReleased(const views::MouseEvent& e,
}
bool NativeTextfieldViews::OnKeyPressed(const views::KeyEvent& e) {
+ DLOG(WARNING) << "on key pressed";
Textfield::Controller* controller = textfield_->GetController();
bool handled = false;
if (controller) {
- Textfield::Keystroke ks(&e);
- handled = controller->HandleKeystroke(textfield_, ks);
+ handled = controller->HandleKeyEvent(textfield_, e);
}
return handled || HandleKeyEvent(e);
}

Powered by Google App Engine
This is Rietveld 408576698