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 virtual void Grab() override; |
21 virtual views::Widget* GetWidget() OVERRIDE; | 21 virtual views::Widget* GetWidget() override; |
22 | 22 |
23 // views::WidgetDelegate implementation: | 23 // views::WidgetDelegate implementation: |
24 virtual views::View* GetInitiallyFocusedView() OVERRIDE; | 24 virtual views::View* GetInitiallyFocusedView() override; |
25 virtual const views::Widget* GetWidget() const OVERRIDE; | 25 virtual 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 virtual ~LockWindowAura(); |
32 | 32 |
33 // Initialize the Aura lock window. | 33 // Initialize the Aura lock window. |
34 void Init(); | 34 void Init(); |
35 | 35 |
36 DISALLOW_COPY_AND_ASSIGN(LockWindowAura); | 36 DISALLOW_COPY_AND_ASSIGN(LockWindowAura); |
37 }; | 37 }; |
38 | 38 |
39 } // namespace chromeos | 39 } // namespace chromeos |
40 | 40 |
41 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOCK_WINDOW_AURA_H_ | 41 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOCK_WINDOW_AURA_H_ |
OLD | NEW |