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

Unified Diff: chrome/browser/chromeos/login/ui/lock_window.h

Issue 2429033003: cros: Cleanup lock screen and OOBE C++ backing code. (Closed)
Patch Set: Address comments Created 4 years, 2 months 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/login/ui/lock_window.h
diff --git a/chrome/browser/chromeos/login/ui/lock_window.h b/chrome/browser/chromeos/login/ui/lock_window.h
index 9fbc0fea696927c4451cb05dc11c5a4a2f2a794d..ef58686f2ba54cf1ca1870805a419f3e5a78171e 100644
--- a/chrome/browser/chromeos/login/ui/lock_window.h
+++ b/chrome/browser/chromeos/login/ui/lock_window.h
@@ -19,41 +19,19 @@ namespace chromeos {
// Shows the widget for the WebUI screen locker.
class LockWindow : public views::Widget, public views::WidgetDelegate {
public:
- // This class provides an interface for the lock window to notify an observer
- // about its status.
- class Observer {
- public:
- // This method will be called when the lock window has finished all
- // initialization.
- virtual void OnLockWindowReady() = 0;
- };
-
LockWindow();
~LockWindow() override;
- // Attempt to grab inputs on the webview, the actual view displaying the lock
- // screen WebView.
- void Grab();
-
- // Sets the observer class which is notified on lock window events.
- void set_observer(Observer* observer) { observer_ = observer; }
-
// Sets the view which should be initially focused.
void set_initially_focused_view(views::View* view) {
initially_focused_view_ = view;
}
- // views::WidgetDelegate:
- views::Widget* GetWidget() override;
- const views::Widget* GetWidget() const override;
-
private:
// views::WidgetDelegate:
views::View* GetInitiallyFocusedView() override;
-
- // The observer's OnLockWindowReady method will be called when the lock
- // window has finished all initialization.
- Observer* observer_ = nullptr;
+ views::Widget* GetWidget() override;
+ const views::Widget* GetWidget() const override;
// The view which should be initially focused.
views::View* initially_focused_view_ = nullptr;
« no previous file with comments | « chrome/browser/chromeos/login/signin_screen_controller.cc ('k') | chrome/browser/chromeos/login/ui/lock_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698