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 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "ash/wm/session_state_observer.h" | 10 #include "ash/wm/session_state_observer.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 public ScreenLockerDelegate, | 44 public ScreenLockerDelegate, |
45 public LockWindow::Observer, | 45 public LockWindow::Observer, |
46 public ash::SessionStateObserver, | 46 public ash::SessionStateObserver, |
47 public views::WidgetObserver, | 47 public views::WidgetObserver, |
48 public PowerManagerClient::Observer, | 48 public PowerManagerClient::Observer, |
49 public content::WebContentsObserver { | 49 public content::WebContentsObserver { |
50 public: | 50 public: |
51 explicit WebUIScreenLocker(ScreenLocker* screen_locker); | 51 explicit WebUIScreenLocker(ScreenLocker* screen_locker); |
52 | 52 |
53 // ScreenLockerDelegate implementation. | 53 // ScreenLockerDelegate implementation. |
54 virtual void LockScreen(bool unlock_on_input) OVERRIDE; | 54 virtual void LockScreen() OVERRIDE; |
55 virtual void ScreenLockReady() OVERRIDE; | 55 virtual void ScreenLockReady() OVERRIDE; |
56 virtual void OnAuthenticate() OVERRIDE; | 56 virtual void OnAuthenticate() OVERRIDE; |
57 virtual void SetInputEnabled(bool enabled) OVERRIDE; | 57 virtual void SetInputEnabled(bool enabled) OVERRIDE; |
58 virtual void ShowErrorMessage( | 58 virtual void ShowErrorMessage( |
59 int error_msg_id, | 59 int error_msg_id, |
60 HelpAppLauncher::HelpTopic help_topic_id) OVERRIDE; | 60 HelpAppLauncher::HelpTopic help_topic_id) OVERRIDE; |
61 virtual void ClearErrors() OVERRIDE; | 61 virtual void ClearErrors() OVERRIDE; |
62 virtual void AnimateAuthenticationSuccess() OVERRIDE; | 62 virtual void AnimateAuthenticationSuccess() OVERRIDE; |
63 virtual gfx::NativeWindow GetNativeWindow() const OVERRIDE; | 63 virtual gfx::NativeWindow GetNativeWindow() const OVERRIDE; |
64 virtual content::WebUI* GetAssociatedWebUI() OVERRIDE; | 64 virtual content::WebUI* GetAssociatedWebUI() OVERRIDE; |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 base::TimeTicks lock_time_; | 134 base::TimeTicks lock_time_; |
135 | 135 |
136 base::WeakPtrFactory<WebUIScreenLocker> weak_factory_; | 136 base::WeakPtrFactory<WebUIScreenLocker> weak_factory_; |
137 | 137 |
138 DISALLOW_COPY_AND_ASSIGN(WebUIScreenLocker); | 138 DISALLOW_COPY_AND_ASSIGN(WebUIScreenLocker); |
139 }; | 139 }; |
140 | 140 |
141 } // namespace chromeos | 141 } // namespace chromeos |
142 | 142 |
143 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_SCREEN_LOCKER_H_ | 143 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_SCREEN_LOCKER_H_ |
OLD | NEW |