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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 void SetOobeProgressBarVisible(bool visible); | 190 void SetOobeProgressBarVisible(bool visible); |
190 | 191 |
191 // Tries to play startup sound. If sound can't be played right now, | 192 // Tries to play startup sound. If sound can't be played right now, |
192 // for instance, because cras server is not initialized, playback | 193 // for instance, because cras server is not initialized, playback |
193 // will be delayed. | 194 // will be delayed. |
194 void TryToPlayStartupSound(); | 195 void TryToPlayStartupSound(); |
195 | 196 |
196 // Called when login-prompt-visible signal is caught. | 197 // Called when login-prompt-visible signal is caught. |
197 void OnLoginPromptVisible(); | 198 void OnLoginPromptVisible(); |
198 | 199 |
| 200 // Called when user oauth token handler check is completed. |
| 201 void OnTokenHandlerChecked(const user_manager::UserID& user_id, |
| 202 TokenHandlerUtil::TokenHandleStatus token_status); |
| 203 |
199 // Used to calculate position of the screens and background. | 204 // Used to calculate position of the screens and background. |
200 gfx::Rect background_bounds_; | 205 gfx::Rect background_bounds_; |
201 | 206 |
202 content::NotificationRegistrar registrar_; | 207 content::NotificationRegistrar registrar_; |
203 | 208 |
204 // Default LoginDisplayHost. | 209 // Default LoginDisplayHost. |
205 static LoginDisplayHost* default_host_; | 210 static LoginDisplayHost* default_host_; |
206 | 211 |
207 // The controller driving the auto-enrollment check. | 212 // The controller driving the auto-enrollment check. |
208 scoped_ptr<AutoEnrollmentController> auto_enrollment_controller_; | 213 scoped_ptr<AutoEnrollmentController> auto_enrollment_controller_; |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
281 // Active instance of authentication prewarmer. | 286 // Active instance of authentication prewarmer. |
282 scoped_ptr<AuthPrewarmer> auth_prewarmer_; | 287 scoped_ptr<AuthPrewarmer> auth_prewarmer_; |
283 | 288 |
284 // A focus ring controller to draw focus ring around view for keyboard | 289 // A focus ring controller to draw focus ring around view for keyboard |
285 // driven oobe. | 290 // driven oobe. |
286 scoped_ptr<FocusRingController> focus_ring_controller_; | 291 scoped_ptr<FocusRingController> focus_ring_controller_; |
287 | 292 |
288 // Handles special keys for keyboard driven oobe. | 293 // Handles special keys for keyboard driven oobe. |
289 scoped_ptr<KeyboardDrivenOobeKeyHandler> keyboard_driven_oobe_key_handler_; | 294 scoped_ptr<KeyboardDrivenOobeKeyHandler> keyboard_driven_oobe_key_handler_; |
290 | 295 |
| 296 // Handles token handle operations. |
| 297 scoped_ptr<TokenHandlerUtil> token_handler_util_; |
| 298 |
291 FinalizeAnimationType finalize_animation_type_; | 299 FinalizeAnimationType finalize_animation_type_; |
292 | 300 |
293 // Time when login prompt visible signal is received. Used for | 301 // Time when login prompt visible signal is received. Used for |
294 // calculations of delay before startup sound. | 302 // calculations of delay before startup sound. |
295 base::TimeTicks login_prompt_visible_time_; | 303 base::TimeTicks login_prompt_visible_time_; |
296 | 304 |
297 // True when request to play startup sound was sent to | 305 // True when request to play startup sound was sent to |
298 // SoundsManager. | 306 // SoundsManager. |
299 bool startup_sound_played_; | 307 bool startup_sound_played_; |
300 | 308 |
(...skipping 17 matching lines...) Expand all Loading... |
318 | 326 |
319 base::WeakPtrFactory<LoginDisplayHostImpl> pointer_factory_; | 327 base::WeakPtrFactory<LoginDisplayHostImpl> pointer_factory_; |
320 base::WeakPtrFactory<LoginDisplayHostImpl> animation_weak_ptr_factory_; | 328 base::WeakPtrFactory<LoginDisplayHostImpl> animation_weak_ptr_factory_; |
321 | 329 |
322 DISALLOW_COPY_AND_ASSIGN(LoginDisplayHostImpl); | 330 DISALLOW_COPY_AND_ASSIGN(LoginDisplayHostImpl); |
323 }; | 331 }; |
324 | 332 |
325 } // namespace chromeos | 333 } // namespace chromeos |
326 | 334 |
327 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_HOST_IMPL_H_ | 335 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_HOST_IMPL_H_ |
OLD | NEW |