| 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_UI_LOCK_WINDOW_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOCK_WINDOW_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOCK_WINDOW_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOCK_WINDOW_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "ui/views/widget/widget.h" | 9 #include "ui/views/widget/widget.h" |
| 10 #include "ui/views/widget/widget_delegate.h" | 10 #include "ui/views/widget/widget_delegate.h" |
| 11 | 11 |
| 12 namespace views { | 12 namespace views { |
| 13 class View; | 13 class View; |
| 14 class Widget; | 14 class Widget; |
| 15 } | 15 } |
| 16 | 16 |
| 17 namespace chromeos { | 17 namespace chromeos { |
| 18 | 18 |
| 19 // Shows the widget for the WebUI screen locker. | 19 // Shows the widget for the lock screen. |
| 20 class LockWindow : public views::Widget, public views::WidgetDelegate { | 20 class LockWindow : public views::Widget, public views::WidgetDelegate { |
| 21 public: | 21 public: |
| 22 explicit LockWindow(views::View* initially_focused_view); | 22 LockWindow(); |
| 23 ~LockWindow() override; | 23 ~LockWindow() override; |
| 24 | 24 |
| 25 private: | 25 private: |
| 26 // views::WidgetDelegate: | 26 // views::WidgetDelegate: |
| 27 views::View* GetInitiallyFocusedView() override; | 27 views::View* GetInitiallyFocusedView() override; |
| 28 views::Widget* GetWidget() override; | 28 views::Widget* GetWidget() override; |
| 29 const views::Widget* GetWidget() const override; | 29 const views::Widget* GetWidget() const override; |
| 30 | 30 |
| 31 // The view which should be initially focused. | |
| 32 views::View* initially_focused_view_ = nullptr; | |
| 33 | |
| 34 DISALLOW_COPY_AND_ASSIGN(LockWindow); | 31 DISALLOW_COPY_AND_ASSIGN(LockWindow); |
| 35 }; | 32 }; |
| 36 | 33 |
| 37 } // namespace chromeos | 34 } // namespace chromeos |
| 38 | 35 |
| 39 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOCK_WINDOW_H_ | 36 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOCK_WINDOW_H_ |
| OLD | NEW |