Chromium Code Reviews| Index: chrome/browser/chromeos/login/reset_screen_actor.h |
| diff --git a/chrome/browser/chromeos/login/reset_screen_actor.h b/chrome/browser/chromeos/login/reset_screen_actor.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..e38d77317bbc601c49307bdf76a785a64170160b |
| --- /dev/null |
| +++ b/chrome/browser/chromeos/login/reset_screen_actor.h |
| @@ -0,0 +1,39 @@ |
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROME_BROWSER_CHROMEOS_LOGIN_RESET_SCREEN_ACTOR_H_ |
| +#define CHROME_BROWSER_CHROMEOS_LOGIN_RESET_SCREEN_ACTOR_H_ |
| + |
| +#include <string> |
| + |
| +namespace chromeos { |
| + |
| +// Interface between eula screen and its representation, either WebUI or |
|
Nikita (slow)
2012/09/12 13:22:21
eula > reset
glotov
2012/09/12 22:40:25
Done.
|
| +// Views one. Note, do not forget to call OnActorDestroyed in the dtor. |
|
Nikita (slow)
2012/09/12 13:22:21
Drop "either WebUI or Views one"
glotov
2012/09/12 22:40:25
Done.
|
| +class ResetScreenActor { |
| + public: |
| + // Allows us to get info from eula screen that we need. |
|
Nikita (slow)
2012/09/12 13:22:21
eula > reset
glotov
2012/09/12 22:40:25
Done.
|
| + class Delegate { |
| + public: |
| + virtual ~Delegate() {} |
| + |
| + // Called when screen is exited. |
| + virtual void OnExit() = 0; |
| + |
| + // This method is called, when actor is being destroyed. Note, if Delegate |
| + // is destroyed earlier then it has to call SetDelegate(NULL). |
| + virtual void OnActorDestroyed(ResetScreenActor* actor) = 0; |
| + }; |
| + |
| + virtual ~ResetScreenActor() {} |
| + |
| + virtual void PrepareToShow() = 0; |
| + virtual void Show() = 0; |
| + virtual void Hide() = 0; |
| + virtual void SetDelegate(Delegate* delegate) = 0; |
| +}; |
| + |
| +} // namespace chromeos |
| + |
| +#endif // CHROME_BROWSER_CHROMEOS_LOGIN_RESET_SCREEN_ACTOR_H_ |