OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_WEBUI_SCREEN_LOCKER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_SCREEN_LOCKER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_SCREEN_LOCKER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_SCREEN_LOCKER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
| 9 #include <string> |
| 10 |
9 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
10 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
11 #include "chrome/browser/chromeos/login/login_display.h" | 13 #include "chrome/browser/chromeos/login/login_display.h" |
12 #include "chrome/browser/chromeos/login/screen_locker_delegate.h" | 14 #include "chrome/browser/chromeos/login/screen_locker_delegate.h" |
13 #include "chrome/browser/chromeos/login/webui_login_view.h" | 15 #include "chrome/browser/chromeos/login/webui_login_view.h" |
14 #include "content/public/browser/notification_observer.h" | 16 #include "content/public/browser/notification_observer.h" |
15 #include "content/public/browser/notification_registrar.h" | 17 #include "content/public/browser/notification_registrar.h" |
16 #include "views/widget/widget.h" | 18 #include "views/widget/widget.h" |
17 | 19 |
18 #if defined(TOOLKIT_USES_GTK) | 20 #if defined(TOOLKIT_USES_GTK) |
19 #include "views/widget/native_widget_gtk.h" | 21 #include "views/widget/native_widget_gtk.h" |
20 #endif | 22 #endif |
21 | 23 |
22 namespace chromeos { | 24 namespace chromeos { |
23 | 25 |
24 class ScreenLocker; | 26 class ScreenLocker; |
25 class WebUILoginDisplay; | 27 class WebUILoginDisplay; |
26 | 28 |
27 namespace test { | |
28 class ScreenLockerTester; | |
29 } | |
30 | |
31 // This version of ScreenLockerDelegate displays a WebUI lock screen based on | 29 // This version of ScreenLockerDelegate displays a WebUI lock screen based on |
32 // the Oobe account picker screen. | 30 // the Oobe account picker screen. |
33 class WebUIScreenLocker : public WebUILoginView, | 31 class WebUIScreenLocker : public WebUILoginView, |
34 public LoginDisplay::Delegate, | 32 public LoginDisplay::Delegate, |
35 public content::NotificationObserver, | 33 public content::NotificationObserver, |
36 public ScreenLockerDelegate { | 34 public ScreenLockerDelegate { |
37 public: | 35 public: |
38 explicit WebUIScreenLocker(ScreenLocker* screen_locker); | 36 explicit WebUIScreenLocker(ScreenLocker* screen_locker); |
39 | 37 |
40 // ScreenLockerDelegate implementation: | 38 // ScreenLockerDelegate implementation: |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 | 77 |
80 // Used for user image changed notifications. | 78 // Used for user image changed notifications. |
81 content::NotificationRegistrar registrar_; | 79 content::NotificationRegistrar registrar_; |
82 | 80 |
83 DISALLOW_COPY_AND_ASSIGN(WebUIScreenLocker); | 81 DISALLOW_COPY_AND_ASSIGN(WebUIScreenLocker); |
84 }; | 82 }; |
85 | 83 |
86 } // namespace chromeos | 84 } // namespace chromeos |
87 | 85 |
88 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_SCREEN_LOCKER_H_ | 86 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_SCREEN_LOCKER_H_ |
OLD | NEW |