| 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_actor.h" | 12 #include "chrome/browser/chromeos/login/screens/enable_debugging_screen_actor.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, |
| 19 public EnableDebuggingScreenActor::Delegate { | 19 public EnableDebuggingScreenActor::Delegate { |
| 20 public: | 20 public: |
| 21 EnableDebuggingScreen(BaseScreenDelegate* delegate, | 21 EnableDebuggingScreen(BaseScreenDelegate* delegate, |
| 22 EnableDebuggingScreenActor* actor); | 22 EnableDebuggingScreenActor* actor); |
| 23 ~EnableDebuggingScreen() override; | 23 ~EnableDebuggingScreen() override; |
| 24 | 24 |
| 25 // BaseScreen implementation: | 25 // BaseScreen implementation: |
| 26 void PrepareToShow() override; | |
| 27 void Show() override; | 26 void Show() override; |
| 28 void Hide() override; | 27 void Hide() override; |
| 29 std::string GetName() const override; | 28 std::string GetName() const override; |
| 30 | 29 |
| 31 // EnableDebuggingScreenActor::Delegate implementation: | 30 // EnableDebuggingScreenActor::Delegate implementation: |
| 32 void OnExit(bool success) override; | 31 void OnExit(bool success) override; |
| 33 void OnActorDestroyed(EnableDebuggingScreenActor* actor) override; | 32 void OnActorDestroyed(EnableDebuggingScreenActor* actor) override; |
| 34 | 33 |
| 35 private: | 34 private: |
| 36 EnableDebuggingScreenActor* actor_; | 35 EnableDebuggingScreenActor* actor_; |
| 37 | 36 |
| 38 DISALLOW_COPY_AND_ASSIGN(EnableDebuggingScreen); | 37 DISALLOW_COPY_AND_ASSIGN(EnableDebuggingScreen); |
| 39 }; | 38 }; |
| 40 | 39 |
| 41 } // namespace chromeos | 40 } // namespace chromeos |
| 42 | 41 |
| 43 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ENABLE_DEBUGGING_SCREEN_H_ | 42 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ENABLE_DEBUGGING_SCREEN_H_ |
| OLD | NEW |