| 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_LOCK_WEBUI_SCREEN_LOCKER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_LOCK_WEBUI_SCREEN_LOCKER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_LOCK_WEBUI_SCREEN_LOCKER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_LOCK_WEBUI_SCREEN_LOCKER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 class WebUIScreenLocker : public WebUILoginView, | 48 class WebUIScreenLocker : public WebUILoginView, |
| 49 public LoginDisplay::Delegate, | 49 public LoginDisplay::Delegate, |
| 50 public ash::LockStateObserver, | 50 public ash::LockStateObserver, |
| 51 public views::WidgetObserver, | 51 public views::WidgetObserver, |
| 52 public PowerManagerClient::Observer, | 52 public PowerManagerClient::Observer, |
| 53 public ash::ShellObserver, | 53 public ash::ShellObserver, |
| 54 public keyboard::KeyboardControllerObserver, | 54 public keyboard::KeyboardControllerObserver, |
| 55 public display::DisplayObserver, | 55 public display::DisplayObserver, |
| 56 public content::WebContentsObserver { | 56 public content::WebContentsObserver { |
| 57 public: | 57 public: |
| 58 // Returns true if the lock screen should be shared. |
| 59 static bool ShouldShareLockScreen(); |
| 60 static void Preload(); |
| 61 |
| 58 explicit WebUIScreenLocker(ScreenLocker* screen_locker); | 62 explicit WebUIScreenLocker(ScreenLocker* screen_locker); |
| 59 ~WebUIScreenLocker() override; | 63 ~WebUIScreenLocker() override; |
| 60 | 64 |
| 61 // Begin initializing the widget and views::WebView that show the lock screen. | 65 // Begin initializing the widget and views::WebView that show the lock screen. |
| 62 // ScreenLockReady is called when all initialization has finished. | 66 // ScreenLockReady is called when all initialization has finished. |
| 63 void LockScreen(); | 67 void LockScreen(); |
| 64 | 68 |
| 65 // Enable/disable password input. | 69 // Enable/disable password input. |
| 66 void SetInputEnabled(bool enabled); | 70 void SetInputEnabled(bool enabled); |
| 67 | 71 |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 bool is_observing_keyboard_ = false; | 185 bool is_observing_keyboard_ = false; |
| 182 | 186 |
| 183 base::WeakPtrFactory<WebUIScreenLocker> weak_factory_; | 187 base::WeakPtrFactory<WebUIScreenLocker> weak_factory_; |
| 184 | 188 |
| 185 DISALLOW_COPY_AND_ASSIGN(WebUIScreenLocker); | 189 DISALLOW_COPY_AND_ASSIGN(WebUIScreenLocker); |
| 186 }; | 190 }; |
| 187 | 191 |
| 188 } // namespace chromeos | 192 } // namespace chromeos |
| 189 | 193 |
| 190 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOCK_WEBUI_SCREEN_LOCKER_H_ | 194 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOCK_WEBUI_SCREEN_LOCKER_H_ |
| OLD | NEW |