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

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

Issue 6675005: Integrate the new input method API for Views into Chromium. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 9 years, 9 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: chrome/browser/chromeos/login/screen_locker.cc
diff --git a/chrome/browser/chromeos/login/screen_locker.cc b/chrome/browser/chromeos/login/screen_locker.cc
index 9c0530e89a68d068db516b06bb2e267c3869a1ea..c36bdd87a7990e0a62f9fb69bdbfeb8c6a323fcb 100644
--- a/chrome/browser/chromeos/login/screen_locker.cc
+++ b/chrome/browser/chromeos/login/screen_locker.cc
@@ -693,6 +693,11 @@ void ScreenLocker::Init() {
lock_window_ = lock_window;
lock_window_->Init(NULL, init_bounds);
+ // Disables input method explicitly, because:
+ // 1. Input method only works when top-level Widget gets keyboard focus.
+ // 2. Screen Locker shouldn't allow the user to use input method.
+ lock_window_->native_widget()->ReplaceInputMethod(NULL);
oshima 2011/03/24 22:58:47 Two q: 1) I assume we'll not use new API for exist
James Su 2011/03/25 05:57:21 Yes, I guess so. As long as we are not going to us
oshima 2011/03/25 17:31:25 I think new API is needed regardless. Improvement
+
g_signal_connect(lock_window_->GetNativeView(), "client-event",
G_CALLBACK(OnClientEventThunk), this);

Powered by Google App Engine
This is Rietveld 408576698