OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_LOCK_SCREEN_LOCKER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_LOCK_SCREEN_LOCKER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_LOCK_SCREEN_LOCKER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_LOCK_SCREEN_LOCKER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
14 #include "base/sequenced_task_runner_helpers.h" | 14 #include "base/sequenced_task_runner_helpers.h" |
15 #include "base/time/time.h" | 15 #include "base/time/time.h" |
16 #include "chrome/browser/chromeos/login/help_app_launcher.h" | 16 #include "chrome/browser/chromeos/login/help_app_launcher.h" |
17 #include "chrome/browser/chromeos/login/lock/screen_locker_delegate.h" | 17 #include "chrome/browser/chromeos/login/lock/screen_locker_delegate.h" |
18 #include "chrome/browser/chromeos/login/ui/login_display.h" | 18 #include "chrome/browser/chromeos/login/ui/login_display.h" |
| 19 #include "chromeos/ime/input_method_manager.h" |
19 #include "chromeos/login/auth/auth_status_consumer.h" | 20 #include "chromeos/login/auth/auth_status_consumer.h" |
20 #include "chromeos/login/auth/user_context.h" | 21 #include "chromeos/login/auth/user_context.h" |
21 #include "components/user_manager/user.h" | 22 #include "components/user_manager/user.h" |
22 #include "ui/base/accelerators/accelerator.h" | 23 #include "ui/base/accelerators/accelerator.h" |
23 | 24 |
24 namespace content { | 25 namespace content { |
25 class WebUI; | 26 class WebUI; |
26 } | 27 } |
27 | 28 |
28 namespace gfx { | 29 namespace gfx { |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 // Number of bad login attempts in a row. | 180 // Number of bad login attempts in a row. |
180 int incorrect_passwords_count_; | 181 int incorrect_passwords_count_; |
181 | 182 |
182 // Copy of parameters passed to last call of OnLoginSuccess for usage in | 183 // Copy of parameters passed to last call of OnLoginSuccess for usage in |
183 // UnlockOnLoginSuccess(). | 184 // UnlockOnLoginSuccess(). |
184 scoped_ptr<AuthenticationParametersCapture> authentication_capture_; | 185 scoped_ptr<AuthenticationParametersCapture> authentication_capture_; |
185 | 186 |
186 // Provider for button icon set by the screenlockPrivate API. | 187 // Provider for button icon set by the screenlockPrivate API. |
187 scoped_ptr<ScreenlockIconProvider> screenlock_icon_provider_; | 188 scoped_ptr<ScreenlockIconProvider> screenlock_icon_provider_; |
188 | 189 |
| 190 scoped_refptr<input_method::InputMethodManager::State> saved_ime_state_; |
| 191 |
189 base::WeakPtrFactory<ScreenLocker> weak_factory_; | 192 base::WeakPtrFactory<ScreenLocker> weak_factory_; |
190 | 193 |
191 DISALLOW_COPY_AND_ASSIGN(ScreenLocker); | 194 DISALLOW_COPY_AND_ASSIGN(ScreenLocker); |
192 }; | 195 }; |
193 | 196 |
194 } // namespace chromeos | 197 } // namespace chromeos |
195 | 198 |
196 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOCK_SCREEN_LOCKER_H_ | 199 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOCK_SCREEN_LOCKER_H_ |
OLD | NEW |