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_UI_LOGIN_DISPLAY_HOST_IMPL_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_HOST_IMPL_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_HOST_IMPL_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_HOST_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "ash/shell_delegate.h" | 11 #include "ash/shell_delegate.h" |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
15 #include "chrome/browser/chromeos/login/app_launch_controller.h" | 15 #include "chrome/browser/chromeos/login/app_launch_controller.h" |
16 #include "chrome/browser/chromeos/login/auth/auth_prewarmer.h" | 16 #include "chrome/browser/chromeos/login/auth/auth_prewarmer.h" |
17 #include "chrome/browser/chromeos/login/existing_user_controller.h" | 17 #include "chrome/browser/chromeos/login/existing_user_controller.h" |
18 #include "chrome/browser/chromeos/login/signin/token_handler_util.h" | |
18 #include "chrome/browser/chromeos/login/signin_screen_controller.h" | 19 #include "chrome/browser/chromeos/login/signin_screen_controller.h" |
19 #include "chrome/browser/chromeos/login/ui/login_display.h" | 20 #include "chrome/browser/chromeos/login/ui/login_display.h" |
20 #include "chrome/browser/chromeos/login/ui/login_display_host.h" | 21 #include "chrome/browser/chromeos/login/ui/login_display_host.h" |
21 #include "chrome/browser/chromeos/login/wizard_controller.h" | 22 #include "chrome/browser/chromeos/login/wizard_controller.h" |
22 #include "chrome/browser/chromeos/settings/device_settings_service.h" | 23 #include "chrome/browser/chromeos/settings/device_settings_service.h" |
23 #include "chromeos/audio/cras_audio_handler.h" | 24 #include "chromeos/audio/cras_audio_handler.h" |
24 #include "chromeos/dbus/session_manager_client.h" | 25 #include "chromeos/dbus/session_manager_client.h" |
25 #include "content/public/browser/notification_observer.h" | 26 #include "content/public/browser/notification_observer.h" |
26 #include "content/public/browser/notification_registrar.h" | 27 #include "content/public/browser/notification_registrar.h" |
27 #include "content/public/browser/web_contents_observer.h" | 28 #include "content/public/browser/web_contents_observer.h" |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
188 void SetOobeProgressBarVisible(bool visible); | 189 void SetOobeProgressBarVisible(bool visible); |
189 | 190 |
190 // Tries to play startup sound. If sound can't be played right now, | 191 // Tries to play startup sound. If sound can't be played right now, |
191 // for instance, because cras server is not initialized, playback | 192 // for instance, because cras server is not initialized, playback |
192 // will be delayed. | 193 // will be delayed. |
193 void TryToPlayStartupSound(); | 194 void TryToPlayStartupSound(); |
194 | 195 |
195 // Called when login-prompt-visible signal is caught. | 196 // Called when login-prompt-visible signal is caught. |
196 void OnLoginPromptVisible(); | 197 void OnLoginPromptVisible(); |
197 | 198 |
199 // Called when user oauth token handler check is completed. | |
200 void OnTokenHandlerChecked(const user_manager::UserID& user_id, | |
201 TokenHandlerUtil::TokenHandleStatus token_status); | |
202 | |
198 // Used to calculate position of the screens and background. | 203 // Used to calculate position of the screens and background. |
199 gfx::Rect background_bounds_; | 204 gfx::Rect background_bounds_; |
200 | 205 |
201 content::NotificationRegistrar registrar_; | 206 content::NotificationRegistrar registrar_; |
202 | 207 |
203 // Default LoginDisplayHost. | 208 // Default LoginDisplayHost. |
204 static LoginDisplayHost* default_host_; | 209 static LoginDisplayHost* default_host_; |
205 | 210 |
206 // The controller driving the auto-enrollment check. | 211 // The controller driving the auto-enrollment check. |
207 scoped_ptr<AutoEnrollmentController> auto_enrollment_controller_; | 212 scoped_ptr<AutoEnrollmentController> auto_enrollment_controller_; |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
280 // Active instance of authentication prewarmer. | 285 // Active instance of authentication prewarmer. |
281 scoped_ptr<AuthPrewarmer> auth_prewarmer_; | 286 scoped_ptr<AuthPrewarmer> auth_prewarmer_; |
282 | 287 |
283 // A focus ring controller to draw focus ring around view for keyboard | 288 // A focus ring controller to draw focus ring around view for keyboard |
284 // driven oobe. | 289 // driven oobe. |
285 scoped_ptr<FocusRingController> focus_ring_controller_; | 290 scoped_ptr<FocusRingController> focus_ring_controller_; |
286 | 291 |
287 // Handles special keys for keyboard driven oobe. | 292 // Handles special keys for keyboard driven oobe. |
288 scoped_ptr<KeyboardDrivenOobeKeyHandler> keyboard_driven_oobe_key_handler_; | 293 scoped_ptr<KeyboardDrivenOobeKeyHandler> keyboard_driven_oobe_key_handler_; |
289 | 294 |
295 // Handles special keys for keyboard driven oobe. | |
Nikita (slow)
2015/03/20 18:06:50
nit: update comment
Denis Kuznetsov (DE-MUC)
2015/03/20 19:50:30
Done.
| |
296 scoped_ptr<TokenHandlerUtil> token_handler_util_; | |
297 | |
290 FinalizeAnimationType finalize_animation_type_; | 298 FinalizeAnimationType finalize_animation_type_; |
291 | 299 |
292 // Time when login prompt visible signal is received. Used for | 300 // Time when login prompt visible signal is received. Used for |
293 // calculations of delay before startup sound. | 301 // calculations of delay before startup sound. |
294 base::TimeTicks login_prompt_visible_time_; | 302 base::TimeTicks login_prompt_visible_time_; |
295 | 303 |
296 // True when request to play startup sound was sent to | 304 // True when request to play startup sound was sent to |
297 // SoundsManager. | 305 // SoundsManager. |
298 bool startup_sound_played_; | 306 bool startup_sound_played_; |
299 | 307 |
(...skipping 13 matching lines...) Expand all Loading... | |
313 | 321 |
314 base::WeakPtrFactory<LoginDisplayHostImpl> pointer_factory_; | 322 base::WeakPtrFactory<LoginDisplayHostImpl> pointer_factory_; |
315 base::WeakPtrFactory<LoginDisplayHostImpl> animation_weak_ptr_factory_; | 323 base::WeakPtrFactory<LoginDisplayHostImpl> animation_weak_ptr_factory_; |
316 | 324 |
317 DISALLOW_COPY_AND_ASSIGN(LoginDisplayHostImpl); | 325 DISALLOW_COPY_AND_ASSIGN(LoginDisplayHostImpl); |
318 }; | 326 }; |
319 | 327 |
320 } // namespace chromeos | 328 } // namespace chromeos |
321 | 329 |
322 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_HOST_IMPL_H_ | 330 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_HOST_IMPL_H_ |
OLD | NEW |