Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Side by Side Diff: chrome/browser/chromeos/login/lock/webui_screen_locker.h

Issue 2553863002: cros: Preload and reuse the lock screen across lock sessions (Closed)
Patch Set: Rebase Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/lock/webui_screen_locker.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/lock/webui_screen_locker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698