Index: chrome/browser/chromeos/login/screens/device_disabled_screen_actor.h |
diff --git a/chrome/browser/chromeos/login/screens/device_disabled_screen_actor.h b/chrome/browser/chromeos/login/screens/device_disabled_screen_actor.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..aa26e2115f87bca046f38590cf6ade6c8a654ed0 |
--- /dev/null |
+++ b/chrome/browser/chromeos/login/screens/device_disabled_screen_actor.h |
@@ -0,0 +1,35 @@ |
+// Copyright 2014 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_SCREENS_DEVICE_DISABLED_SCREEN_ACTOR_H_ |
+#define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_DEVICE_DISABLED_SCREEN_ACTOR_H_ |
+ |
+namespace chromeos { |
+ |
+// Interface between the device disabled screen and its representation. |
+class DeviceDisabledScreenActor { |
+ public: |
+ // Allows the representation to access information about the screen. |
+ class Delegate { |
+ public: |
+ virtual ~Delegate() { |
+ } |
+ |
+ // Called when the actor is being destroyed. Note that if the Delegate is |
+ // destroyed first, it must call SetDelegate(nullptr). |
+ virtual void OnActorDestroyed(DeviceDisabledScreenActor* actor) = 0; |
+ }; |
+ |
+ virtual ~DeviceDisabledScreenActor() { |
+ } |
+ |
+ virtual void Show() = 0; |
+ virtual void Hide() = 0; |
+ virtual void SetDelegate(Delegate* delegate) = 0; |
+}; |
+ |
+} // namespace chromeos |
+ |
+#endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_DEVICE_DISABLED_SCREEN_ACTOR_H_ |
+ |