| 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 | 12 |
| 12 namespace chromeos { | 13 namespace chromeos { |
| 13 | 14 |
| 14 class LockWindowAura : public views::Widget, | 15 class LockWindowAura : public views::Widget, |
| 16 public views::WidgetDelegate, |
| 15 public LockWindow { | 17 public LockWindow { |
| 16 public: | 18 public: |
| 17 // LockWindow implementation: | 19 // LockWindow implementation: |
| 18 virtual void Grab() OVERRIDE; | 20 virtual void Grab() OVERRIDE; |
| 19 virtual views::Widget* GetWidget() OVERRIDE; | 21 virtual views::Widget* GetWidget() OVERRIDE; |
| 20 | 22 |
| 23 // views::WidgetDelegate implementation: |
| 24 virtual views::View* GetInitiallyFocusedView() OVERRIDE; |
| 25 virtual const views::Widget* GetWidget() const OVERRIDE; |
| 26 |
| 21 private: | 27 private: |
| 22 friend class LockWindow; | 28 friend class LockWindow; |
| 23 | 29 |
| 24 LockWindowAura(); | 30 LockWindowAura(); |
| 25 virtual ~LockWindowAura(); | 31 virtual ~LockWindowAura(); |
| 26 | 32 |
| 27 // Initialize the Aura lock window. | 33 // Initialize the Aura lock window. |
| 28 void Init(); | 34 void Init(); |
| 29 | 35 |
| 30 DISALLOW_COPY_AND_ASSIGN(LockWindowAura); | 36 DISALLOW_COPY_AND_ASSIGN(LockWindowAura); |
| 31 }; | 37 }; |
| 32 | 38 |
| 33 } // namespace chromeos | 39 } // namespace chromeos |
| 34 | 40 |
| 35 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOCK_WINDOW_AURA_H_ | 41 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOCK_WINDOW_AURA_H_ |
| OLD | NEW |