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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ENABLE_DEBUGGING_SCREEN_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ENABLE_DEBUGGING_SCREEN_H_
10 #include "base/basictypes.h"
11 #include "chrome/browser/chromeos/login/screens/base_screen.h"
12 #include "chrome/browser/chromeos/login/screens/enable_debugging_screen_actor.h"
16 // Representation independent class that controls screen showing enable
17 // debugging screen to users.
18 class EnableDebuggingScreen
: public BaseScreen
,
19 public EnableDebuggingScreenActor::Delegate
{
21 EnableDebuggingScreen(BaseScreenDelegate
* delegate
,
22 EnableDebuggingScreenActor
* actor
);
23 ~EnableDebuggingScreen() override
;
25 // BaseScreen implementation:
26 void PrepareToShow() override
;
29 std::string
GetName() const override
;
31 // EnableDebuggingScreenActor::Delegate implementation:
32 void OnExit(bool success
) override
;
33 void OnActorDestroyed(EnableDebuggingScreenActor
* actor
) override
;
36 EnableDebuggingScreenActor
* actor_
;
38 DISALLOW_COPY_AND_ASSIGN(EnableDebuggingScreen
);
41 } // namespace chromeos
43 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ENABLE_DEBUGGING_SCREEN_H_