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

Unified Diff: chrome/browser/chromeos/login/screen_locker_tester.cc

Issue 5857002: no native implementation of Textfield. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix comment 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
« no previous file with comments | « no previous file | chrome/browser/ui/views/dropdown_bar_host_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/screen_locker_tester.cc
diff --git a/chrome/browser/chromeos/login/screen_locker_tester.cc b/chrome/browser/chromeos/login/screen_locker_tester.cc
index 34f23c8868a1f27ed201dcb2a1ae93e2f540dfee..d139fda430009a691815721bf1b8ed5a11850d56 100644
--- a/chrome/browser/chromeos/login/screen_locker_tester.cc
+++ b/chrome/browser/chromeos/login/screen_locker_tester.cc
@@ -14,6 +14,7 @@
#include "views/controls/button/button.h"
#include "views/controls/label.h"
#include "views/controls/textfield/textfield.h"
+#include "views/event.h"
#include "views/widget/root_view.h"
#include "views/widget/widget_gtk.h"
@@ -44,7 +45,8 @@ void ScreenLockerTester::EnterPassword(const char* password) {
GdkEvent* event = gdk_event_new(GDK_KEY_PRESS);
event->key.keyval = GDK_Return;
- views::Textfield::Keystroke ret(&event->key);
+ views::KeyEvent key_event(&event->key);
+ views::Textfield::Keystroke ret(&key_event);
ScreenLocker::screen_locker_->screen_lock_view_->HandleKeystroke(pass, ret);
gdk_event_free(event);
« no previous file with comments | « no previous file | chrome/browser/ui/views/dropdown_bar_host_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698