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

Unified Diff: chrome/browser/chromeos/login/captcha_view.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
« no previous file with comments | « chrome/browser/chromeos/login/captcha_view.h ('k') | chrome/browser/chromeos/login/existing_user_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/captcha_view.cc
diff --git a/chrome/browser/chromeos/login/captcha_view.cc b/chrome/browser/chromeos/login/captcha_view.cc
index de66b3eec80e1fa8fe478c841b0b24fa10bb1b2a..debcf89b0168c538433c82f586ce1dc4b0803402 100644
--- a/chrome/browser/chromeos/login/captcha_view.cc
+++ b/chrome/browser/chromeos/login/captcha_view.cc
@@ -120,10 +120,10 @@ void CaptchaView::ViewHierarchyChanged(bool is_add,
captcha_textfield_->RequestFocus();
}
-bool CaptchaView::HandleKeystroke(views::Textfield* sender,
- const views::Textfield::Keystroke& keystroke) {
+bool CaptchaView::HandleKeyEvent(views::Textfield* sender,
+ const views::KeyEvent& key_event) {
if (sender == captcha_textfield_ &&
- keystroke.GetKeyboardCode() == app::VKEY_RETURN) {
+ key_event.GetKeyCode() == app::VKEY_RETURN) {
if (is_standalone_) {
Accept();
} else {
« no previous file with comments | « chrome/browser/chromeos/login/captcha_view.h ('k') | chrome/browser/chromeos/login/existing_user_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698