| 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_WEBUI_SCREEN_LOCKER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_SCREEN_LOCKER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_SCREEN_LOCKER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_SCREEN_LOCKER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 virtual void OnStartEnterpriseEnrollment() OVERRIDE; | 62 virtual void OnStartEnterpriseEnrollment() OVERRIDE; |
| 63 | 63 |
| 64 // content::NotificationObserver (via WebUILoginView) implementation. | 64 // content::NotificationObserver (via WebUILoginView) implementation. |
| 65 virtual void Observe(int type, | 65 virtual void Observe(int type, |
| 66 const content::NotificationSource& source, | 66 const content::NotificationSource& source, |
| 67 const content::NotificationDetails& details) OVERRIDE; | 67 const content::NotificationDetails& details) OVERRIDE; |
| 68 | 68 |
| 69 // LockWindow::Observer implementation. | 69 // LockWindow::Observer implementation. |
| 70 virtual void OnLockWindowReady() OVERRIDE; | 70 virtual void OnLockWindowReady() OVERRIDE; |
| 71 | 71 |
| 72 // Overridden from WebUILoginView. | |
| 73 virtual StatusAreaViewChromeos::ScreenMode GetScreenMode() OVERRIDE; | |
| 74 virtual views::Widget::InitParams::Type GetStatusAreaWidgetType() OVERRIDE; | |
| 75 | |
| 76 private: | 72 private: |
| 77 friend class test::WebUIScreenLockerTester; | 73 friend class test::WebUIScreenLockerTester; |
| 78 | 74 |
| 79 virtual ~WebUIScreenLocker(); | 75 virtual ~WebUIScreenLocker(); |
| 80 | 76 |
| 81 // The screen locker window. | 77 // The screen locker window. |
| 82 views::Widget* lock_window_; | 78 views::Widget* lock_window_; |
| 83 | 79 |
| 84 // Login UI implementation instance. | 80 // Login UI implementation instance. |
| 85 scoped_ptr<WebUILoginDisplay> login_display_; | 81 scoped_ptr<WebUILoginDisplay> login_display_; |
| 86 | 82 |
| 87 // Used for user image changed notifications. | 83 // Used for user image changed notifications. |
| 88 content::NotificationRegistrar registrar_; | 84 content::NotificationRegistrar registrar_; |
| 89 | 85 |
| 90 // Tracks when the lock window is displayed and ready. | 86 // Tracks when the lock window is displayed and ready. |
| 91 bool lock_ready_; | 87 bool lock_ready_; |
| 92 | 88 |
| 93 // Tracks when the WebUI finishes loading. | 89 // Tracks when the WebUI finishes loading. |
| 94 bool webui_ready_; | 90 bool webui_ready_; |
| 95 | 91 |
| 96 DISALLOW_COPY_AND_ASSIGN(WebUIScreenLocker); | 92 DISALLOW_COPY_AND_ASSIGN(WebUIScreenLocker); |
| 97 }; | 93 }; |
| 98 | 94 |
| 99 } // namespace chromeos | 95 } // namespace chromeos |
| 100 | 96 |
| 101 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_SCREEN_LOCKER_H_ | 97 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_SCREEN_LOCKER_H_ |
| OLD | NEW |