| 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_AURA_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOCK_WINDOW_AURA_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOCK_WINDOW_AURA_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOCK_WINDOW_AURA_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "chrome/browser/chromeos/login/ui/lock_window.h" | 9 #include "chrome/browser/chromeos/login/ui/lock_window.h" |
| 10 #include "ui/views/widget/widget.h" | 10 #include "ui/views/widget/widget.h" |
| 11 #include "ui/views/widget/widget_delegate.h" | 11 #include "ui/views/widget/widget_delegate.h" |
| 12 | 12 |
| 13 namespace chromeos { | 13 namespace chromeos { |
| 14 | 14 |
| 15 class LockWindowAura : public views::Widget, | 15 class LockWindowAura : public views::Widget, |
| 16 public views::WidgetDelegate, | 16 public views::WidgetDelegate, |
| 17 public LockWindow { | 17 public LockWindow { |
| 18 public: | 18 public: |
| 19 // LockWindow implementation: | 19 // LockWindow implementation: |
| 20 virtual void Grab() override; | 20 void Grab() override; |
| 21 virtual views::Widget* GetWidget() override; | 21 views::Widget* GetWidget() override; |
| 22 | 22 |
| 23 // views::WidgetDelegate implementation: | 23 // views::WidgetDelegate implementation: |
| 24 virtual views::View* GetInitiallyFocusedView() override; | 24 views::View* GetInitiallyFocusedView() override; |
| 25 virtual const views::Widget* GetWidget() const override; | 25 const views::Widget* GetWidget() const override; |
| 26 | 26 |
| 27 private: | 27 private: |
| 28 friend class LockWindow; | 28 friend class LockWindow; |
| 29 | 29 |
| 30 LockWindowAura(); | 30 LockWindowAura(); |
| 31 virtual ~LockWindowAura(); | 31 ~LockWindowAura() override; |
| 32 | 32 |
| 33 // Initialize the Aura lock window. | 33 // Initialize the Aura lock window. |
| 34 void Init(); | 34 void Init(); |
| 35 | 35 |
| 36 #if defined(USE_ATHENA) | 36 #if defined(USE_ATHENA) |
| 37 scoped_ptr<aura::Window> lock_screen_container_; | 37 scoped_ptr<aura::Window> lock_screen_container_; |
| 38 #endif | 38 #endif |
| 39 | 39 |
| 40 DISALLOW_COPY_AND_ASSIGN(LockWindowAura); | 40 DISALLOW_COPY_AND_ASSIGN(LockWindowAura); |
| 41 }; | 41 }; |
| 42 | 42 |
| 43 } // namespace chromeos | 43 } // namespace chromeos |
| 44 | 44 |
| 45 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOCK_WINDOW_AURA_H_ | 45 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOCK_WINDOW_AURA_H_ |
| OLD | NEW |