OLD | NEW |
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_SCREENS_ENABLE_DEBUGGING_SCREEN_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ENABLE_DEBUGGING_SCREEN_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ENABLE_DEBUGGING_SCREEN_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ENABLE_DEBUGGING_SCREEN_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "chrome/browser/chromeos/login/screens/base_screen.h" | 11 #include "chrome/browser/chromeos/login/screens/base_screen.h" |
12 #include "chrome/browser/chromeos/login/screens/enable_debugging_screen_view.h" | 12 #include "chrome/browser/chromeos/login/screens/core_oobe_view.h" |
13 | 13 |
14 namespace chromeos { | 14 namespace chromeos { |
15 | 15 |
16 // Representation independent class that controls screen showing enable | 16 // Representation independent class that controls screen showing enable |
17 // debugging screen to users. | 17 // debugging screen to users. |
18 class EnableDebuggingScreen : public BaseScreen, | 18 class EnableDebuggingScreen : public BaseScreen, public CoreOobeView::Delegate { |
19 public EnableDebuggingScreenView::Delegate { | |
20 public: | 19 public: |
21 EnableDebuggingScreen(BaseScreenDelegate* delegate, | 20 constexpr static OobeScreen kScreenId = |
22 EnableDebuggingScreenView* view); | 21 OobeScreen::SCREEN_OOBE_ENABLE_DEBUGGING; |
| 22 |
| 23 EnableDebuggingScreen(BaseScreenDelegate* delegate, CoreOobeView* view); |
23 ~EnableDebuggingScreen() override; | 24 ~EnableDebuggingScreen() override; |
24 | 25 |
25 // BaseScreen implementation: | 26 // BaseScreen implementation: |
26 void Show() override; | 27 void Show() override; |
27 void Hide() override; | 28 void Hide() override; |
28 | 29 |
29 // EnableDebuggingScreenActor::Delegate implementation: | 30 // CoreOobeView::Delegate implementation: |
30 void OnExit(bool success) override; | 31 void OnEnableDebuggingScreenViewExit(bool success) override; |
31 void OnViewDestroyed(EnableDebuggingScreenView* view) override; | 32 void OnViewDestroyed(CoreOobeView* view) override; |
32 | 33 |
33 private: | 34 private: |
34 EnableDebuggingScreenView* view_; | 35 CoreOobeView* view_; |
35 | 36 |
36 DISALLOW_COPY_AND_ASSIGN(EnableDebuggingScreen); | 37 DISALLOW_COPY_AND_ASSIGN(EnableDebuggingScreen); |
37 }; | 38 }; |
38 | 39 |
39 } // namespace chromeos | 40 } // namespace chromeos |
40 | 41 |
41 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ENABLE_DEBUGGING_SCREEN_H_ | 42 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ENABLE_DEBUGGING_SCREEN_H_ |
OLD | NEW |