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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 // chrome.send from the embedded webui. | 88 // chrome.send from the embedded webui. |
89 void OnLockWebUIReady(); | 89 void OnLockWebUIReady(); |
90 | 90 |
91 // Called when webui lock screen wallpaper is loaded and displayed. | 91 // Called when webui lock screen wallpaper is loaded and displayed. |
92 void OnLockBackgroundDisplayed(); | 92 void OnLockBackgroundDisplayed(); |
93 | 93 |
94 // Called when the webui header bar becomes visible. | 94 // Called when the webui header bar becomes visible. |
95 void OnHeaderBarVisible(); | 95 void OnHeaderBarVisible(); |
96 | 96 |
97 // Called by ScreenLocker to notify that ash lock animation finishes. | 97 // Called by ScreenLocker to notify that ash lock animation finishes. |
98 void OnLockAnimationFinished(); | 98 void OnAshLockAnimationFinished(); |
99 | 99 |
100 void SetFingerprintState(const AccountId& account_id, FingerprintState state); | 100 void SetFingerprintState(const AccountId& account_id, FingerprintState state); |
101 | 101 |
102 private: | 102 private: |
103 friend class test::WebUIScreenLockerTester; | 103 friend class test::WebUIScreenLockerTester; |
104 | 104 |
105 // Returns true if the lock screen should be preloaded. | 105 // Returns true if the lock screen should be preloaded. |
106 static bool ShouldPreloadLockScreen(); | 106 static bool ShouldPreloadLockScreen(); |
107 // Helper function that creates and preloads a views::WebView. | 107 // Helper function that creates and preloads a views::WebView. |
108 static std::unique_ptr<views::WebView> DoPreload(Profile* profile); | 108 static std::unique_ptr<views::WebView> DoPreload(Profile* profile); |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 std::unique_ptr<login::NetworkStateHelper> network_state_helper_; | 190 std::unique_ptr<login::NetworkStateHelper> network_state_helper_; |
191 | 191 |
192 base::WeakPtrFactory<WebUIScreenLocker> weak_factory_; | 192 base::WeakPtrFactory<WebUIScreenLocker> weak_factory_; |
193 | 193 |
194 DISALLOW_COPY_AND_ASSIGN(WebUIScreenLocker); | 194 DISALLOW_COPY_AND_ASSIGN(WebUIScreenLocker); |
195 }; | 195 }; |
196 | 196 |
197 } // namespace chromeos | 197 } // namespace chromeos |
198 | 198 |
199 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOCK_WEBUI_SCREEN_LOCKER_H_ | 199 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOCK_WEBUI_SCREEN_LOCKER_H_ |
OLD | NEW |