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