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 <string> | 8 #include <string> |
9 | 9 |
10 #include "ash/shell_delegate.h" | 10 #include "ash/shell_delegate.h" |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 public LockWindow::Observer, | 51 public LockWindow::Observer, |
52 public ash::LockStateObserver, | 52 public ash::LockStateObserver, |
53 public views::WidgetObserver, | 53 public views::WidgetObserver, |
54 public PowerManagerClient::Observer, | 54 public PowerManagerClient::Observer, |
55 public ash::VirtualKeyboardStateObserver, | 55 public ash::VirtualKeyboardStateObserver, |
56 public keyboard::KeyboardControllerObserver { | 56 public keyboard::KeyboardControllerObserver { |
57 public: | 57 public: |
58 explicit WebUIScreenLocker(ScreenLocker* screen_locker); | 58 explicit WebUIScreenLocker(ScreenLocker* screen_locker); |
59 | 59 |
60 // ScreenLockerDelegate implementation. | 60 // ScreenLockerDelegate implementation. |
61 virtual void LockScreen() OVERRIDE; | 61 virtual void LockScreen() override; |
62 virtual void ScreenLockReady() OVERRIDE; | 62 virtual void ScreenLockReady() override; |
63 virtual void OnAuthenticate() OVERRIDE; | 63 virtual void OnAuthenticate() override; |
64 virtual void SetInputEnabled(bool enabled) OVERRIDE; | 64 virtual void SetInputEnabled(bool enabled) override; |
65 virtual void ShowErrorMessage( | 65 virtual void ShowErrorMessage( |
66 int error_msg_id, | 66 int error_msg_id, |
67 HelpAppLauncher::HelpTopic help_topic_id) OVERRIDE; | 67 HelpAppLauncher::HelpTopic help_topic_id) override; |
68 virtual void ClearErrors() OVERRIDE; | 68 virtual void ClearErrors() override; |
69 virtual void AnimateAuthenticationSuccess() OVERRIDE; | 69 virtual void AnimateAuthenticationSuccess() override; |
70 virtual gfx::NativeWindow GetNativeWindow() const OVERRIDE; | 70 virtual gfx::NativeWindow GetNativeWindow() const override; |
71 virtual content::WebUI* GetAssociatedWebUI() OVERRIDE; | 71 virtual content::WebUI* GetAssociatedWebUI() override; |
72 virtual void OnLockWebUIReady() OVERRIDE; | 72 virtual void OnLockWebUIReady() override; |
73 virtual void OnLockBackgroundDisplayed() OVERRIDE; | 73 virtual void OnLockBackgroundDisplayed() override; |
74 | 74 |
75 // LoginDisplay::Delegate: implementation | 75 // LoginDisplay::Delegate: implementation |
76 virtual void CancelPasswordChangedFlow() OVERRIDE; | 76 virtual void CancelPasswordChangedFlow() override; |
77 virtual void CreateAccount() OVERRIDE; | 77 virtual void CreateAccount() override; |
78 virtual void CompleteLogin(const UserContext& user_context) OVERRIDE; | 78 virtual void CompleteLogin(const UserContext& user_context) override; |
79 virtual base::string16 GetConnectedNetworkName() OVERRIDE; | 79 virtual base::string16 GetConnectedNetworkName() override; |
80 virtual bool IsSigninInProgress() const OVERRIDE; | 80 virtual bool IsSigninInProgress() const override; |
81 virtual void Login(const UserContext& user_context, | 81 virtual void Login(const UserContext& user_context, |
82 const SigninSpecifics& specifics) OVERRIDE; | 82 const SigninSpecifics& specifics) override; |
83 virtual void MigrateUserData(const std::string& old_password) OVERRIDE; | 83 virtual void MigrateUserData(const std::string& old_password) override; |
84 virtual void OnSigninScreenReady() OVERRIDE; | 84 virtual void OnSigninScreenReady() override; |
85 virtual void OnStartEnterpriseEnrollment() OVERRIDE; | 85 virtual void OnStartEnterpriseEnrollment() override; |
86 virtual void OnStartKioskEnableScreen() OVERRIDE; | 86 virtual void OnStartKioskEnableScreen() override; |
87 virtual void OnStartKioskAutolaunchScreen() OVERRIDE; | 87 virtual void OnStartKioskAutolaunchScreen() override; |
88 virtual void ShowWrongHWIDScreen() OVERRIDE; | 88 virtual void ShowWrongHWIDScreen() override; |
89 virtual void ResetPublicSessionAutoLoginTimer() OVERRIDE; | 89 virtual void ResetPublicSessionAutoLoginTimer() override; |
90 virtual void ResyncUserData() OVERRIDE; | 90 virtual void ResyncUserData() override; |
91 virtual void SetDisplayEmail(const std::string& email) OVERRIDE; | 91 virtual void SetDisplayEmail(const std::string& email) override; |
92 virtual void Signout() OVERRIDE; | 92 virtual void Signout() override; |
93 | 93 |
94 // content::NotificationObserver (via WebUILoginView) implementation. | 94 // content::NotificationObserver (via WebUILoginView) implementation. |
95 virtual void Observe(int type, | 95 virtual void Observe(int type, |
96 const content::NotificationSource& source, | 96 const content::NotificationSource& source, |
97 const content::NotificationDetails& details) OVERRIDE; | 97 const content::NotificationDetails& details) override; |
98 | 98 |
99 // LockWindow::Observer implementation. | 99 // LockWindow::Observer implementation. |
100 virtual void OnLockWindowReady() OVERRIDE; | 100 virtual void OnLockWindowReady() override; |
101 | 101 |
102 // LockStateObserver override. | 102 // LockStateObserver override. |
103 virtual void OnLockStateEvent( | 103 virtual void OnLockStateEvent( |
104 ash::LockStateObserver::EventType event) OVERRIDE; | 104 ash::LockStateObserver::EventType event) override; |
105 | 105 |
106 // WidgetObserver override. | 106 // WidgetObserver override. |
107 virtual void OnWidgetDestroying(views::Widget* widget) OVERRIDE; | 107 virtual void OnWidgetDestroying(views::Widget* widget) override; |
108 | 108 |
109 // PowerManagerClient::Observer overrides: | 109 // PowerManagerClient::Observer overrides: |
110 virtual void SuspendDone(const base::TimeDelta& sleep_duration) OVERRIDE; | 110 virtual void SuspendDone(const base::TimeDelta& sleep_duration) override; |
111 virtual void LidEventReceived(bool open, | 111 virtual void LidEventReceived(bool open, |
112 const base::TimeTicks& time) OVERRIDE; | 112 const base::TimeTicks& time) override; |
113 | 113 |
114 // Overridden from content::WebContentsObserver: | 114 // Overridden from content::WebContentsObserver: |
115 virtual void RenderProcessGone(base::TerminationStatus status) OVERRIDE; | 115 virtual void RenderProcessGone(base::TerminationStatus status) override; |
116 | 116 |
117 // Overridden from ash::KeyboardStateObserver: | 117 // Overridden from ash::KeyboardStateObserver: |
118 virtual void OnVirtualKeyboardStateChanged(bool activated) OVERRIDE; | 118 virtual void OnVirtualKeyboardStateChanged(bool activated) override; |
119 | 119 |
120 // Overridden from keyboard::KeyboardControllerObserver: | 120 // Overridden from keyboard::KeyboardControllerObserver: |
121 virtual void OnKeyboardBoundsChanging(const gfx::Rect& new_bounds) OVERRIDE; | 121 virtual void OnKeyboardBoundsChanging(const gfx::Rect& new_bounds) override; |
122 | 122 |
123 // Returns instance of the OOBE WebUI. | 123 // Returns instance of the OOBE WebUI. |
124 OobeUI* GetOobeUI(); | 124 OobeUI* GetOobeUI(); |
125 | 125 |
126 private: | 126 private: |
127 friend class test::WebUIScreenLockerTester; | 127 friend class test::WebUIScreenLockerTester; |
128 | 128 |
129 virtual ~WebUIScreenLocker(); | 129 virtual ~WebUIScreenLocker(); |
130 | 130 |
131 // Ensures that user pod is focused. | 131 // Ensures that user pod is focused. |
(...skipping 26 matching lines...) Expand all Loading... |
158 gfx::Rect keyboard_bounds_; | 158 gfx::Rect keyboard_bounds_; |
159 | 159 |
160 base::WeakPtrFactory<WebUIScreenLocker> weak_factory_; | 160 base::WeakPtrFactory<WebUIScreenLocker> weak_factory_; |
161 | 161 |
162 DISALLOW_COPY_AND_ASSIGN(WebUIScreenLocker); | 162 DISALLOW_COPY_AND_ASSIGN(WebUIScreenLocker); |
163 }; | 163 }; |
164 | 164 |
165 } // namespace chromeos | 165 } // namespace chromeos |
166 | 166 |
167 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOCK_WEBUI_SCREEN_LOCKER_H_ | 167 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOCK_WEBUI_SCREEN_LOCKER_H_ |
OLD | NEW |