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

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: key_code, ET_KEY_PRESS for WM_CHAR Created 9 years, 12 months 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 a3ad114eb91a49c752df741c441d3499428b0ca5..56fec92f91a3cc8479285e5765c1da8656344ae3 100644
--- a/views/controls/textfield/native_textfield_views.cc
+++ b/views/controls/textfield/native_textfield_views.cc
@@ -98,10 +98,8 @@ void NativeTextfieldViews::OnMouseReleased(const views::MouseEvent& e,
bool NativeTextfieldViews::OnKeyPressed(const views::KeyEvent& e) {
Textfield::Controller* controller = textfield_->GetController();
bool handled = false;
- if (controller) {
- Textfield::Keystroke ks(&e);
- handled = controller->HandleKeystroke(textfield_, ks);
- }
+ if (controller)
+ handled = controller->HandleKeyEvent(textfield_, e);
return handled || HandleKeyEvent(e);
}
« no previous file with comments | « views/controls/textfield/native_textfield_gtk.cc ('k') | views/controls/textfield/native_textfield_views_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698