| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_BASE_LOGIN_DISPLAY_HOST_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_BASE_LOGIN_DISPLAY_HOST_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_BASE_LOGIN_DISPLAY_HOST_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_BASE_LOGIN_DISPLAY_HOST_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
| 13 #include "chrome/browser/chromeos/login/login_display.h" | 13 #include "chrome/browser/chromeos/login/login_display.h" |
| 14 #include "chrome/browser/chromeos/login/login_display_host.h" | 14 #include "chrome/browser/chromeos/login/login_display_host.h" |
| 15 #include "chrome/browser/chromeos/settings/ownership_service.h" | 15 #include "chrome/browser/chromeos/settings/device_settings_service.h" |
| 16 #include "content/public/browser/notification_observer.h" | 16 #include "content/public/browser/notification_observer.h" |
| 17 #include "content/public/browser/notification_registrar.h" | 17 #include "content/public/browser/notification_registrar.h" |
| 18 #include "ui/gfx/rect.h" | 18 #include "ui/gfx/rect.h" |
| 19 | 19 |
| 20 class PrefService; | 20 class PrefService; |
| 21 | 21 |
| 22 namespace policy { | 22 namespace policy { |
| 23 class AutoEnrollmentClient; | 23 class AutoEnrollmentClient; |
| 24 } // namespace policy | 24 } // namespace policy |
| 25 | 25 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 const content::NotificationDetails& details) OVERRIDE; | 67 const content::NotificationDetails& details) OVERRIDE; |
| 68 | 68 |
| 69 private: | 69 private: |
| 70 // Marks display host for deletion. | 70 // Marks display host for deletion. |
| 71 // If |post_quit_task| is true also posts Quit task to the MessageLoop. | 71 // If |post_quit_task| is true also posts Quit task to the MessageLoop. |
| 72 void ShutdownDisplayHost(bool post_quit_task); | 72 void ShutdownDisplayHost(bool post_quit_task); |
| 73 | 73 |
| 74 // Start sign in transition animation. | 74 // Start sign in transition animation. |
| 75 void StartAnimation(); | 75 void StartAnimation(); |
| 76 | 76 |
| 77 // Callback for completion of the |ownership_status_checker_|. | 77 // Callback for the ownership status check. |
| 78 void OnOwnershipStatusCheckDone(OwnershipService::Status status, | 78 void OnOwnershipStatusCheckDone(DeviceSettingsService::OwnershipStatus status, |
| 79 bool current_user_is_owner); | 79 bool current_user_is_owner); |
| 80 | 80 |
| 81 // Callback for completion of the |auto_enrollment_client_|. | 81 // Callback for completion of the |auto_enrollment_client_|. |
| 82 void OnAutoEnrollmentClientDone(); | 82 void OnAutoEnrollmentClientDone(); |
| 83 | 83 |
| 84 // Forces auto-enrollment on the appropriate controller. | 84 // Forces auto-enrollment on the appropriate controller. |
| 85 void ForceAutoEnrollment(); | 85 void ForceAutoEnrollment(); |
| 86 | 86 |
| 87 // Used to calculate position of the screens and background. | 87 // Used to calculate position of the screens and background. |
| 88 gfx::Rect background_bounds_; | 88 gfx::Rect background_bounds_; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 110 | 110 |
| 111 // Whether progress bar is shown on the OOBE page. | 111 // Whether progress bar is shown on the OOBE page. |
| 112 bool oobe_progress_bar_visible_; | 112 bool oobe_progress_bar_visible_; |
| 113 | 113 |
| 114 DISALLOW_COPY_AND_ASSIGN(BaseLoginDisplayHost); | 114 DISALLOW_COPY_AND_ASSIGN(BaseLoginDisplayHost); |
| 115 }; | 115 }; |
| 116 | 116 |
| 117 } // namespace chromeos | 117 } // namespace chromeos |
| 118 | 118 |
| 119 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_BASE_LOGIN_DISPLAY_HOST_H_ | 119 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_BASE_LOGIN_DISPLAY_HOST_H_ |
| OLD | NEW |